First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
« Scott Hanselman (that's me) on .NET Rock... | Main | Scott Hanselman's .NET Rocks show is up ... »

Here's a great list of tips from my buddy J. Sawyer at MSFT.

Biggest perf tip is to put the VPC Virtual Hard Disks (VHD) to separate disk spindles from the operating system.  The biggest perf issue with VPC is related to disk I/O … and by making the VPC fight with your OS and swap disk make this issue much, much worse.  Additionally, today’s USB 2.0 and Firewire external hard drives run on a fast interface bus (Firewire does have some advantages over USB 2.0, but both are excellent), have a large (8MB) buffer and spin at 7200 RPM, as opposed to 4200 RPM for most laptop HDD. 

Also, note the tip below regarding “Run Virtual PC at Maximum Speed” … this will give a boost to the VPC’s thread priorities at the expense of the host OS applications.  Depending on what you are using the VPC for, this may be exactly what you want. 

From a PPT Deck:

Guidelines:

  • Ideally Virtual PC performance is at:
  • CPU: 96-97% of host
  • Network: 70-90% of host
  • Disk: 40-70% of host
    • However this is only for optimized guest operating systems running typical loads for a single process
    • The Virtual PC team’s aim is always to provide the fastest possible solution while not compromising compatibility
    • While virtual machines are not slow – there is always the potential for an unusual application to cause performance issues

Performance Tuning

  • Guest Performance – Preferences
  • Check “File … Options”
  • Running guest in background: Enable “Run Virtual PC at Maximum Speed”
  • Running a test on multiple guests: Enable “All running virtual machines get equal CPU time”
  • Memory
  • Host should have a minimum of 256MB, 512MB – 1024MB recommended
  • More memory is recommended for running multiple virtual machines simultaneously
  • Each guest should be allocated memory like it would on a physical machine
  • Virtual machines cannot use paged memory on the host system

Additional Disk Optimizations

  • Virtual Hard Disk size
  • Compress them
  • Defrag guest
  • Clear unused sectors ( Cipher, Eraser, etc.)
  • DO NOT attempt this step on a differencing drive – it will expand the disk to maximum size and you cannot compact it.
  • Compact using Virtual Disk Wizard
  • Enable NTFS compression on host operating system
  • Trades off performance for file size
  • Virtual Hard Disk performance
  • Place the .VHD files on separate spindle from host OS
  • If using Undo or Differencing Disks, place them on an additional spindle

Tracked by:
http://www.bluealliance.it/weblog/200402archive001.asp#1077277817001 [Pingback]
"Virtual PC 2004 tips" (Coding Horror) [Trackback]
"Team Foundation Server Performance on VPC" (Sam Gentile's Blog) [Trackback]
"Team Foundation Server Performance on VPC" (Sam Gentile's Blog) [Trackback]
"Virtual PC Tips" (Claudio Brotto) [Trackback]
http://blogs/TechResearch/PermaLink.aspx?guid=f6c107dc-617d-4308-ab9e-f071f19f28... [Pingback]
"Virtual Machines and External Hard Drive throughput" (ComputerZen.com - Scott H... [Trackback]
http://www.hanselman.com/blog/VirtualMachinesAndExternalHardDriveThroughput.aspx [Pingback]
http://nkelkar.wordpress.com/2006/01/18/optimize-your-virtual-server-vhd/ [Pingback]
"Brent examines Virtual PC's disk options and performance impacts" (greg hughes ... [Trackback]
http://www.greghughes.net/rant/BrentExaminesVirtualPCsDiskOptionsAndPerformanceI... [Pingback]
"improving perf in a virtual machine" (James Manning's blog) [Trackback]
"I have this niggling "istartedsomething" feeling..." (Dugie's Pensiev... [Trackback]


Contact

Sponsors

Text Links

On this page...

Tags

Calendar

<August 2008>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Archives

Google Ads