Good day, I have a question about swap files. If I create a virtual machine with 1vcpu, 2gb ram, and am not using a resource pool, then I see that my swap file is 2GB in size. I understand that, so far. If I use memory reservation of 1GB, my swap will be 1GB. Understand that part as well. What I don't understand is, when this file will be used? I've read some links on web, and I see it has nothing to do with the windows page file. If I have a VM with 1GB of vram and all of that 1GB is being used, I would think that windows is going to start writing to the pagefile, which will kill performance. Unless I am wrong and that is when this swap file is used?
Any assist?
MN
There are three steps the vmkernel uses in managing and freeing up memory -
There are three steps the vmkernel uses in managing and freeing up memory -
Thank you for quick reply. Just so I understand, if a a VM is set to 2GB of vram and the VM actually needs the 2GB, but the host does not have 2GB free to give the VM, that is when the swap file is used?
In regards to page file, should I assume if page file is being used, VM has not been configured with the appropriate amount of vRAM? Is there an easy way in vSphere client or on guest OS to see this?
My apology if these are elementary questions, as I'm still new to VMware, most of my past has been in other areas of IT
Thank you for quick reply. Just so I understand, if a a VM is set to 2GB of vram and the VM actually needs the 2GB, but the host does not have 2GB free to give the VM, that is when the swap file is used?
That is correct -
In regards to page file, should I assume if page file is being used, VM has not been configured with the appropriate amount of vRAM? Is there an easy way in vSphere client or on guest OS to see this?
I would not necessarily say it is sized incorrectly because a machine, virtual and physical, will constantly be using its swap file and the swap file might be used for momentary spikes -
thank you. you have been very helpful
One more question if you don't mind.
If I have VMs, say Windows XP set to 1GB of ram, and in vSphere client, it says consumed host memory of 1201, does that mean, I should be configuring them with 2GB, 1201MB is more than 1GB
There is a slight memory overhead that is needed by the vmkernel -