How much ram for ZFS and PVE?

Alessandro 123

Well-Known Member
May 22, 2016
653
24
58
40
Our new host has 128GB RAM.
Currently, all of our VMs are stored on XenServer hosts with max 64GB RAM.
This new server has twice the amount.

How much RAM should I set for ZFS ? 16GB ? And what about PVE ? Is 16GB enough ?

Doing this allow me to keep 96GB free for VMs

Silly question: if I add a Gluster storage, is PVE able to cache the VM disk in RAM lowering the network overhead caused by the network filesystem ? If yes, probably, keeping 32GB available for PVE would be better.
 
Hi,

PVE about 1GB
ZFS base about 4GB and 1GB for each TB used disc space.
this is without dedup or L2ARC
 
What I did is I gave ZFS as much RAM as I could while my PVE is guaranteed NOT to use swap at all (even if all VMs are running and using all vRAM they have). In my case it is 10GB (out of 64GB), while my storage-size is ~1TB (SSD-only)...
 
VMs are not an issue, out current max use of RAM by the VMs are less than 64GB, thus the other 64GB are for ZFS and PVE
 
Then give at least ~30GB to zfs. When you have that much RAM, use it. And any using of RAM is better than not using it at all. You could also give more to VMs, i.e. for /tmp in tmpfs (ram-disk)...
 
No all VMs are stored on local ZFS. Most of them are stored in gluster, that's why I'm asking if PVE (or, better, linux) is able to locally cache mostly used blocks from a network FS.
 
Posted docs talks about optimizing the gluster node.
i'm talking about optimizing the PVE node. My gluster servers are located externally to the PVE.

PVE is only used as hypervisors. I'm not running gluster on the same PVE server
 
PVE doesn't use fuse but direct access to gluster via libgfapi integrated in qemu

So, what can I tune on client side to limit the network usage?

I don't know if Linux is able to locally cache a remote filesystem. In case of NFS, it should be able to store the most accessed files locally in RAM, but what about gluster?
We don't have any file access, only blocks

Probably, I have to cache most accessed files inside each VM by adding RAM as much as possible. RAM is from the PVE node. The VM load a file and store in on RAM, this is already an optimization as further requests to that file doesn't need to go through the network.
 

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!