I ran powertop to see which program was causing the most wakeups on my linux host. And what I found was that virtualbox was causing nearly 1000 wakeups per second. The host is configured with NO_HZ (tickless kernel) and HZ=300.
The gues is also a linux kernel configured with NO_HZ and HZ=100. And it shows no CPU usage. The #wakeups is about 85-90 in the guest, which is reasonable.
vmware-server and vmware-player cause about 450-500 wakeups per second on the host. Why is virtualbox causing more than 1000 wakeups per second? Is there some effort to reduce this? This is one major issue for installs done on a laptop.
PS:All the numbers I talked of are in idle state.
High number of wakeups using virtualbox
-
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:
If you search the wiki you will find some caveats about using tickless kernels
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
I did compare it against a non-tickless kernel as well. And the result was pretty much the same. And, I did not get any problems in vobx with tickless kernel, in the host or in the guest. But vbox's wakeups didn't really go down with tickless.TerryE wrote:If you search the wiki you will find some caveats about using tickless kernels
This is something that's stopping me from installing VB on my laptop.
-
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:
devsk, can you provide some basic info here as per the Forum Posting Guide.
- What is your host config: H/W config, Linux distribution, version, kernel version (uname -r), key scheduling parameters.
- Ditto the guest
- What version of VB is installed (version and edition: PUEL/OSE) on host
- Ditto GA on guest
- What key virtualisation parameters are specified:Memory, ACPI, IO APIC, VT-x, PAE, devices enabled?
- You say you have tried some variations so which one?
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
Host:
AMD 3800 X2, nForce4, 2GB RAM
gentoo x64_64, 2.6.25.7, NOHZ, HZ=300, SMP, deadline IO scheduler, voluntary preemption.
virtualbox-bin-1.6.4 (PUEL)
Guest:
gentoo x86, 2.6.24, NOHZ, HZ=100, with boot params="noapic nolapic nosmp", voluntary preemption.
guest additions 1.6.4
Memory=512MB, VRAM=32MB.
No VT-x. No PAE. IO APIC disabled.
Let me know if you need more info.
AMD 3800 X2, nForce4, 2GB RAM
gentoo x64_64, 2.6.25.7, NOHZ, HZ=300, SMP, deadline IO scheduler, voluntary preemption.
virtualbox-bin-1.6.4 (PUEL)
Guest:
gentoo x86, 2.6.24, NOHZ, HZ=100, with boot params="noapic nolapic nosmp", voluntary preemption.
guest additions 1.6.4
Memory=512MB, VRAM=32MB.
No VT-x. No PAE. IO APIC disabled.
Let me know if you need more info.