Page 1 of 1

why these 2 commands not work, and how to check ram usage of

PostPosted: Sun Mar 26, 2023 9:56 pm
by kocoman
why these 2 commands not work, and how to check ram usage of zfs in osx thx

cat: /proc/spl/kstat/zfs/arcstats: No such file or directory

arc_summary
Error in sys.excepthook:

and how to check ram usage of zfs in osx

cat /proc/spl/kstat/zfs/arcstats
cat: /proc/spl/kstat/zfs/arcstats: No such file or directory


arc_summary
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/local/zfs/bin/arc_summary", line 978, in <module>
main()
File "/usr/local/zfs/bin/arc_summary", line 929, in main
kstats = get_kstats()
File "/usr/local/zfs/bin/arc_summary", line 423, in get_kstats
result[section] = load_kstats(section)
NameError: name 'load_kstats' is not defined

Original exception was:
Traceback (most recent call last):
File "/usr/local/zfs/bin/arc_summary", line 978, in <module>
main()
File "/usr/local/zfs/bin/arc_summary", line 929, in main
kstats = get_kstats()
File "/usr/local/zfs/bin/arc_summary", line 423, in get_kstats
result[section] = load_kstats(section)
NameError: name 'load_kstats' is not defined

Re: why these 2 commands not work, and how to check ram usag

PostPosted: Mon Mar 27, 2023 12:02 am
by lundman
Code: Select all
cat: /proc/spl/kstat/zfs/arcstats: No such file or directory


anything /proc, is generally that of Linux. It is how that OS grabs values out of the kernel to regular useland usage.

macOS way tend to be sysctl. To see everything your system has, just run "sysctl -a". But it is rather a lot, you can
limit it a bit by just showing ZFS's kstat values, ie "sysctl kstat" which would include arcstats.

We used to ship a version of the cmdline tool arcstat, that uses sysctl, maybe that got lost in the new port?