aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2022-04-14 22:49:35 +0000
committerGitHub <[email protected]>2022-04-14 22:49:35 +0000
commit4501c6a85426c23b36c47652f39a867355c4ba65 (patch)
tree43a3d0b430deb1f9230438842780da7020dee1c7
parentMerge pull request #472 from sickcodes/naked-vnc-legacy-patch (diff)
downloaddocker-osx-4501c6a85426c23b36c47652f39a867355c4ba65.tar.xz
docker-osx-4501c6a85426c23b36c47652f39a867355c4ba65.zip
Fix #440
> According to [this](https://github.com/foxlet/macOS-Simple-KVM/issues/319#issuecomment-1003775896), macOS only supports power-of-two cores. But you can increase the number of sockets to get the virtual cores you need. > > If you need 6 cores, go with: > > ``` > -e EXTRA='-smp 6,sockets=3,cores=2' > ```
-rw-r--r--README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index b55511c..87cea6d 100644
--- a/README.md
+++ b/README.md
@@ -642,13 +642,15 @@ Or
#### Use more CPU Cores/SMP
-This will use all available cores; adjust accordingly to the day of the week:
+Examples:
-```
- -e CPU_STRING=$(nproc) \
-```
+`-e EXTRA='-smp 6,sockets=3,cores=2'`
+
+`-e EXTRA='-smp 8,sockets=4,cores=2'`
+
+`-e EXTRA='-smp 16,sockets=8,cores=2'`
-This will use `-smp $(nproc)`
+Note, unlike memory, CPU usage is shared. so you can allocate all of your CPU's to the container.
### Confirm your user is part of the the Docker group, KVM group, libvirt group