mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 16:45:49 +03:00
[GH-ISSUE #248] CPU: Invalid CPU topology deprecated: sockets (0) * dies (1) * cores (8) * threads (1) != maxcpus (4) #169
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @taimaiduc on GitHub (Apr 15, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/248
OS related issued, please help us identify the issue by posting the output of this
Running
egrep -c '(svm|vmx)' /proc/cpuinfo
12
ERROR
@sickcodes commented on GitHub (Apr 15, 2021):
This should clear up the CPU limit questions https://github.com/kholia/OSX-KVM/blob/master/notes.md#pass-through-all-cpu-cores--threads
@sickcodes commented on GitHub (Apr 15, 2021):
Via @kholia
Pass through all CPU cores / threads
macOS requires a core count that is a power of 2, but some modern CPUs have odd
counts - like 6 cores and 12 threads.
So how can we harness the entire CPU in the VM?
There are strategies that mix smp/sockets/cores/threads/maxcpu arguments and
use odd socket counts to arrive at even core counts, and even let you specify
that some of the cores are hyperthreaded.
Specifically for the case of an Intel i7 processor with 6 cores and 12 total
threads, altering the boot script to contain these variables and the following
modified SMP line results in a full CPU core/thread pass through:
The
-smp lineshould read something like the following:@sickcodes commented on GitHub (Apr 15, 2021):
@taimaiduc did you want to add documentation or a link via PR about the CPU topology? Glad to see you got it working!
@taimaiduc commented on GitHub (Apr 16, 2021):
Hi @sickcodes
Error
CPU_SOCKETS="3"
CPU_CORES="2"
CPU_THREADS="2"
CPU_TOTAL="12"
qemu-system-x86_64: Invalid CPU topology deprecated: sockets (3) * dies (1) * cores (4) * threads (2) != maxcpus (12)
I am running this command and it will be working
=>>>>
CPU_SOCKETS="3"
CPU_CORES="2"
CPU_THREADS="1"
CPU_TOTAL="12"
Not sure that is the correct or not
What do you think? @sickcodes
@sickcodes commented on GitHub (Apr 28, 2021):
This might explain more:
github.com/thenickdude/KVM-Opencore@d78b27e1ab (diff-b335630551)https://github.com/Leoyzen/KVM-Opencore/issues/1#issuecomment-605390885