Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

I have a guest running, then I hibernate the host. Now when I wake up my host, it uses 100 % CPU resp. 50 % on a DualCore CPU. However that program seems not stucked in a endless loop. I can normal work with the guest and when I power it down and close the VMM VBoxSVC.exe closes.
How can I avoid this CPU stealing? What exactly does VBoxSVC.exe?

Thanks for help.
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

Thank you. I'm glad to know that this CPU usage will go down after some minutes, so I don't have to powerdown the guest.

However in that bugreport is written it already happens when only the VMM without a guest running is open. I can have the VMM open, hibernate as I like. The problem only occurs when a guest was running while hibernating.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by vbox4me2 »

A bug is a bug, but on the other hand I find it normal behaviour as hybernation is a very specific OS technique that is not suited for emulated cpu's that have no notion whats going on when waking up.
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

But as far as I noticed the CPU is emulated by "VirtualBox.exe" and not VBoxSVC.exe. When I produce CPU usage in the guest it's virtualbox.exe that creates CPU usage on the host.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by vbox4me2 »

No VBoxSVC is running the VM, virtualbox is the GUI which can be closed when not needed.
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

Then how comes, that virtualbox.exe produces the CPU usage when using the CPU inside the guest?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by vbox4me2 »

No idea, could be part of the bug, close vb.exe when this happens and see what happens to the cpu. I hardly use vb.exe(GUI) unless to change VM parameters.
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

You don't need the GUI to see the process. You have virtualbox.exe for the GUI/the VMM and then you have for each VM running additional virtualbox.exe processes.
When everything works normal VBoxSVC.exe only needs CPU when starting a VM. I just found out, that I can even kill VBoxSVC while running a VM and the VM still works fine.
But with killing the problem is not solved, because when killed, I get this error, while trying to start another VM:
Image

To get around by that, I have to open a new VMM window. Than vboxsvc.exe runs again, I can start new VMs.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by vbox4me2 »

Yes your right, VBoxSVC runs the vb.exe per VM process and the GUI :oops: so the cpu use in vb.exe is directly related to the VM.
freeman3
Posts: 4
Joined: 18. Jun 2009, 09:36
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Linux

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by freeman3 »

i've got the same problem?
it this solved?
rkos
Posts: 2
Joined: 5. Jul 2009, 16:14
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: windows xp

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by rkos »

Same problem on my systems with VirtualBox 2.2.2 and 2.2.4 on Windows XP Prof SP3.
Soulatial
Posts: 96
Joined: 11. Nov 2008, 21:07

Re: Waking Host from hibernation, VBoxSVC.exe takes 100% CPU

Post by Soulatial »

Problem seems to be solved with 3.0.2 :mrgreen:
Post Reply