I'm working with a virtual machine on a two node cluster, the virtual machine has 8gb of memory allocated to it. No limits are set, but there virtual machine is using a small amount of vmkernal swap, even though the virtual machine is only using around 300mb of the total amount of memory, and that host has 80gb of memory left over. It is only 5mb but I would like to have it not use any at all and I don't see a reason for this at this time.
If the VM has some amount of memory swapped out then obviously at some point ESXi felt like it is the right thing to do. Could have been caused either by memory contention on the host at that point in time, or by limit on VM and / or resource pool, where VM resides.
There is nothing really wrong with the fact that some swap is being used, as long as it is not used actively (constantly written to / read from).
If you would like to "force clear out" the picture, power the VM off and then back on. In case of sufficient memory resources and no limits, swap used should be 0.
Hope this helps.
Thank you for your reply the, restart of the VM fixed the issue
