Hello all, I think this is neverending question, but sometimes I'm facing swapping issue that I really do not undesrtand.
I have two hosts in cluster (not HA), both running 96G of RAM. I keep enough of free RAM on each to be able to migrate all of VMs to one or other if needed, so total provisioned RAM of all VMs in this cluster is not greater than 90GB something-ish).
I've noticed higher swap usage on node 2 yesterday. It was about 8GB of swap that was used. So I started thinking why this could have happened. Because what looks strange to me is that the host has ~40GB free RAM when running (you can look at the attached image) and yet it's swapping quite a lot. I have set the vm.swappiness to 1 on both nodes when freshly installed. First node is running with no swap used at all...
There is one VM with 40GB of RAM assigned that runs with high RAM usage (>95%) and had balloning set to 32GB/40GB (I've just fixed it to single 40GB for now, ballon still enabled). I saw that swapping decreased a lot when I've lowered the VM RAM usage, also that is strange to me why host swaps out when guest was runing out of RAM...
I am not even able to finish *swapoff -a* on the second node, because it kinda hangs on last ~10MB of swap used and then never ends. And as you can see swap usage has rised to ~350MB since this morning...
Any ideas? Can balloning device cause host to be swaping when guest running low on ram? Even when host has enough free RAM available? Or why did kernel swapped out 8GB of RAM even when there was ~40GB RAM available...???
I have two hosts in cluster (not HA), both running 96G of RAM. I keep enough of free RAM on each to be able to migrate all of VMs to one or other if needed, so total provisioned RAM of all VMs in this cluster is not greater than 90GB something-ish).
I've noticed higher swap usage on node 2 yesterday. It was about 8GB of swap that was used. So I started thinking why this could have happened. Because what looks strange to me is that the host has ~40GB free RAM when running (you can look at the attached image) and yet it's swapping quite a lot. I have set the vm.swappiness to 1 on both nodes when freshly installed. First node is running with no swap used at all...
There is one VM with 40GB of RAM assigned that runs with high RAM usage (>95%) and had balloning set to 32GB/40GB (I've just fixed it to single 40GB for now, ballon still enabled). I saw that swapping decreased a lot when I've lowered the VM RAM usage, also that is strange to me why host swaps out when guest was runing out of RAM...
I am not even able to finish *swapoff -a* on the second node, because it kinda hangs on last ~10MB of swap used and then never ends. And as you can see swap usage has rised to ~350MB since this morning...
Any ideas? Can balloning device cause host to be swaping when guest running low on ram? Even when host has enough free RAM available? Or why did kernel swapped out 8GB of RAM even when there was ~40GB RAM available...???