Excessive memory consumption RAID1 ZFS

cr_eis

Member
Feb 3, 2021
20
3
8
50
I have a proxmox 6.4.9 installed in RAID1 ZFS with 40 GB of RAM. On this server 2 VMs are installed, one with 2 GB of RAM and the other with 16 GB of RAM.
Sometimes the VM with 16 GB of RAM is automatically stopped because too much memory is used.
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/qemu.slice/102.scope,task=kvm,pid=5311,uid=0

I must have a problem with the ZFS RAID settings. Can you tell me the correct ZFS settings.
Thanks
 
What's the output of arcstat? Could be that it doesn't release the memory fast enough.
ZFS by default uses up to 50% of available RAM as read cache.
 
Here is the result of arcstat

arcstat time read miss miss% dmis dm% pmis pm% mmis mm% size c avail 15:55:26 48 12 25 0 0 12 100 0 0 19G 19G 6.3G

How can i release the memory faster
 

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!