Date: Mon, 24 Nov 2025 16:18:43 +1100 From: Jason Tubnor <jason@tubnor.net> To: freebsd-virtualization@freebsd.org, void@f-m.fm Subject: Re: pinning cores Message-ID: <a5bd36c7-84bb-420e-ba8a-21283cf325e7@tubnor.net> In-Reply-To: <aSLl6El0eS_Spj2l@int21h> References: <aSLl6El0eS_Spj2l@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
On 23/11/25 22:15, void wrote: > Hi, > > Does anyone using bhyve, pin cores? > On a bhyve server with SHT *disabled* (dual Xeon, > 10 non-HT cores on each) I'd like to pin > 1 core from each cpu per vm for 4 VMs. > > What's the syntax using vmrun.sh? Or is it best > to directly use bhybe like bhyve -c 2 -m 16G -w -H etc etc 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 If you use vm-bhyve, you'd add the below to the guest's .conf file: bhyve_options="-p 0:3 -p 1:5" Cheers, Jason
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a5bd36c7-84bb-420e-ba8a-21283cf325e7>
