Proxmox uses a lot of RAM

nevz00

New Member
Dec 9, 2016
12
0
1
31
Hi, such a problem.
There are 3 VMs on 2 VM allocated 4 gb of RAM and 1 2 gb of RAM
This is 10 gb of RAM. Proxmox uses only 21.5 gb of RAM. Where else are 11.5 gb of RAM.
All in the screenshots.
 

Attachments

  • 1.jpg
    1.jpg
    138.2 KB · Views: 182
  • 2.jpg
    2.jpg
    146.1 KB · Views: 164
  • 3.jpg
    3.jpg
    144.7 KB · Views: 154
  • 4.jpg
    4.jpg
    174.7 KB · Views: 155
What you what to fix?
ZFS use a lot of Ram. You can tune it see.
https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks

But at lest ZFS need 4GB other way it will not work proper.
If you do not like to send Ram for this propose you have to change the File system.
 
Maybe just reinstall proxmox with another file system or How to limit the consumption of RAM?
 
Why do you want to limit the ram consumption? The best performance will you get will no free RAM, because everything you need is already in your main memory. "free" RAM is a concept from Windows, where the RAM is not actually free, but shown as free which suggests something good. Free RAM means you do not need it and therefore you payed to much. RAM needs to be used. You only have to watch out for swapping, which is indeed bad.

The answer to your question about "limit the consumption" (with respect to ZFS) was already given, please read the links already present here.
 
If we consider nevz00 configuration (10 GB RAM allocated / 21,5 GB RAM used by proxmox) does it means that he cannot create new VM if the host has 24 GB RAM ?
 
No he can create an new VM and also start it.
 
OK. How can we estimate the RAM it's still possible to allocate and what is the threshold it's dangerous to exceed ?
 
IIRC in default configuration ZFS can use up to half of your RAM (or am I mistaking it for tmpfs? not sure now). Anyway, ZFS is monitoring RAM usage, and if system needs more than is available (i.e. to start new VM) ZFS will release part of RAM being used by arc. That's the way every disk-cache works...

You can use zfs_arc_max to limit amount of memory zfs can use, but be careful. ZFS needs a lot of memory to work properly. I would not recommend to set less than 8GB for arc cache even on slightly loaded systems...
 

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!