Re: pinning cores

From: void <void_at_f-m.fm>
Date: Tue, 25 Nov 2025 13:53:47 UTC
Hi, thanks for replying

On Mon, Nov 24, 2025 at 04:18:43PM +1100, Jason Tubnor wrote:

>Say if you want to pin virtual core 0 to physical core 3 and virtual 
>core 1 to physical core 5 (2vCPU guest), you would add the following 
>option:
>
>-p 0:3 -p 1:5

ok. Am not using vm-bhyve, just running a script directly.
What's threw me a bit and is part of the reason I'm asking 
about this here is the man page for bhyve has this for -p

       -p vcpu:hostcpu

but there's nothing for package. On my system, there's 2x 
"packages" if I'm reading correctly - CPU0 & CPU1.

The system has CPU E5-2690 v2 @ 3.00GHz x2 (hw.ncpu=20 in total - 10 on 
each CPU) and because SHT is off hw.vmm.maxcpu: 20

If i set a vm to use -p 0:0 -p 1:10, then will it use the first core on
the first physical package CPU0 and the first core on the second 
physical package CPU1, if I understand correctly?

--