VMware Communities
slewsys
Contributor
Contributor

How to optimize resources for Windows XP Pro x64?

System: iMac 24" (Core 2 Duo) with 2GB RAM.

VMWare config: Debugging disabled, 2 CPUs and 1GB of RAM allocated to Windows XP Pro x64.

After booting Windows x64, `top -o cpu' from the Mac OS X terminal shows vmware-vmx using 30% of the CPU when Windows is completely idle (no indexing, etc). When doing I/O intensive operations, CPU usage hits 100+% (sic). Furthermore, when restoring a session from hiberate and/or pause, it virtually freezes the system for what seems like several minutes.

Questions:

\* Are these kinds of loads what I should expect in the final VMWare product?

\* Are these loads due to Wiindows or virtualization?

\* What resource allocations might offer a better compromise?

\* Is there anything else I can do to reduce the load of Windows/VMWare?

Aside: Congratulations on Unity! Hopefully Apple will license your technology for integration into Mac OS X ...

0 Kudos
4 Replies
admin
Immortal
Immortal

  • Are these kinds of loads what I should expect in the final VMWare product?

30% is too high. I don't know about x64 specifically, but my XP VM takes <10% idle. Have you installed VMware Tools? Are you sure Windows is idle (e.g. check Task Manager)? If so, the only thing I can think of is that you're using a multiprocessor VM.

  • Are these loads due to Wiindows or virtualization?

There will be some overhead due to virtualization, but 30% seems excessive.

  • What resource allocations might offer a better compromise?

You might try a uniprocessor VM. Since a Core 2 Duo only has two cores, if the guest OS is doing something that requires synchronization across both cores, Fusion has to wait (and waste cycles) for OS X to give it both cores.

  • Is there anything else I can do to reduce the load of Windows/VMWare?

You can disable unnecessary Windows services. I don't know specifics, but I imagine gaming-centric resources would be helpful since they also want to eliminate useless overhead.

0 Kudos
slewsys
Contributor
Contributor

With the Windows XP Pro x64 VM configured to use only one core and Windows "System Idle Process" at 99% CPU (as per Task Manager), top(1) still shows a CPU usage for vmware-vmx at 25%. A snapshot of top output is listed below. Processor Palette (i.e., System Preferences => CPU => "Show control in menu bar" and then CPU menu => Show Processor Palette) shows the load on each core is virtually mirrored by the other. Unless I am mistaken, this is not a hardware issue with the Core 2 Duo. Presumably it is a weakness of Mac OS X 10.4.9 (either Mach or FreeBSD VM, whichever is responsible for MP scheduling).

Well, I guess that leaves room for improvement Smiley Happy Unfortunately, it would seem to be out of VMWare's control ...

Processes: 158 total, 2 running, 156 sleeping... 400 threads 21:37:31

Load Avg: 0.75, 0.78, 0.77 CPU usage: 4.5% user, 16.2% sys, 79.3% idle

SharedLibs: num = 85, resident = 14.7M code, 1.63M data, 4.45M LinkEdit

MemRegions: num = 27048, resident = 508M + 16.1M private, 1.05G shared

PhysMem: 1.06G wired, 629M active, 315M inactive, 1.98G used, 21.7M free

VM: 22.5G + 55.4M 2820399(0) pageins, 260877(0) pageouts

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE

8332 vmware-vmx 24.6% 6:38.69 30 143 1649 5.17M 993M 991M 1.56G

8546 top 4.1% 0:05.20 1 18 20 760K 292K 1.27M 27.0M

4992 Safari 3.2% 27:32.39 20 356 2456 94.7M 14.9M 79.5M 857M

0 kernel_tas 2.9% 1:44:47 50 2 1138 4.41M 0B 190M 1.29G

8244 CPUPalette 1.6% 0:37.42 2 536 149 1.43M+ 6.40M 2.94M+ 341M+

147 WindowServ 1.4% 62:19.82 3 538 3875 7.02M- 52.9M+ 50.1M+ 475M+

10856 firefox-bi 1.2% 11:15.06 8 167 343 32.9M 15.1M 35.7M 523M

480 UniversalA 0.3% 6:36.20 1 63 127 452K 4.89M 1.75M 351M

739 Terminal 0.2% 21:07.73 17 142 273 6.43M 16.4M 14.0M 392M

24277 Emacs 0.1% 33:25.13 4 101 372 27.8M 12.3M 27.9M 458M

465 Dock 0.1% 0:24.24 2 198 282 1020K+ 6.67M 2.07M+ 369M

28446 ruby 0.1% 7:41.39 2 16 267 161M 1.04M 161M 211M

485 BOINCManag 0.1% 17:37.23 1 70 185 1.02M 6.16M 2.59M 369M

494 boinc 0.1% 15:39.80 1 17 25 676K 584K 1.67M 27.8M

24552 ruby 0.1% 8:09.44 2 16 160 20.0K 1.02M 360K 67.3M

8325 vmware 0.1% 0:05.35 4 105 323 5.35M 13.8M 11.4M 390M

64 configd 0.0% 7:32.15 3 271 75 512K 592K 880K 29.3M

24541 ruby 0.0% 2:40.14 1 14 99 48.0K 964K 408K 42.8M

486 LCCDaemon 0.0% 1:06.10 2 88 115 692K 4.56M 2.13M 349M

322 postgres 0.0% 2:08.59 1 10 55 104K 4.82M 996K 74.6M

50 openmonito 0.0% 1:30.05 2 17 31 48.0K 440K 300K 27.9M

661 wcg_fcg1_s 0.0% 39:58.41 3 32 63 64.0K 460K 348K 55.0M

276 mds 0.0% 43:43.13 8 101 252 6.33M 3.00M 6.31M 68.6M

447 ntpd 0.0% 0:53.32 1 11 19 96.0K 336K 320K 27.1M

466 SystemUISe 0.0% 10:05.41 3 565 1142 125M 9.05M 39.2M 1.13G

1 launchd 0.0% 0:48.10 3 446 21 232K 280K 468K 27.7M

148 httpd 0.0% 0:25.75 1 10 298 20.0K 256K 216K 46.9M

12264 rm 0.0% 0:02.62 1 14 18 0B 208K 200K 26.7M

60 mDNSRespon 0.0% 0:16.35 2 32 24 208K 472K 480K 27.4M

323 postgres 0.0% 2:01.53 1 9 55 140K 1.91M 376K 37.4M

361 openinfo 0.0% 0:06.14 3 49 44 204K 1.03M 528K 38.5M

28537 postgres 0.0% 0:00.01 1 9 60 0B 4.82M 708K 75.3M

0 Kudos
admin
Immortal
Immortal

25% is still too high. I tried a fresh install of XP x64 + tools on a Mac Pro with 2GB total, 512 for the guest. Idle CPU hovered between 3-6%.

0 Kudos
admin
Immortal
Immortal

Grr, hit the wrong button, meant to attach a screenshot as proof. Did you use the same install as before but change the number of CPUs? Maybe that doesn't change the HAL that Windows is using.

0 Kudos