From 549dcee488439137c42f1654862d86e41590ee7b Mon Sep 17 00:00:00 2001 From: 7feigao Date: Sat, 16 Mar 2024 13:27:48 +0800 Subject: [PATCH] Update README.md Update to describe the way to allocate more cpu cores to container --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2792a37..7807c74 100644 --- a/README.md +++ b/README.md @@ -676,14 +676,16 @@ Or #### Use more CPU Cores/SMP +By default container will get 4 cpu cores to run OS, you can allocate more cores by use environment variable `CPU_STRING=',cores='` or `SMP= CORES=` when create container. Examples: -`-e EXTRA='-smp 6,sockets=3,cores=2'` +`-e CPU_STRING='16,cores=16'` -`-e EXTRA='-smp 8,sockets=4,cores=2'` +or + +`-e SMP=16 -e CORES=16` -`-e EXTRA='-smp 16,sockets=8,cores=2'` Note, unlike memory, CPU usage is shared. so you can allocate all of your CPU's to the container.