LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 09-17-2014, 02:42 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
VirtualBox VM killing my CPUs


Hey all, I recently installed CentOS 6.5 on my workstation. Hardware is an Asus mobo with an AMD quad-core processor and 16GB of RAM. I downloaded and installed VirtualBox from source and then created an Ubuntu 12.04 (per vendor spec for a software package) VM. The VM has one CPU, a 160GB hard drive and 10GB RAM. When I run Ubuntu my processor is idle until I do something. For example, just opening a terminal window takes about 10 seconds and it takes even longer to close it (Firefox is much worse). This can spike my CPU to almost 200%. Has anyone else had a situation like this? If so, how did you fix it?

Thanks,

Joe B

Last edited by jbruyet; 09-17-2014 at 02:56 PM.
 
Old 09-17-2014, 02:55 PM   #2
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, I think it's just an issue with the Ubuntu 12.04 VM. I just installed Windows 7 and it's fast and speedy.

Thanks,

Joe B
 
Old 09-17-2014, 04:53 PM   #3
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Replaced Unity with XFCE4 and we're fast and speedy now.

Thanks,

Joe B
 
Old 09-18-2014, 06:17 AM   #4
vinbob
Member
 
Registered: May 2005
Location: Fareham, UK
Distribution: HP-UX 11i, Fedora, Ubuntu, Debian, RHEL, OEL, CentOS
Posts: 75

Rep: Reputation: 17
Hi,

That'll be because Unity requires 3D acceleration for the desktop compositing, Gnome is the same. Windows 7 and XFCE does not require this.
In Virtualbox's GUI goto the Display settings for your Ubuntu VM and enable the 3D acceleration option (assuming your host system is able to provide 3D acceleration).

Also if you've assigned more than one VCPU to your VM, this will auto-enable I/O APIC on the guest which will use more CPU time on the host and slow down I/O on the guest (as I/O system calls take longer to process). You're best just running 1 VCPU on your guests unless specifically required and having I/O APIC disabled.

HTH

Last edited by vinbob; 09-18-2014 at 06:20 AM.
 
1 members found this post helpful.
Old 09-19-2014, 01:01 PM   #5
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Hi vinbob, 3D acceleration was already enabled on the VM. I'll remember that bit about multiple vCPUs and I/O APIC.

Thanks,

Joe B
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 2 CPUs but should be 1? grovep Linux - Newbie 6 11-15-2012 08:12 AM
16 cpus? 18Googol2 Linux - Hardware 7 04-04-2009 03:11 AM
CPUs totallynewguy Linux - Hardware 3 08-29-2005 10:06 PM
Via CPUs 3dmike Linux - Hardware 2 03-22-2004 12:39 PM
2 CPUs jhirshon Linux - Newbie 2 01-31-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration