VMware vSphere

 View Only
  • 1.  Windows Swap File Location

    Posted Aug 03, 2011 04:24 PM

    Are there any performance hits or configuration issues if I configure a vm to have its OS vmdk on a NFS volume and its OS Swapfile HD on an iSCSI lun?



  • 2.  RE: Windows Swap File Location

    Posted Aug 03, 2011 05:10 PM

    I would check out the Performance Best Practices Guide, specifically starting around page 24:

    http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.0.pdf



  • 3.  RE: Windows Swap File Location

    Posted Aug 03, 2011 06:27 PM

    Thanks for the reply.  The pages in the Best Practice pdf seem to refer to ESX swap files not the Windows PageFile.  I am assuming that there is not much of a performance hit for a vm with vmdks on two different storage platforms.  This is what I need to nail down though.



  • 4.  RE: Windows Swap File Location

    Posted Aug 03, 2011 06:34 PM

    Placing the virtual machine’s swap file on a high speed/high bandwidth storage system will result in the smallest performance impact. The swap file location can be set with the sched.swap.dir option in the vSphere Client (select Edit virtual machine settings, choose the Options tab, select Advanced, and click Configuration Parameters). If this option is not set, the swap file will be created in the virtual machine’s working directory: either the directory specified by workingDir in the virtual machine’s .vmx file, or, if this variable is not set, in the directory where the .vmx file is located. The latter is the default behavior.

    You are correct that would not be much of a performance hit.  I have had a couple of different deployments where we had OS disk on cheaper SATA drives and the data on a different storage type.  So yes, it is possible, will you see much of a performance increase, probably not.



  • 5.  RE: Windows Swap File Location

    Posted Aug 03, 2011 07:30 PM

    An SSD dedicated to swap files might provide a performance gain. Testing could confirm.

    http://vpivot.com/2009/12/24/solid-state-disks-and-host-swapping/



  • 6.  RE: Windows Swap File Location

    Posted Aug 03, 2011 07:40 PM

    If you are swapping enough that SSDs vs. spinning media makes a difference, I think you have a bigger problem - you've overcommited your memory far too much.                   



  • 7.  RE: Windows Swap File Location

    Posted Aug 03, 2011 08:21 PM

    I have to agree with what mcowger is saying.