I am unsure if this is normal behavior for a Linux ballooning + KSM VM but I created a VM and ran the following command to consume full RAM
The nodes total RAM usage went up by 90GB I then cancelled the program and the VMs RAM usage has been the following for several hours now however the nodes RAM usage is not lowering (VM usage shows 2/96 GB). The only way to restore the RAM is by rebooting the VM.
Code:
stress-ng --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1
The nodes total RAM usage went up by 90GB I then cancelled the program and the VMs RAM usage has been the following for several hours now however the nodes RAM usage is not lowering (VM usage shows 2/96 GB). The only way to restore the RAM is by rebooting the VM.
Code:
[root@ip70 ~]# free -g
total used free shared buff/cache available
Mem: 94 2 91 0 0 90
Swap: 0 0 0
Last edited: