Proxmox not releasing memory

zemzema

Member
May 26, 2020
15
0
6
67
I check node with two VM on in, and there is that consumption of memory is very high. When you check VM that are running on than server, they are using very small amount.

Check screens.

On first picture is Host, on other two are VM, and fourth is htop memory consumption on Host.
 

Attachments

  • Screenshot_2020-06-09_11-00-01.png
    Screenshot_2020-06-09_11-00-01.png
    20.9 KB · Views: 31
  • Screenshot_2020-06-09_11-00-25.png
    Screenshot_2020-06-09_11-00-25.png
    14 KB · Views: 27
  • Screenshot_2020-06-09_11-00-36.png
    Screenshot_2020-06-09_11-00-36.png
    13.2 KB · Views: 26
  • Screenshot_2020-06-09_11-01-04.png
    Screenshot_2020-06-09_11-01-04.png
    92.5 KB · Views: 31
Yes, but that machine is using around 2GB for normal run. There was a peek to 8GB, and after two second machine returned to normal, but host server didn't release memory consumption. On the end I restart hypervisor and memory was back to normal.
 
I am seeing the same issue, I am running manually these commands:

oot@proxmox:~# sync; echo 1 > /proc/sys/vm/drop_caches root@proxmox:~# sync; echo 2 > /proc/sys/vm/drop_caches root@proxmox:~# sync; echo 3 > /proc/sys/vm/drop_caches

According to the screenshot attached it drop from 6GB to 4 GB ram utilization after this. I am unsure if this will be a good practice, more likely not, but I am considering scheduling a job to release memory every hour or so until I find the root cause of such behavior.

2021-02-12_09h36_59.png
 
I am seeing the same issue, I am running manually these commands:

oot@proxmox:~# sync; echo 1 > /proc/sys/vm/drop_caches root@proxmox:~# sync; echo 2 > /proc/sys/vm/drop_caches root@proxmox:~# sync; echo 3 > /proc/sys/vm/drop_caches

According to the screenshot attached it drop from 6GB to 4 GB ram utilization after this. I am unsure if this will be a good practice, more likely not, but I am considering scheduling a job to release memory every hour or so until I find the root cause of such behavior.

View attachment 23591


I was wrong and it does not seem to be an issue, is just a miss understanding in how the memory is being reported. Although it shows as assigned, it is on DISK CACHE. Please visit these sites: https://tldp.org/LDP/sag/html/buffer-cache.html and: https://www.linuxatemyram.com/ to understand how it works.
 
Yes, thats normal and there is no way to limit the size of that buffer cache. Linux will eat all the RAM you throw at it so overcommitting RAM isn't really working.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!