nfs-ganesha / nfs-ganesha

NFS-Ganesha is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems
1.46k stars 508 forks source link

ganesha_stats missing option to display v4.1 and v4.2 stats #383

Open bstillwell opened 5 years ago

bstillwell commented 5 years ago

There are option to display statistics for NFSv3 (ganesha_stats iov3) and NFSv4.0 (ganesha_stats iov4), but I'm not seeing a way to display the statistics for NFSv4.1 or NFSv4.2. Could these be added?

dang commented 5 years ago

The v4 stats cover v4.x. There aren't separate stats for 4.1 or 4.2.

bstillwell commented 5 years ago

That doesn't seem to be the case:

# ganesha_stats iov4

EXPORT 0: Export does not have any NFSv4.0 activity

EXPORT 100: Export does not have any NFSv4.0 activity

However, if I modify the v4io_stats function in glib_dbus_stats.py to use GetNFSv41IO instead of GetNFSv40IO, I get:

# ganesha_stats iov4
EXPORT 0:
        requested   transferred      total      errors     latency  queue wait
READv4:            0           0           0           0           0           0
WRITEv4:           0           0           0           0           0           0

EXPORT 100:
        requested   transferred      total      errors     latency  queue wait
READv4:     88684438052 88684438052  2266539           0    10563593123214  1986449369894259179
WRITEv4:    2050042801241   2050042801241   17058766           0    119910477099293 15297679302750646476
ffilz commented 4 years ago

This might deserve more examination (and by commenting I get it out of the LRU end of the issue list...).