Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-26-2014, 11:47 AM
|
#1
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Rep:
|
Multi-CPU VMs in VirtualBox a bad idea?
Hey all, I'm having a struggle with the performance of one of my VirtualBox VMs. I'm running an Asus mobo with an AMD quad-core processor, 1TB hard drive and 16 gigs of RAM and the VM is Ubuntu running Unity 3D with 10 gigs of RAM on a 160 gig vDisk. I was told the performance issue is probably from using two vCPUs. Specifically, that when there's a second vCPU in a VM the I/O APIC will automatically run and that will slow down I/O calls on the VM so I should only have one vCPU in my VMs. Is this correct or incorrect?
Thanks,
Joe B
|
|
|
09-26-2014, 08:24 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
I almost always add in every real processor I have for the VM or VM's. The system will auto level most times. I never add in more processors than a have, that would only be for some very limited tests.
Not sure what you mean by vCPU. If your system has full hardware support for virtual technologies then the processor will be real. If you system doesn't then it will or can emulate the processor.
Might start with top on both host and client.
Exactly what type of performance issue do you have?
Could it be related to the 3D video and/or host card?
|
|
|
09-27-2014, 09:09 AM
|
#3
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
You don't say what thd guest OS is. In my experience Windows XP will run very badly when given more than one CPU for the reason you mention. Linux and BSD guests all seem fine when I give them 4 CPUs though.
|
|
|
09-27-2014, 08:23 PM
|
#4
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Original Poster
Rep:
|
--> jefro, top on the client showed CPU usage spikes of over 200% with averages down around 170-180%. That was with Unity 3D. When I dropped it to Unity 2D my CPU usage went back to normal--40%-50% for opening files and such. I guess it could be the host card. Is there a way to test how hard the video card is working?
--> 273, the client OS is Ubuntu 12.04 (<-- required for a software suite I purchased).
Thanks all, I won't worry about using multiple CPUs on my VMs.
Thanks,
Joe B
|
|
|
09-27-2014, 08:44 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Darn, I just read a similar post the other day on this video issue. You'll have to go back and see if you can find it. Forgot what it was about the 3D. Maybe I'll remember Monday.
Exactly what 3D software would you run on 12.04? Seems odd you can't migrate to a newer version but it is a pain to get dependencies correct.
|
|
|
09-28-2014, 01:06 AM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,385
|
I had a similar feeling - found this thread.
|
|
|
09-28-2014, 06:57 AM
|
#7
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
That's really bizarre. I haven't noticed any slowdown with Ubuntu in a VM and I always give my guests (XP excepted as mentioned above) 4 CPUs (I've an AMD "8 core" FX 8120).
|
|
|
09-29-2014, 05:23 PM
|
#8
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Original Poster
Rep:
|
Hey all, the link from syg00's post is my post regarding the same VM. I was having problems, serious problems, with my CPU resources being consumed by the VM. I changed from Unity3D to Unity2D and problem solved. I didn't "need" the Unity3D so it was no big loss to me.
--> 273 & jefro, so since I have a quad-core CPU are you saying I can give my VMs four CPUs?
Thanks,
Joe B
|
|
|
09-29-2014, 07:07 PM
|
#9
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,385
|
|
|
1 members found this post helpful.
|
09-29-2014, 08:05 PM
|
#10
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
hehe, I would have linked that same post.
Yes, unless there is some reason not to, then give every real processor you have to the vm's.
Of course in Intel you may have to decide on HT. I still give the full set of whatever shows on boot. If I see 8 penguins then maybe I may just give 4 to a VM. In reality the host would usually level this all off.
Look, you paid for the processors, use them.
|
|
1 members found this post helpful.
|
09-30-2014, 09:18 AM
|
#11
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,206
|
Indeed. Make the cores available to the VMs unless there's compelling reason not to. It's up to the hypervisor to decide how many cores they actually get, at any particular nanosecond.
|
|
|
All times are GMT -5. The time now is 12:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|