VMware Cloud Community
Viewaskew
Enthusiast
Enthusiast

Anyone still separate pagfiles to separate VMDKs still?

Just wondered how many people still create a separate swapfile disk and place it on a pagefile datastore on Windows servers?

My current workplace has done this historically and I'd like to revisit this rather than continue with it without questioning it.

Main reason I can see is that the pagefile datastores are not replicated to our DR site saving on space there and some bandwidth on replication but other than this, I dont really see much point in the extra overhead when creating new VMs. 

0 Kudos
3 Replies
vThinkBeyondVM
VMware Employee
VMware Employee

Hi Viewaskew,

  Here is nice FAQ on swapfile location :(Alternative) VM swap file locations Q&A - frankdenneman.nl


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos
grasshopper
Virtuoso
Virtuoso

I agree with Vikas, that's a great article on VM swap file locations (i.e. *.vswp).  However, in this case I'm pretty sure we're talking about the Guest OS swap (i.e. pagefile.sys on Windows, for example).  Placing GOS swap on dedicated vmdk's (i.e. P:\ for pagefile) is really overkill and actually adds another point of failure, not to mention management overhead for the vmadmin.

I have never personally adopted this.  Occasionally, this will come up in storage vendor health checks as a best practice.  IMHO it's a cry for help and a last ditch attempt for them to buy time or explain why their array is experiencing [insert problem here].  That's never the problem, and I always push back if they try that on me.  I agree it's good for dedupe on the non-paged volumes, but not worth it IMO.

It's not that I object to it as being viable, it would actually be pretty cool in some situations.  For example, if you follow the best practice of sizing your GOS swap as 1.5 times RAM (still considered a MS best practice), then you get the advantage of having a dedicated logical drive letter inside the GOS where you can safely expand the disk size to account for increases in RAM size.

Further, dedicated page file vmdk's prevent low free space conditions inside the GOS system disk (especially on dynamically sized Windows pagefiles.  Damn I hate those).  I guess one final nice thing is the ability to easily see how bad things are crunching on those swap files... much easier on a dedicated datastore I would guess, and it prevents heavy paging (especially when misaligned) from become I/O bullies affecting other VMs.

Anyway, just a couple thoughts.  I don't think either way is right or wrong, you can make arguments both ways;  It really comes down to preference.  Personally, I think defaults are good.  The less moving parts the better.

PS - and damnit... not my intention but I may have said more nice things about separating them, but maybe I'm just being nice.  I would never do it :smileysilly:

cjscol
Expert
Expert

I separate out Guest Operating System Pagefiles onto their own vmdk hosted on a separate VMFS datastore for the reason you mention.  To save on the replication bandwidth.  If the virtual machines are booted up at the disaster recovery site then a new guest operating system pagefile will be created so why waste the bandwidth replicating the data.

Depending on your backup solution, by separating the pagefiles out to different vmdks on different datastores may help you implement a solution where you do not backup the pagefiles.

I also do wonder sometimes if the added administration required to support virtual machines with pagefiles on non-replicated datastores if worth the saving we get.

Ideally you want your virtual machines sized for the workloads running within them so that they do not swap memory to the guest pagefile and therefore the pagefile stays empty and there is nothing to replicate or backup anyway.

I also configure the Hypervisor Virtual Machines Swapfile to be stored on a separate datastore, again so that I do not have to replicate them.

Calvin Scoltock VCP 2.5, 3.5, 4, 5 & 6 VCAP5-DCD VCAP5-DCA http://pelicanohintsandtips.wordpress.com/blog LinkedIn: https://www.linkedin.com/in/cscoltock