Page 1 of 1

VirtualBox taking up CPU

Posted: 11. Mar 2014, 14:46
by davidhq
Why is my VirtualBox process taking up 10-20% of CPU almost constantly when "nothing" is happening inside the VM (99% idle in task manager).

Or is it that just running the Windows OS takes 10%... probably... hm

Re: VirtualBox taking up CPU

Posted: 11. Mar 2014, 19:14
by mpack

Re: VirtualBox taking up CPU

Posted: 11. Mar 2014, 20:27
by davidhq
VB 4.3.8 (latest)
1500 MB of Ram on Guest, 32bit
8GB on Host, 64bit

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 12:52
by mpack
Ok, so it's an XP guest - useful to know.

Your VRAM setting is way too low. Presumably the VM settings dialog gives you warnings about this?

I hope you realize that you haven't installed the extension pack. You won't have USB2 or VRDP support.

You still have the GA's CD mounted. It's good practice to unmount that before it gets overwritten on your next VBox update.

None of the above is serious, except perhaps the semi-serious shortage of VRAM.

There's nothing unusual about an XP guest taking large chunks of CPU soon after boot, or when looking for updates, or when AV has been installed. You can look at the task list in the guest and see when where the CPU time is going. Some of it can be reduced by eliminating unnecessary backround processes, e.g. disk indexing. However that's a subject for a Windows support website.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 14:12
by davidhq
mpack wrote:Ok, so it's an XP guest - useful to know.
mpack wrote:Your VRAM setting is way too low. Presumably the VM settings dialog gives you warnings about this?
Didn't get any warnings plus why is it so low by default? I have set it to 100MB now.
mpack wrote:I hope you realize that you haven't installed the extension pack. You won't have USB2 or VRDP support.
Probably don't need that, but I didn't know about it. I installed Guest Additions though... thought that this is all there is to install additionally.
mpack wrote:You still have the GA's CD mounted. It's good practice to unmount that before it gets overwritten on your next VBox update.
GA's CD ? Where can I see that, can't find it.
mpack wrote:None of the above is serious, except perhaps the semi-serious shortage of VRAM.

There's nothing unusual about an XP guest taking large chunks of CPU soon after boot, or when looking for updates, or when AV has been installed. You can look at the task list in the guest and see when where the CPU time is going. Some of it can be reduced by eliminating unnecessary backround processes, e.g. disk indexing. However that's a subject for a Windows support website.
When there is absolutelly nothing running in the VM and it says 0% CPU in task manager, I got 5% CPU usage in host... So this is also abnormal? When there is some simple thing running in VM, the usage jumps to 10-20%.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 14:44
by mpack
If there was really nothing running then it would use 0% CPU. Clearly that isn't the case. Like I said, pop up the guests task manager and see for yourself where the CPU is going.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 14:51
by davidhq
mpack wrote:If there was really nothing running then it would use 0% CPU. Clearly that isn't the case. Like I said, pop up the guests task manager and see for yourself where the CPU is going.
"it says 0% CPU in task manager"

I was wondering if maybe the guest OS stuff takes 5% in the host at minimum. That wouldn't show in task manager in guest.

But if you say it should be 0 CPU, then something is strange...

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 14:52
by mpack
It's possible that there's some overhead required on a Mac host, I wouldn't know.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 14:59
by davidhq
mpack wrote:It's possible that there's some overhead required on a Mac host, I wouldn't know.
It's probably the same everywhere... On which platform do you have experience?

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 15:00
by mpack
Windows. With VMs using VT-x the overhead is minimal. But, obviously there's the VBoxSVC task running, virtual networks being simulated etc, so every now and then it'll spike to 5% or so.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 15:07
by davidhq
mpack wrote:Windows. With VMs using VT-x the overhead is minimal. But, obviously there's the VBoxSVC task running, virtual networks being simulated etc, so every now and then it'll spike to 5% or so.
ok, with me it's constantly at 5%

maybe someone on Mac can also comment... would be great to know...

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 15:20
by loukingjr
davidhq wrote: maybe someone on Mac can also comment... would be great to know...
okay. with Windows 7 as a guest I get 4.3% to 5.5% while W7 is not doing anything. I hope that helps.

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 15:53
by rpmurray
When not doing anything in the guests my Windows XP and Windows 7 guests use about 2.5 to 5 % of the CPU each (it bounces around between those). This in on a Mac Pro (Early 2008).

Re: VirtualBox taking up CPU

Posted: 12. Mar 2014, 15:56
by loukingjr
mine might be higher on the bottom end because I run widgets on the desktop. weather, clock etc.

Re: VirtualBox taking up CPU

Posted: 16. Mar 2014, 01:34
by davidhq
Thank you for the info...

Then it's something strange with my installation... possibly bugs. I still get 10-20% when idle :/


Can someone from dev time mahybe help / comment - how could I reach them?