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

All your general support questions for OpenZFS on OS X.

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

Postby kocoman » Sun Mar 26, 2023 9:56 pm

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
kocoman
 
Posts: 3
Joined: Mon Sep 22, 2014 11:20 pm

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

Postby lundman » Mon Mar 27, 2023 12:02 am

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?
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 33 guests