Limit guest to certain cores? Affinity mask

This is for discussing general topics about how to use VirtualBox.
Post Reply
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Limit guest to certain cores? Affinity mask

Post by scottgus1 »

Here: viewtopic.php?f=1&t=54189 I learned that hyperthreading doesn't help and might hurt multiple guests running at the same time. I may have seen this (warning - anecdotal evidence :) ) when running two guests running the same program in each, where sometimes the programs are very responsive and sometimes one is sluggish while the other is smooth.

So has anyone used an affinity mask to control which core(s) the guest(s) run on? (Windows 7 64-bit host, XP 32-bit guests with 2 processors each, Core I7 cpu, hyperthreading on, Virtualbox v 3.2.12) Looking to force one guest to run on one host physical/virtual processor pair, the other on another pair.
I looked in the v3.2.12 help files, but "affinity" comes up "No Topics". Is there a setting to Vboxmanage-start a VM with an affinity mask?
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Limit guest to certain cores? Affinity mask

Post by ChipMcK »

Google search affinity site:forums.virtualbox.org yields a large number of matches/hits
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Limit guest to certain cores? Affinity mask

Post by scottgus1 »

I google searched like you suggested, but I searched "affinity mask" and didn't get much. Thanks, I'll look around.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Limit guest to certain cores? Affinity mask

Post by Perryg »

scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Limit guest to certain cores? Affinity mask

Post by scottgus1 »

Gotcha. The right search words are the key!
Anyhoo, the search seems to say, setting affinity is a host-OS thing, not done in Virtualbox.
Thanks, all!
Post Reply