On 11/8/24 1:04 PM, Narcis Garcia wrote:
Can be guest CPU/cores be pinned to host ones, without having to
configure complicated mem/memdev parameters at qemu -numa parameter?
I tried to run:
qemu-system-x86_64 -smp sockets=2,cores=2,threads=2 -numa node,cpus=0-5
but it complains about total memory for NUMA nodes (0x0) that should
equal RAM size (qemu shows it already knows the size).
On Linux, you can do this using taskset. Something like:
taskset -c 0-5 qemu-system-x86_64 -smp sockets=2,cores=2,threads=2...
will tell the scheduler to run the resulting qemu process only on the
first six cores. Does that help?