I had some folks from our .NET development team come to me with a problem today – their ASP.NET code was taking forever to recompile after updates to the code base. But these guys are cool – they came with a proposed solution (most people who grace my office door are simply dropping off problems). Their solution? A RAMDisk mounted in a VMware Windows guest.  I give them credit for a novel approach, but I could see some issues:

  • What would happen if the balloon driver kicked in and demanded the memory the RAMDisk was running on?
  • A reservation would get around the balloon driver issue, but there is no way to specifically target the 512MB of RAMDisk, all memory in the VM must be reserved.
  • I’m a pragmatic Windows systems administrator at heart, with a heap of systems and processes to manage and monitor.  I don’t want the additional burden of making sure the RAMDisk loads at boot, keeps a consistent image across boots, can be easily updated by new code pushes, and remains compatible with new VM hardware and Tools versions.
  • A RAMDisk would take from what are already memory constrained VM’s, possibly hurting performance more than helping.
  • If the disk subsystem is slow enough to get you thinking down the path of a RAMDisk, maybe it’s time for a new SAN…

I did some Googling around and couldn’t find any decent info.  I did find a few hits on people running VMware guests entirely inside a RAMDisk – a concept that peaked my interest almost enough to think about trying it just to say I did….  Have any of you experimented with a RAMDisk inside a VMware guest?  If so, what did you take away from the setup?  Was there a performance gain?  Where there gotcha’s?  Leave a comment if you have experience, guesses, or advice on this idea.


Related posts:

  1. Balloon Driver Problems with SQL
  2. Windows Server 2008 R2 & Windows 7 Freeze When Using SVGA Drivers
  3. Update: SVGA Drivers on Windows 2008 R2 and Windows 7
  4. High CPU Ready, Poor Performance
  5. vSphere Upgrade Breaks Active Directory

2 Responses to “RAMDisk Usage in a vSphere Environment”

  • Found your article by accident when following PlanetV12n on twitter.

    I do run a RAMDisk inside one of my linux guests. It helps (a lot) when dealing w creation of lots of small temp files. I had to resort to it when running Magento Web Commerce.

    It was done some time ago and by then we were using vmware server, with very limited memory and I suppose it did memory balooning very agressivelly. We didnt observe any problems back then.

    We’re on esxi now, and im just not leaving the RAMDisk even with fast controllers, drives and raid. We got spare memory on it so I couldnt tell if tere is a problem w balooning and RAMDisk.

    Bottomline, it might work better than expected.

    kind regards,
    Caio.

  • Take a look at Atlantis Computing and the vScaler product which does a form of dynamic inline IO and Storage caching. The product can accelarate performance of apps and VMs for most IO intense workloads.
    Http://www.atlantiscomputing.com
    vScaler

Leave a Reply

Additional comments powered by BackType

About Me

twitterface

Hello, and thank you for visiting VMtoday. My name is Josh Townsend. I am a technology professional with a strong background in VMware Virtualization, Storage, and Microsoft technologies. I am a Sr. Systems Administrator at Tiber Creek Consulting in Fairfax, VA, and hold several technical certifications, including VMware Certified Professional. I am also a 2010 VMware vExpert.

vExpert logo

VCP logo

I am also leader of the Washington DC Metro Area VMware User Group (VMUG).

VMUG logo

The opinions expressed on this site are my own and may not reflect the views of my employer, VMware, or any other party unless otherwise stated.

Please feel free to follow me on Twitter
@joshuatownsend

Virtualization Jobs

Virtualization Resources