On Multi core processors ....

Discussions related to using VirtualBox on Linux hosts.
Post Reply
5826stephane
Posts: 7
Joined: 23. Aug 2008, 07:51

On Multi core processors ....

Post by 5826stephane »

Hi,

I am running a duo core on Centos 5 on a server
I wish to install Virtualbox

- Is there a way to dedicate Virtualbox to ONE Core only ?
- If so, how can I do that ?

Thanks
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

This isn't really a VBox question, but more a straight Linux one. Google Linux processor affinity for relevant articles.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

VB will only use one core per VM. There are some tools for Linux to set the affinity to a certain core, but it's best to leave it as is. The load will be divided over the two cores, switching from core to core or dividing the load evenly.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

There are certain circumstances when use of processor affinity may be justified (for example, you have a mix of VMs which are running CPU bound applications but you want to ensure that they only take up a total of 100% of one CPU), but in general I agree with you. The average user would do well to leave this one tuning parameter alone.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply