Can't seem to be able to limit ZFS RAM usage (ARC)

Ovidiu

Renowned Member
Apr 27, 2014
324
12
83
Freshly installed Proxmox 4.2 with a 2 HD mirror using ZFS for root

I'm following this instruction: https://pve.proxmox.com/wiki/Storage:_ZFS#Limit_ZFS_memory_usage

edited: /etc/modprobe.d/zfs.conf
inserted: options zfs zfs_arc_max=8589934592
ran: update-initramfs -u
rebooted

Code:
arcstat.py
    time  read  miss  miss%  dmis  dm%  pmis  pm%  mmis  mm%  arcsz     c
11:07:46     0     0      0     0    0     0    0     0    0   120M   15G

Code:
ARC Size:                               0.75%   120.60  MiB
        Target Size: (Adaptive)         100.00% 15.70   GiB
        Min Size (Hard Limit):          0.20%   32.00   MiB
        Max Size (High Water):          502:1   15.70   GiB


having 32Gb of RAm and arc still uses 15GB so my settings are being ignored.
 
editing: /sys/module/zfs/parameters/zfs_arc_max and inserting 8589934592 has done the trick.
is this a viable solution?
is the wiki outdated?
 

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!