9

I wonder how or if any one tried to create a RAM DISK, and then put the 2GB (or sometimes 1.2GB) .vhd file into it, and then run the virtual PC using this image.

It should be running super fast, as the hard disk is now simulated by RAM... I never tried but saw that there is tmpfs on Linux. So with VirtualBox, it should be doable... How about on Windows or on a Mac, anybody tried before and saw how fast it is?

P.S. it was for the historical reason that the hard drive was not SSD in 2009 and it can take a lot of time accessing the physical spinning hard disk, with 1 file mapping to some virtual structure of a hard drive. I think the "state of the virtual PC" can all be in the physical RAM of the computer, so it is not a problem. Now that we have SSD, it is like a RAM Disk that pretends to be a hard drive, so it should be quite fast).

nonopolarity
  • 9,886

2 Answers2

6

It's debatable.

Performance will indeed increase considerably. But if you have enough RAM to create a RAM Disk capable of storing a whole image, know that both VirtualBox, VMWare and VirtualPC are capable of caching your images as data is accessed. So while the RAM Disk doesn't necessarily become redundant, its performance increase over a cacheable image will not be that great.

It's also a risk. A power outage or any other situation where your PC is accidentally turned off will destroy you image (or any changes you made to it since you last load it).

Finally, it will make starting up and closing down the VM session slower as the whole image needs to be read from disk into memory and later saved back to disk.

A Dwarf
  • 19,329
2

harddisk speed is the biggest bottleneck nowadays, there are other bottleneck also (e.g. drivers delay, OS architecture design for mechanical drive etc).

deddebme
  • 3,814