Virtual Box 3.04 slow and high CPU load on Window XP SP3

Discussions about using Windows guests in VirtualBox.
sakh
Posts: 19
Joined: 16. Oct 2009, 14:13
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by sakh »

Hm, similar situation here. VB 3.0.8, 32 9.10 Ubuntu, Windows XP. Flash animation works really slow.
fyi
Posts: 25
Joined: 20. Jan 2009, 07:58
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP sp3, Debian, others

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by fyi »

I'm using VB 3.0.8 now too, and the issue still seems present.
There must be a way somehow to get another 30 - 40% host cpu utilization in VB, leaving ~10 - 20% headroom for host processes.

I'm on 64-bit Lenny with a custom kernel. The VB guest performance is debilitating. :roll:
Last edited by fyi on 26. Oct 2009, 08:26, edited 1 time in total.
ghiggio
Posts: 3
Joined: 25. Oct 2009, 20:32
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by ghiggio »

Same problem here: 100% CPU usage while watching video, playing flash sites (f.e. youtube)
I'm using VirtualBox 3.0.8 on a 32-bit Debian Lenny
Guest OS: Windows XP SP2
fyi
Posts: 25
Joined: 20. Jan 2009, 07:58
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP sp3, Debian, others

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by fyi »

I would really really really like to know why virtualbox 3 is so slow. It's like having a 500mhz machine, when i paid for a core2duo@2.5ghz.
Not much point in using vbox to do any multimedia.. the audio latency went downhill in v3, I'm wait for 3.0.10.. if that doesn't fix anything then i'll likely drop using v3 and go back to v2 which i found ran faster, or, move to another virtualization software.
Sony Vaio SZ79SN/C, 2.6.31.12-rt21, VTx. Core2Duo T9300 2 x 2.50GHz, 800MHz FSB, 6MB L2, GM965, NVIDIA 8400M GS / X3100, 4GB DDR2 667, Seagate GForce, 13.3 WXGA TFT White LED, Intel 4965AGN, 1.76kg
rdonnelly
Posts: 20
Joined: 25. Sep 2009, 15:13
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Win 2K
Location: Kingston, NY USA
Contact:

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by rdonnelly »

I have found anti virus and spyware programs can really make win VB crawl. I find it easier to take more snap shots in case on of these nasty buggers gets in. Try and disable the AV and AS programs if you have them, and see how it goes.
fyi
Posts: 25
Joined: 20. Jan 2009, 07:58
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP sp3, Debian, others

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by fyi »

Thank for some ideas, I'll look deeper into what processing are resident.
Just updated to 3.0.10, seems a little better already.
Also going to update my host to a shiny new custom kernel soon too, so there's still hope :P
Sony Vaio SZ79SN/C, 2.6.31.12-rt21, VTx. Core2Duo T9300 2 x 2.50GHz, 800MHz FSB, 6MB L2, GM965, NVIDIA 8400M GS / X3100, 4GB DDR2 667, Seagate GForce, 13.3 WXGA TFT White LED, Intel 4965AGN, 1.76kg
forcemaker
Posts: 4
Joined: 1. May 2009, 13:03
Primary OS: Ubuntu 8.04
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP, Ubuntu, Slackware

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by forcemaker »

Similar problems here:
* Running Ubuntu 9.04 64bit
** Intel Core Quad Q6600
** 8GB RAM
** SATA Subsystem for HDDs
* Guest: Win XP Pro 32 bit

My windows is very slow on intensive and even low network access. Remarkable is that the Task Manager shows almost/mostly 100% CPU load. If I switch on "View -> Show kernel timings" (close translation, german original: Ansicht -> Kernelzeiten anzeigen) the task manager will show you with a read line how much time is used in the "system part" of windows, so things like drivers and stuff will be accounted here. So the "non system part" are services and tasks as we know them.

If you take a "normal" Win XP system, you will recognize almost no high red line in task manager.

