Virtual PC 2004 tips

I’m working with Microsoft’s Virtual PC 2004 again. Since the last time I discussed VPC, Microsoft released the essential Virtual PC 2004 Service Pack 1, which addresses a lot of outstanding issues, particularly compatibility with SP2 and newer AMD/Intel processors.

If you start delving into VPC, I highly recommend reading through the excellent Virtual PC FAQ. The biggest bugaboo is, of course, performance. This is the price we pay for the flexibility of virtualized hardware. Although performance is decent once you get the OS up and running, the OS installs themselves can be downright brutal. Plan for at least two hours for any OS install, and possibly many more.

Even if you have fire-breathing PC hardware – and any self-respecting developer should, because time is money, and PCs are cheap these days – you’ll be disappointed with Virtual PC performance. It’s adequate, nothing more. Scott Hanselman has some great Virtual PC performance tips direct from Microsoft. Some interesting comments on performance targets:

Ideally Virtual PC performance is at:

1. CPU: 96-97% of host
2. Network: 70-90% of host
3. Disk: 40-70% of host

Evidently, emulated disk performance is terrible. I use dynamically expanding disk images for flexibility, but it might be worth experimenting with fixed-size disk images, dedicating a separate drive to VPC, or even the oddball physical drive mapping mode (see the VirtualPC FAQ) to get around that bottleneck. This also means you never, ever want to starve your VMs for memory. If these guys start paging to disk, you’ll be in a world of hurt. Oddly, video performance is not mentioned there. The emulated video hardware is also substantially slower than a native device, but is typically less of a bottleneck in real world usage (well, until Longhorn, but let’s not go there right now). These percentages jibe with the Virtual PC benchmarks I found. The CPU, memory, and network performance is respectable – the biggest performance problems in Virtual PC are caused by the slow emulated disk and video subsystems.

When installing operating systems, it’s important to know exactly which devices Virtual PC emulates:

  • S3 Trio Video Card
  • Intel / DEC 21140 Network Card
  • Soundblaster 16 ISA PnP Sound Card
  • Intel 440BX Motherboard Chipset

Host CPU is equal to your physical CPU, obviously. This isn’t that kind of emulation. Why did they choose to emulate these particular devices? Compatibility.

Also, VirtualPC is slow enough as-is without torturing yourself with physical floppies or CDs. Always use disk image files! You’ll want WinImage for making floppy images, and something like LC ISO Creator for creating CD/DVD ISO images.

Related posts

The Ultimate Dogfooding Story

In software circles, dogfooding refers to the practice of using your own products. It was apparently popularized by Microsoft [http://en.wikipedia.org/wiki/Eating_your_own_dog_food]: > The idea originated in television commercials for Alpo brand dog food; actor Lorne Greene would tout the benefits of the

By Jeff Atwood ·
Comments

Bill Gates and Code Complete

By now I’m sure you’ve at least heard of, if not already seen, the new Windows Vista advertisements featuring Bill Gates and Jerry Seinfeld. They haven’t been well received, to put it mildly, but the latest commercial is actually not bad in its longer 4 minute version:

By Jeff Atwood ·
Comments

See You at MIX08!

Well, you won't technically see me at MIX08 [http://visitmix.com/2008/] this year. But you will see some very cool top-secret stuff Vertigo created [http://www.vertigo.com/mix] in the keynote. [http://visitmix.com/2008/] MIX is by far my favorite Microsoft conference after attending the

By Jeff Atwood ·
Comments

Giving Up on Microsoft

Although I am generally platform agnostic, I make no secret of the fact that I am primarily a Microsoft developer. In a way, I grew up with Microsoft-- as a teenager, I cut my programming teeth on the early microcomputer implementations of Microsoft BASIC. And I spent much of my

By Jeff Atwood ·
Comments

Recent Posts

Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
The Great Filter Comes For Us All

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven’t any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don’t stop there – read the Story of Your Life novella it was based on for so much

By Jeff Atwood ·
Comments
I Fight For The Users

I Fight For The Users

If you haven’t been able to keep up with my blistering pace of one blog post per year, I don’t blame you. There’s a lot going on right now. It’s a busy time. But let’s pause and take a moment to celebrate that Elon Musk

By Jeff Atwood ·
Comments
The 2030 Self-Driving Car Bet

The 2030 Self-Driving Car Bet

It’s my honor to announce that John Carmack and I have initiated a friendly bet of $10,000* to the 501(c)(3) charity of the winner’s choice: By January 1st, 2030, completely autonomous self-driving cars meeting SAE J3016 level 5 will be commercially available for passenger use

By Jeff Atwood ·
Comments