Page 1 of 1

The wired memory consumption control is not working for 2.0?

PostPosted: Sat Jul 03, 2021 7:05 pm
by stevegy
The information on this Wiki page https://openzfsonosx.org/wiki/Performance may need to improve. I have installed the 2.0 on MacOS 11.4. But seems the /etc/zfs/zsysctl.conf is not an OOB configuration file. It is missing after the installation. I tried to follow this wiki page to reduce the memory consumption but failed. I wonder what the correct kstat parameters for the 2.0 release.
You can see the memory usage is now about 5G. I guess for a PC level ZFS 1G memory for ARC and cache is more reasonable.
And you can see from the screen shot there is something wrong of the arc_stat tool OOB.

Re: The wired memory consumption control is not working for

PostPosted: Sun Jul 04, 2021 3:36 am
by lundman
You can run "sysctl ktat" to list all the kstats there are, or indeed, "sysctl kstat | grep tunable" to see those you can change. There has been some
name updates so the wiki should probably be updated.

Re: The wired memory consumption control is not working for

PostPosted: Mon Jul 05, 2021 4:50 am
by stevegy
Thank you. But there are too many "tunable" items... I really cannot guess which one is the correct item. Any hints? :lol:

Re: The wired memory consumption control is not working for

PostPosted: Wed Jul 07, 2021 11:32 pm
by lundman
OH and the memory ones are all under spl, so check those as well. :) We have very similar kstat/kmem to Solaris/illumos, so if you find guides on those, they might give insight