VMware Cloud Community
vSohill
Expert
Expert
Jump to solution

Memory Limt

Hi ,

If I have a VM with 4 GB of RAM and has 3.5 GB limit. If the VM needs the whole 4 GB will it swap it the 0.5 GB inside the box i.e OS will sawp it in C:\ if it windows or it  will sawp it on the ESXI host disk ?

Thank you

1 Solution

Accepted Solutions
vijayrana968
Virtuoso
Virtuoso
Jump to solution

This depends on this settings of virtual memory/pagefile configured inside VM guest OS.

The ballooning will start when the limit is reached to 3.5 GB and ESXI will tell your Guest OS to move rarely used / unimportant memory pages to local harddisk (swapfile inside the Guest), but if there is still not enough free memory, it will swap to ESXI host disk/datastore.

View solution in original post

Reply
0 Kudos
7 Replies
bluefirestorm
Champion
Champion
Jump to solution

The paging/swap system of the guest OS in the VM still operates the same way. In Windows OS, that will be the pagefile.sys while in different flavours of Linux that will be the swap partition. The page faults/swaps will thus occur inside the virtual disk of the VM.

vijayrana968
Virtuoso
Virtuoso
Jump to solution

This depends on this settings of virtual memory/pagefile configured inside VM guest OS.

The ballooning will start when the limit is reached to 3.5 GB and ESXI will tell your Guest OS to move rarely used / unimportant memory pages to local harddisk (swapfile inside the Guest), but if there is still not enough free memory, it will swap to ESXI host disk/datastore.

Reply
0 Kudos
vSohill
Expert
Expert
Jump to solution

What else factor drive to use ESXI disk for swaping ?

Reply
0 Kudos
vijayrana968
Virtuoso
Virtuoso
Jump to solution

Before Swapping, ESXI will use other techniques such as Transparent pages sharing, ballooning, memory compression. Swaping is the last option is none of other technique seems to be working. Have a look for more details. http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/perf-vsphere-memory_manag...

Reply
0 Kudos
vSohill
Expert
Expert
Jump to solution

Thank a lot I know  reclamation tech on vSphere  , I meant will recalmation occure if there is  memory connections on the host  only ?

Reply
0 Kudos
vijayrana968
Virtuoso
Virtuoso
Jump to solution

Yes, reclaimation techniques applies when there is memory contention at host.

vSohill
Expert
Expert
Jump to solution

Thank you