My computer has 32 GB of memory, but for a variety of reasons, I'd like to limit ZFS to around 4 GB. So a few months ago, I created the file /etc/zfs/zsysctl.conf with the contents:
- Code: Select all
kstat.zfs.darwin.tunable.zfs_arc_max=4294967296
as per the instructions in the wiki.
Unfortunately, I regularly see ZFS using ~ 16 GB of memory. For instance, as of when I'm writing this, if I run in the Terminal:
- Code: Select all
sysctl kstat.spl.misc.spl_misc.os_mem_alloc
I get
- Code: Select all
kstat.spl.misc.spl_misc.os_mem_alloc: 14750056448
That comes out to around 14 GB! I know actual usage can be somewhat greater than the limit, but that's way higher! Is the wiki outdated? Am I doing something stupid?