arcstat command now working - issue with latest patch??

hepo

Active Member
Mar 27, 2021
102
15
38
44
I have access to 3 PBS servers and all of then create the same output. All 3 are vanilla installs with ZFS.
Pushed a bunch of patches today and I am getting nervous.
I was testing ZFS performance this morning and the command was definitely working!

Code:
root@pbs:~# arcstat
    time  read  miss  miss%  dmis  dm%  pmis  pm%  mmis  mm%  size     c  avail
Traceback (most recent call last):
  File "/usr/sbin/arcstat", line 554, in <module>
    main()
  File "/usr/sbin/arcstat", line 538, in main
    calculate()
  File "/usr/sbin/arcstat", line 485, in calculate
    v["el2mfu"] = d["evict_l2_eligible_mfu"] / sint
KeyError: 'evict_l2_eligible_mfu'
root@pbs:~# zfs --version
zfs-2.1.1-pve1
zfs-kmod-2.0.6-pve1
root@pbs:~#
 
Last edited:
Code:
root@pbs:~# arc_summary

------------------------------------------------------------------------
ZFS Subsystem Report                            Wed Nov 10 18:43:50 2021
Linux 5.11.22-7-pve                                           2.0.6-pve1
Machine: pbs (x86_64)                                         2.0.6-pve1

ARC status:                                                      HEALTHY
        Memory throttle count:                                         0

ARC size (current):                                     0.7 %  221.1 MiB
        Target size (adaptive):                         6.2 %    1.9 GiB
        Min size (hard limit):                          6.2 %    1.9 GiB
        Max size (high water):                           16:1   31.2 GiB
        Most Frequently Used (MFU) cache size:         27.0 %   55.6 MiB
        Most Recently Used (MRU) cache size:           73.0 %  150.0 MiB
        Metadata cache size (hard limit):              75.0 %   23.4 GiB
        Metadata cache size (current):                  0.4 %  101.6 MiB
        Dnode cache size (hard limit):                 10.0 %    2.3 GiB
        Dnode cache size (current):                     0.3 %    6.9 MiB

ARC hash breakdown:
        Elements max:                                               8.6k
        Elements current:                             100.0 %       8.6k
        Collisions:                                                    8
        Chain max:                                                     1
        Chains:                                                        3

ARC misc:
        Deleted:                                                     699
        Mutex misses:                                                  0
        Eviction skips:                                             1.1k
        Eviction skips due to L2 writes:                               0
        L2 cached evictions:                                     0 Bytes
        L2 eligible evictions:                                  10.1 MiB
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/sbin/arc_summary", line 986, in <module>
    main()
  File "/usr/sbin/arc_summary", line 980, in main
    section_calls[section](kstats)
  File "/usr/sbin/arc_summary", line 620, in section_arc
    f_perc(arc_stats['evict_l2_eligible_mfu'],
KeyError: 'evict_l2_eligible_mfu'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/arc_summary", line 986, in <module>
    main()
  File "/usr/sbin/arc_summary", line 980, in main
    section_calls[section](kstats)
  File "/usr/sbin/arc_summary", line 620, in section_arc
    f_perc(arc_stats['evict_l2_eligible_mfu'],
KeyError: 'evict_l2_eligible_mfu'
root@pbs:~#