dagwieers/dstat — Issue #10: nfs3 plugin is incorrect
Author: eccles
Created: 2012-01-10 10:28:07+00:00
State: open

The nfs3 plugin calculates a 'readdir' statistic which is the sum of fields 17 and 18 in /proc/net/rpc/nfs. However comparing the contents of this file with the output of the 'nfsstat' command shows that 'readdir' should be fields 18+19. Also the 'filesystem value should be fields 20+21+22 (not 19+20+21) and the 'commit'' value should be field 23 and not 22

# cat /proc/net/rpc/nfs
net 0 0 0 0
rpc 3753467 0 0
proc2 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc3 22 0 1602112 28201 101419 220208 27 493468 1108826 84987 4140 4 0 62226 1112 2682 6 0 2003 41991 52 0 0
proc4 36 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[root@e102138-lin filesystems]# cat /proc/net/rpc/nfs;nfsstat -c -3
net 0 0 0 0
rpc 3753827 0 0
proc2 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc3 22 0 1602333 28201 101451 220238 27 493468 1108848 85009 4140 4 0 62248 1112 2682 6 0 2003 42002 52 0 0
proc4 36 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Client rpc stats:
calls retrans authrefrsh
3753827 0 0

Client nfs v3:
null getattr setattr lookup access readlink
0 0% 1602333 42% 28201 0% 101451 2% 220238 5% 27 0%
read write create mkdir symlink mknod
493468 13% 1108848 29% 85009 2% 4140 0% 4 0% 0 0%
remove rmdir rename link readdir readdirplus
62248 1% 1112 0% 2682 0% 6 0% 0 0% 2003 0%
fsstat fsinfo pathconf commit
42002 1% 52 0% 0 0% 0 0%

#