This single saint tuning /etc/modprobe.d/zfs.conf doesn't work in Proxmox-ve_6.1-2 with kernel 5.3.18-2-pve. For this issue resolving need to do kernel rollback\downgrading to kernel 5.0.15-1-pve.
It works here:
Code:
root@prod2:~# cat /sys/module/zfs/parameters/zfs_arc_max
0
root@prod2:~# uname -a
Linux prod2 5.3.18-3-pve #1 SMP PVE 5.3.18-3 (Tue, 17 Mar 2020 16:33:19 +0100) x86_64 GNU/Linux
root@prod2:~# grep c_max /proc/spl/kstat/zfs/arcstats
c_max 4 16780830720
root@prod2:~# echo 'options zfs zfs_arc_max=8589934592' > /etc/modprobe.d/zfs.conf
root@prod2:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.3.18-3-pve
Running hook script 'zz-pve-efiboot'..
Re-executing '/etc/kernel/postinst.d/zz-pve-efiboot' in new private mount namespace..
No /etc/kernel/pve-efiboot-uuids found, skipping ESP sync.
root@prod2:~# reboot
...
# ssh root@192.168.30.65
Linux prod2 5.3.18-3-pve #1 SMP PVE 5.3.18-3 (Tue, 17 Mar 2020 16:33:19 +0100) x86_64
[ --8< -- snip --8<-- ]
Last login: Thu Apr 9 18:08:38 2020 from 192.168.16.38
root@prod2:~# grep c_max /proc/spl/kstat/zfs/arcstats
c_max 4 8589934592
root@prod2:~# cat /sys/module/zfs/parameters/zfs_arc_max
8589934592
root@prod2:~#
As screenshots seem to be more proof worthy..:
Seems to work fine..
So please open a new thread and specify what you changed in your setup that makes it act like this, as it def. works on a default setup from our installer here, more than one re-checked, so if you really do not forgot a step then it has to be something out of the ordinary to not work.. You can use
cat /sys/module/zfs/parameters/zfs_arc_max
to check if the module parameter is actually in effect.