Windows XP: bad SMP performance

Discussions about using Windows guests in VirtualBox.
skoehler
Posts: 117
Joined: 1. Dec 2008, 12:12

Re: Windows XP: bad SMP performance

Post by skoehler »

michaln wrote:
skoehler wrote:I powered the VM off and then fired it up again each time to measure the startup time. So yes, it must have been a different issue.
OK, thanks for the confirmation. Just for reference, how exactly do you define "startup time"?
Way ahead of you. My posting included a precise definition of startup time. Anyhow, here is the defintion:
I measured the time from clicking the Start button in the VirtualBox GUI instead I could see the Windows desktop of the user (auto-login is enabled in the guest, so XP boots right through to the desktop of the main user account).
thanar
Posts: 40
Joined: 21. Nov 2013, 19:18
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: winXP, win7
Location: Kozani, Greece
Contact:

Re: Windows XP: bad SMP performance

Post by thanar »

skoehler wrote:Now I'm terribly curious: did XP run fast with 4 CPUs in Parallels?
Yep, it ran full-speed, although I do not remember if windows did indeed see multiple CPUs; I suspect it did, 80% certain.
skoehler wrote:What exactly from that thread did you try?
Tried the fix, as in the first post in the thread.
skoehler
Posts: 117
Joined: 1. Dec 2008, 12:12

Re: Windows XP: bad SMP performance

Post by skoehler »

thanar wrote:
skoehler wrote:What exactly from that thread did you try?
Tried the fix, as in the first post in the thread.
That cannot be considered a fix, if you want multiple CPUs inside the guest. The ACPI-PC HAL (the guy didn't change the processor driver, he changed the HAL) does not support multiple CPUs. Neither does it support I/O-APIC. Hence, the guest will use only one CPU and no I/O-APIC. In result, Windows will run faster then with multiple CPUs or a HAL that uses the I/O-APIC (at least for I/O-heavy loads). But then you're basiscally simply running a single CPU guest.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows XP: bad SMP performance

Post by socratis »

skoehler wrote:But then you're basiscally simply running a single CPU guest.
Thank you for confirming my findings!!!
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
thanar
Posts: 40
Joined: 21. Nov 2013, 19:18
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: winXP, win7
Location: Kozani, Greece
Contact:

Re: Windows XP: bad SMP performance

Post by thanar »

Fixing the extremely poor performance is still considered a fix for me; switching to single-CPU under VirtualBox then.
thanar
Posts: 40
Joined: 21. Nov 2013, 19:18
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: winXP, win7
Location: Kozani, Greece
Contact:

Re: Windows XP: bad SMP performance

Post by thanar »

I checked again the XP VM in Parallels just now and it still uses 4 CPUs with the HAL driver that makes the same VM under VirtualBox sluggish.

Creating a new XP (no sp) VM with I/O APIC disabled and VT-x/AMD-V and Nested Paging enabled.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows XP: bad SMP performance

Post by socratis »

thanar wrote:Fixing the extremely poor performance is still considered a fix for me
Sure thing... unless you actually need to run a multi-threaded, multi-core aware, CPU hungry, number-crunching program. And it's not even close to be called a fix. Not even a workaround.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
thanar
Posts: 40
Joined: 21. Nov 2013, 19:18
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: winXP, win7
Location: Kozani, Greece
Contact:

Re: Windows XP: bad SMP performance

Post by thanar »

The new XP (no sp) VM set up with 1 CPU (with I/O APIC disabled and VT-x/AMD-V and Nested Paging enabled) and most other settings default is BLAZING FAST. XP uses ACPI-PC HAL. I need the VM to run 2D CAD applications, so I don't think I need extra CPUs. Will stick with this one VM for now, unless there's a new 4.3.x version out in the next couple of days that fixes this issue. Have to check the beta builds I guess.

Just had a look on VirtualBox's bug traker and I did not see a related bug, seems strange to me. Am I missing something?
Richard10250
Posts: 1
Joined: 7. Jul 2013, 14:34

Re: Windows XP: bad SMP performance

Post by Richard10250 »

For what it is worth, my experience is similar to others...VB version 4.2.18...fresh install of WinXP SP3 is horribly slow while installing updates with SMP enabled (2 CPUs), but when I drop back to 1 CPU the system flies
Post Reply