Date: Tue, 25 Nov 2025 13:53:47 +0000 From: void <void@f-m.fm> To: freebsd-virtualization@freebsd.org Subject: Re: pinning cores Message-ID: <aSW063pC9un2qaLZ@int21h> In-Reply-To: <a5bd36c7-84bb-420e-ba8a-21283cf325e7@tubnor.net> References: <aSLl6El0eS_Spj2l@int21h> <a5bd36c7-84bb-420e-ba8a-21283cf325e7@tubnor.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aSW063pC9un2qaLZ>
