Where did lose RAM? (Sorry for my English)

2Colors

New Member
Mar 30, 2021
2
0
1
26
Hello! Please, will tell me about "RAM Usage" at Node. Such trouble! The node uses 83% of the RAM - 105 GiB, but factical all Virtual Machines, if folded it their, uses max 60 GiB! Question! Where 40 GiB RAM? I am Attach screenshot htop.
 

Attachments

  • Безымянный.png
    Безымянный.png
    554.3 KB · Views: 9
Do you use ZFS? If so, run arcstat. If the RAM is available, ZFS will take up to 50% (if needed) as cache. It will release that RAM is other processes need it.
 
Do you use ZFS? If so, run arcstat. If the RAM is available, ZFS will take up to 50% (if needed) as cache. It will release that RAM is other processes need it.
Thank for you answer! Yes, i use ZFS. Can I fix it somehow? And is it nesesary?
 

Attachments

  • Безымянный.png
    Безымянный.png
    215.9 KB · Views: 4
It is cache. So if you don't need the RAM, using it to cache read operations is a good use of that RAM. Reading from RAM is a LOT quicker than reading data from disk. If you have or set up some external performance monitoring you can also monitor the size and the hit rate of the ARC.

On my personal servers I get a hit ratio of over 99% during normal operations. It drops during backups or when installing software/updates in my VMs.

The first time you ran ARC (in the screenshot) you can see that 77 read operations were done and only 1 was missed and needed access to the disk.

By default, ZFS will use up to 50% of the installed RAM (if needed and available). It will release RAM if other processes need it. If you run into problems because ZFS is not releasing the RAM fast enough, you can limit the ARC size. But don't make it too small as it will reduce the read performance if the data must be read from disk instead of RAM.
 
  • Like
Reactions: 2Colors

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!