RAM usage remain high even the vps are all's stopped

openaspace

Active Member
Sep 16, 2019
486
13
38
Italy
Helloooo :)

I have proxmox installation with zfs on 32gb ram i7 and raid 10 conf.

With vps on I have 60% ram usage, but when I power off all machines , the ram usage go down only to 50%...
And only if I reboot.. It return to normal usage.

Any advice?
 
Sorry, but a full RAM is normal, empty is the worst thing you can have. We discussed this a gazilion times already, please also read this.
Than you.
Is that using an hypervisor.. you are led to think that by turning off a virtual machine, the RAM becomes free ...
 
Than you.
Is that using an hypervisor.. you are led to think that by turning off a virtual machine, the RAM becomes free ...

Why should it be free? Have you read the page? Normally, your VMs use the host page cache and in case of ZFS its ARC, so even after tuning off your VM, the data already read is still in the RAM so that if you start your VM, everything will be blazing fast, because the data is already in the RAM and does not have to be read from roughly 1000000x times slower harddisk. Linux just shows the RAM as used, whereas Windows would show it as free.
 
Why should it be free? Have you read the page? Normally, your VMs use the host page cache and in case of ZFS its ARC, so even after tuning off your VM, the data already read is still in the RAM so that if you start your VM, everything will be blazing fast, because the data is already in the RAM and does not have to be read from roughly 1000000x times slower harddisk. Linux just shows the RAM as used, whereas Windows would show it as free.
Yes yes all clear :)
Is only that don't return a clear setup of the ram really available when I need to set new virtual machine or resize existing one
 
Yes yes all clear :)
Is only that don't return a clear setup of the ram really available when I need to set new virtual machine or resize existing one

ZFS has its dedicated ARC that is per default half the RAM so you can set your VMs at most half of the RAM for best performance. If you want to change the ratio (and get slower performance), you can adapt the maximum RAM used for ZFS and have more RAM available for machines. At the moment, you cannot reclaim the RAM used by ZFS when starting a VM (a real one, not a container).
 
ZFS has its dedicated ARC that is per default half the RAM so you can set your VMs at most half of the RAM for best performance. If you want to change the ratio (and get slower performance), you can adapt the maximum RAM used for ZFS and have more RAM available for machines. At the moment, you cannot reclaim the RAM used by ZFS when starting a VM (a real one, not a container).
oooK thank you.
sorry for my ignorance, but this mean that i will avoid to use more than the available host memory for VPS?
if yes... this reduce a lot the usable vps ram.. if the 50% is used by zfs..
 
sorry for my ignorance, but this mean that i will avoid to use more than the available host memory for VPS?
if yes... this reduce a lot the usable vps ram.. if the 50% is used by zfs..

Yes, that is the cross to bear. You can limit the amount with this, but your system will be slower then.
 

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!