HI
just to clarify: the vswp is not used as RAM while the VMkernel has enough physical RAM. This file is created at VM startup, but it's used by the kernek to swap the VM memory if : 1) physical ram is scarce 2) balloon driver didn't retrive enough VM RAM (or is not installed).
But you can :
- move the file for a particular VM (edit settings of VM - Options - swapfile location) this is better than changing all the working directory, because working directory is used by snapshot too.
- move all vswp files for a particular ESX (configuration - virtual machine swapfile location) be carefull, VMotion can take longer because having to move the vswp according this parameter.
- move all vswp files at the Cluster level (edit settings - swapfile location)
hope it helps.
Stéphane Grimbuhler
Senior Virtualization & Storage consultant (VCP / VCAP-DCA)
VMware Instructor (VCI)
My Blog : www.virtualgeek.ch