VMware Cloud Community
mrstorey
Contributor
Contributor
Jump to solution

I/O Sizing relocated VM swap files

Hi,

We are looking to use the new VI3.5 feature of relocating the VM swap files to an alternate datastore.

We beleive this will be a significant cost saving because we will not only free up space on our datastores, but we don't have to replicate this data to our DR site, saving on more storage and replication bandwidth.

I wondered if any of you have done the same, and wondered if you had a sizing strategy for the number of swaps you would allow on a single LUN / vmfs datastore?

For example, we have well over 200 VM's split across around 20 LUNs in our primary HA and DRS cluster, but I'm reluctant to place 200 VM swap files on a single LUN for fear of degraded VM performance due to disk I/O and scsi locking on the 'swap file' vmfs datastore.

However, isn't it true that VM swap files only get written to when memory on the ESX host is sparse? ...and obviously when the swap is created when powering on the VM! So maybe disk I/O and scsi locking won't be an issue in an environment with comfortable amounts of free physical RAM?

Does anyone have any thoughts on this? I was thinking maybe storing no more than 50-100 VM swap files on a single vmfs datastore....does this sound ok to you?

Alex

Reply
0 Kudos
1 Solution

Accepted Solutions
weinstein5
Immortal
Immortal
Jump to solution

You are correct - the per vm vmkernel swap files are memory of last resort - so if you have your environment sized approriately they should be used rarely - I agree with your estimate 50-100 per datastore -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

View solution in original post

Reply
0 Kudos
4 Replies
weinstein5
Immortal
Immortal
Jump to solution

You are correct - the per vm vmkernel swap files are memory of last resort - so if you have your environment sized approriately they should be used rarely - I agree with your estimate 50-100 per datastore -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
mrstorey
Contributor
Contributor
Jump to solution

Cool - thanks for your advice. Most of the VMs have 2gb of RAM, so we're gonna create a number of 100gb VMFS datastores to store the swapfiles, thus approx providing space for up to 50 VMs each.

Reply
0 Kudos
weinstein5
Immortal
Immortal
Jump to solution

a reminder when you create a vmfs data store about 600 MB is held to store metadata -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
mrstorey
Contributor
Contributor
Jump to solution

Yep - no worries. It's all just to get a rough idea. I'll let you know how it goes! Smiley Happy

Reply
0 Kudos