[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CPU cores pinning with no NUMA on memory
From: |
Brett Neumeier |
Subject: |
Re: CPU cores pinning with no NUMA on memory |
Date: |
Fri, 8 Nov 2024 21:05:14 -0600 |
User-agent: |
Mozilla Thunderbird |
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?
Cheers!
Brett