So, let's take another step: go to http://www.sysinternals.com (which is now owned by Microsoft) and get yourself the "process explorer" tool. Download it, start it, (confirm the legal matter,) and have a look at the system load there. You will recognize - on network related access - much load in the "Interrupts" section, maybe some load in the DPC (Deferrred procedure calls) section. The difference to the standard task manager is the detail you get.

Please either confirm my explanations/predictions, so that I know what is happening at your system.

Let's continue... under this address: http://www.thesycon.de/eng/latency_check.shtml you can get a tool called "DPC latency checker". It once helped me identify some "wrong" situation with my VirtualBox VM. Its task is to show certain latency caused e.g. by device drivers using the above mentioned DPC method. If the program shows yellow and many red bars, you got the same situation I got here.

The conclusion of this... well actually that the system is quite irresponsive, which the "DPC latency checker reports as a delay of XX.x microseconds. The system takes too much time in the DPC or Interrupts execution and therefor the rest of the system has to wait very long. It causes high CPU load without any actual load.

So that's my report and theory about our current problem, which I would declare as a problem of the virtual network drivers.


I had this problem about a year ago, earliest when VirtualBox was updated and supported multiple CPUs per VM. I gave my VM 2 Cores (of my 4) and had a quite unresponive experience with Windows XP Pro. Backthen I figured out the guest was producing a high load on the DPC which was caused exclusively when there was HIGH load on the Host system. The host system was computing for http://www.mersenne.org, but the mprime-tool worked with very low priority values. When either I disabled the mprime tool or when removing all but 1 cpu in the guest, things went fine. Or if I bound Virtualbox to exactly the amount of CPUs (Linux: use "taskset" from "schedutils" package) the VM had, I could work flawless.

OK, that's all for the moment, please continue to share your experiences!

Greetings, forcemaker
ghiggio
Posts: 3
Joined: 25. Oct 2009, 20:32
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by ghiggio »

are there news using 3.0.12?gonna upgrade in the w-e...
ghiggio
Posts: 3
Joined: 25. Oct 2009, 20:32
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by ghiggio »

not fixed with .12 :(
forcemaker
Posts: 4
Joined: 1. May 2009, 13:03
Primary OS: Ubuntu 8.04
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP, Ubuntu, Slackware

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by forcemaker »

same here, no change.
zealot0630
Posts: 2
Joined: 2. Dec 2009, 11:59
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by zealot0630 »

same problem... any solution ?
zealot0630
Posts: 2
Joined: 2. Dec 2009, 11:59
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Win XP

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by zealot0630 »

I seems that NAT was broken; VM will receive a lot of packet if NAT is used, cause interrupts eat up cpu.
Use bridge instead
tonny
Posts: 21
Joined: 7. Jan 2010, 23:54
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7

Re: Virtual Box 3.04 slow and high CPU load on Window XP SP3

Post by tonny »

Hello guys,

Just thought I share my experiences. I am using VirtualBox 3.1.2 under Windows 7, with a Windows XP SP3 guest. After switching from bridge to NAT I too experienced high CPU loads. Using a packet sniffing tool I realized that the problem is due to some endless loop that send FIN/ACK packets over and over again.
I managed to track this down to the Windows Firewall being enabled in the guest.
I usually got 3-4 events per day where the CPU usage would go to 100%, but since completely disabling the Widows Firewall in the guest I have not had any more problems.

Hope this helps.


Cheers !
super_b
Posts: 2
Joined: 12. Jan 2010, 06:21
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows Server 2003

Win7 + Server 2003 -> Disable Clipboard?

Post by super_b »

I was running a Windows 2003 and noticed the VBoxTray.exe high cpu times, completely freezing up the guest os at times. I had been having issues with the clipboard in the vm when connected via remote desktop from a Windows 7 host (the guest clipboard did not work, and rdpclip.exe on the guest also had high cpu times). I thought the two could be related since clipboards dont *usually* use up a lot of processor time ;), so I connected to the guest without sharing the host clipboard and things seem to be back to normal. Weird.
Post Reply