My machine has 16GB ram(Virtual Environment 7.2-7).
VM1 given 2GB and 6GB ballooning enabled(qemu agent enabled).
During midnight VM1 will run backup which consuming all 6GB and mostly cache
We can see that it s over 3GB as cache.
This resulting my host ram usage at 82.17% (12.74 GiB of 15.51 GiB)
When it come to day, VM2 start consuming the RAM slowing given 2GB ballooning to 8GB.
As the VM2 memory slowly increasing host memory reach over 95% over few minute.
I can see VM1 start to deflate but very slowly.
VM1 freeing up the cache fast enough, this resulting OOM kill VM1.
I can turn on swap to prevent this but it just continue to consume swap instead of freeing memory on VM1.
Is there a way to set memory deflate aggressiveness ? or start deflating at maybe 70%
VM2 which is windows took only 2 minute to fully deflate the ram.
This is last 2 log(5min interval) taken before OOM killed VM1
Update, found 80% is hard coded ?
https://git.proxmox.com/?p=pve-mana...34d21f851030c017ba7;hb=refs/heads/master#l191
VM1 given 2GB and 6GB ballooning enabled(qemu agent enabled).
During midnight VM1 will run backup which consuming all 6GB and mostly cache
Code:
total used free shared buff/cache available
Mem: 5035 1622 129 1 3283 3130
Swap: 975 24 951
We can see that it s over 3GB as cache.
This resulting my host ram usage at 82.17% (12.74 GiB of 15.51 GiB)
When it come to day, VM2 start consuming the RAM slowing given 2GB ballooning to 8GB.
As the VM2 memory slowly increasing host memory reach over 95% over few minute.
I can see VM1 start to deflate but very slowly.
VM1 freeing up the cache fast enough, this resulting OOM kill VM1.
I can turn on swap to prevent this but it just continue to consume swap instead of freeing memory on VM1.
Is there a way to set memory deflate aggressiveness ? or start deflating at maybe 70%
VM2 which is windows took only 2 minute to fully deflate the ram.
This is last 2 log(5min interval) taken before OOM killed VM1
Code:
root@VM1:~# free -m
total used free shared buff/cache available
Mem: 5414 1635 495 1 3284 3497
Swap: 975 24 951
root@VM1:~# free -m
total used free shared buff/cache available
Mem: 4716 1647 407 1 2661 2791
Swap: 975 26 949
Update, found 80% is hard coded ?
https://git.proxmox.com/?p=pve-mana...34d21f851030c017ba7;hb=refs/heads/master#l191
Last edited: