ZFS memory usage is MUCH higher than zfs_arc_max
Posted: Fri Oct 16, 2020 12:06 pm
Hello! Before I go any further, I'd like to note that I'm using OS X 10.9, and so I'm on version 1.9.2 of OpenZFS on OS X. If this means I can't get help here, I totally understand, but I figured I'd still ask!
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:
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:
I get
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?
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?