ESXi

 View Only
  • 1.  Removing .vswap file

    Posted Jun 19, 2013 10:57 AM


    Hi all

    In our enviroment storage and disk i/o is at a premium, so we were looking into removing the need for .vswap file to free up space and remove potential i/o.

    We are not short of RAM at the moment so in theory we could set full reservations on all VMs to remove the need for .vswaps.  But I am a little reluctant to do this as it might limit the flexabilty of memory allocation, especially in a DR situation.

    Is there a way of disabling the .vswap file use without setting the reservations?  And what would be the pros and cons of doing this?

    We are running vsphere 5 with some esxi 4 also

    Thanks



  • 2.  RE: Removing .vswap file

    Posted Jun 19, 2013 11:40 AM

    This should help

    Remove virtual machine swap space on disk | TechRepublic

    The pros - no vswp files

    Cons - Memory etc needs to be configured manually per your DR sizing requirements and HA conditions

    http://kb.vmware.com/kb/1010594



  • 3.  RE: Removing .vswap file

    Posted Jun 19, 2013 12:51 PM


    Thanks, but read that already and doesn't really answer my questions.  What I am looking for is whether there is a settting that just says "do not use a swap file" without having to set resevations for each machine



  • 4.  RE: Removing .vswap file
    Best Answer

    Posted Jun 19, 2013 01:23 PM

    No there isnt.



  • 5.  RE: Removing .vswap file

    Posted Jun 20, 2013 10:34 AM

    We battled swap vs. reservations for a long time.  Finally, we just presented a shared Thin (as in "thin-provisioned on the array") Tier-2 (slower, cheaper disk) LUN on our EMC VNX array to every host and told the hosts to use this shared datastore as their swap location.  (CRITICAL NOTE - We do not oversubscribe our clusters, so there is no chance of RAM coming up short and swapping actually happening, and just to be sure we set major alarms in the event that some swapping does occur.)

    The LUN should be equal in size to the amount of RAM in your cluster (i.e. the max amount of vswp space required if zero reservations are set on all VMs).

    Because of VAAI, at VM Power Up, the host will just ask the array to set aside a vswp file equal to the amount of un-reserved RAM on the VM, and the array will confirm that this is actually complete, though the actual blocks on the array are not filled in, which means that the LUN isn't inflating.

    Results: Each 2 TB Thin "swap" LUN on the array is using about 10 GB of space to support a full 16-node cluster, and none of our T0/T1/T2 production disk is going to waste to support vswp files that will never be used.  (i.e. Net savings: ~2TB per cluster)

    I'm not sure if these specifics all fit your environment, but the concept is hopefully broad enough to be helpful.