citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

arcsize (151B)


      1 #!/usr/bin/env sh
      2 if [ ! -f /proc/spl/kstat/zfs/arcstats ]
      3 then
      4 	echo 0
      5 	exit 0
      6 fi
      7 cat /proc/spl/kstat/zfs/arcstats | grep -E ^size | awk '{print $3}'