Hide Forgot
Description of problem: The counters have been present in /proc/self/mountstats for a while. They're the last 2 counters on the 'events' line. We might as well display them in the mountstats output. Version-Release number of selected component (if applicable): nfs-utils-1.3.0-0.21.el7_2.1 How reproducible: easy Steps to Reproduce: 1. mount a pNFS-capable export 2. do some I/O 3. run 'mountstats --nfs <mountpoint>' Expected results: pNFS read and write counts should be included in the output
Created attachment 1202902 [details] patch
[root@tonberry ~]# mountstats --nfs /mnt/t Stats for netapp-gss2.lab.bos.redhat.com:/ mounted on /mnt/t: NFS mount options: rw,vers=4.1,rsize=65536,wsize=65536,namlen=255,acregmin=3,acregmax=60,acdirmin=30,acdirmax=60,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.13.145.110,local_lock=none NFS server capabilities: caps=0x3ffd7,wtmult=512,dtsize=32768,bsize=0,namlen=255 NFSv4 capability flags: bm0=0xfafe8fff,bm1=0x60fdfffe,bm2=0x817,acl=0x0,sessions,pnfs=LAYOUT_NFSV4_1_FILES NFS security flavor: 1 pseudoflavor: 0 Cache events: data cache invalidated 2 times attribute cache invalidated 2 times VFS calls: VFS requested 8 inode revalidations VFS requested 51 dentry revalidations VFS called nfs_readdir() 6 times VFS called nfs_lookup() 3 times VFS called nfs_permission() 64 times VFS called nfs_file_open() 3 times VFS called nfs_file_flush() 3 times VFS called nfs_lock() 0 times VFS called nfs_fsync() 2 times VFS called nfs_file_release() 2 times VM calls: VFS called nfs_readpage() 1 times VFS called nfs_readpages() 56 times VFS called nfs_writepage() 0 times VFS called nfs_writepages() 4 times Generic NFS counters: File size changing operations: truncating SETATTRs: 0 extending WRITEs: 25600 0 silly renames short reads: 0 short writes: 0 NFSERR_DELAYs from server: 0 pNFS READs: 1600 pNFS WRITEs: 1600 NFS byte counts: applications read 104857600 bytes via read(2) applications wrote 104857600 bytes via write(2) applications read 0 bytes via O_DIRECT read(2) applications wrote 0 bytes via O_DIRECT write(2) client read 104857600 bytes via NFS READ client wrote 104857600 bytes via NFS WRITE
The upstream commit: commit 3e2ab78a2cfbc2d11c31ced8d3f538d5aae757f1 Author: Scott Mayhew <smayhew> Date: Thu Sep 22 13:33:33 2016 -0400 mountstats: add pNFS READs and WRITEs These counters are already in /proc/self/mountstats but the mountstats program doesn't display them. Signed-off-by: Scott Mayhew <smayhew> Signed-off-by: Steve Dickson <steved> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1377740
Moving to VERIFIED according to test logs in Comment #6.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2233