4

I'm running Windows XP through VirtualBox on my i7-3610M laptop (Windows 7 Ultimate 64-bit). I've already assigned 8 CPUs plus 100% execution cap plus 4 GB RAM to the VM, but I don't think it's getting the most out of the 3610M because even when programs are exhausting the XP guest with 100% CPU usage as shown in its Task Manager, it never goes over 20% as shown in the host's (Windows 7) Task Manager.

How should I configure the VM to make full usage of the CPU?

7
  • 32-bit Windows XP cannot even allocate 4GB of memory. Your current settings are the capacity of a 32-bit oeprating system.
    – Ramhound
    Sep 11, 2012 at 11:29
  • 3
    @Ramhound Windows XP x86 can address up to 4GB of RAM. It can only allocate 2GB per process (3GB if certain conditions are met), but the system itself can access 4GB, minus any hardware mapped memory. And the question is asking why the guest appears to have CPU limitations, not RAM.
    – Bob
    Sep 11, 2012 at 11:55
  • 1
    @Shane Do all 8 assigned cores appear in the XP task manager? If not, it may be related to this question.
    – Bob
    Sep 11, 2012 at 12:07
  • Why not just use another Win7 x64 version in a VM? Sep 11, 2012 at 12:27
  • 1
    @Bob: Thanks a lot mate! Problem solved by hacking XP with devcon, now all 8 assigned cores finally showed up in the task manager! Funny thing is although the CPU usage can now shoot up to as high as it needed, I don't see much performance improvement and sometimes the XP even lags down the host os (win 7 64bit) a little bit. I guess XP isn't that good when it comes to multiprocessor management.
    – Shane
    Sep 12, 2012 at 10:15

2 Answers 2

4

Windows XP Pro is limited to two CPUs (but each of them can have multiple cores).

If VirtualBox simulates 8 single-core CPUs 2 can only be used which would result in a maximum of 25% which is very near to what you have observed.

Therefore if there is no option to tell VirtualBox to simulate 2 hexa-core CPUs instead of 8 single core CPUs you can not use Windows XP.

If you need an older Windows-OS that can make use of multiple cores better use Windows 2003 Enterprise Edition which can handle up to 8 individual CPUs.

2
  • 2
    The VirtualBox documentation implies it exposes cores, as opposed to physical CPUs. There is a related question on what may be an XP bug. Edit: confirmed that VirtualBox 4.1.20 exposes cores. Just tested, 8 cores working on a Windows 7 Professional guest, which is limited to 2 physical processors (i.e. processor sockets).
    – Bob
    Sep 11, 2012 at 11:58
  • This is helpful info - but I'm still not sure why his XP is sluggish - I can run my XP just fine on 1 core of a 2.1GHz processor.
    – cutrightjm
    Sep 11, 2012 at 16:33
-1
config.vm.define "box1" do |box1|
box1.vm.box = "ubuntu/trusty64"
 box1.vm.provider "virtualbox" do |vb|
  vb.customize ["modifyvm", :id, "--cpuexecutioncap", "100"]
  end
 end
1
  • 1
    Please explain your answer Jun 10, 2017 at 5:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .