Skip to contentSkip to conversation

mountstats: add pNFS READs and WRITEs

PATCH In review Scott Mayhew 2 participants 2 messages Sep 22, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mountstats: add pNFS READs and WRITEs

These counters are already in /proc/self/mountstats but the mountstats program doesn't display them.

---
 tools/mountstats/mountstats.py | 2 ++
 1 file changed, 2 insertions(+)
tools/mountstats/mountstats.py +2 -0
index 4ca4bc4..88ccdae 100644
@@ -412,6 +412,8 @@ class DeviceData:
         print('  short reads: %d  short writes: %d' % \
             (self.__nfs_data['shortreads'], self.__nfs_data['shortwrites']))
         print('  NFSERR_DELAYs from server: %d' % self.__nfs_data['delay'])
+        print('  pNFS READs: %d' % self.__nfs_data['pnfsreads'])
+        print('  pNFS WRITEs: %d' % self.__nfs_data['pnfswrites'])
 
     def display_nfs_bytes(self):
         """Pretty-print the NFS event counters
Signature · 1 line
2.4.11
#1 lore raw
Quoted 4 lines · Scott Mayhew

These counters are already in /proc/self/mountstats but the mountstats program doesn't display them.

Committed.... Thanks!

steved.

Quoted 18 lines
---
 tools/mountstats/mountstats.py | 2 ++
 1 file changed, 2 insertions(+)
tools/mountstats/mountstats.py +2 -0
index 4ca4bc4..88ccdae 100644
@@ -412,6 +412,8 @@ class DeviceData:
         print('  short reads: %d  short writes: %d' % \
             (self.__nfs_data['shortreads'], self.__nfs_data['shortwrites']))
         print('  NFSERR_DELAYs from server: %d' % self.__nfs_data['delay'])
+        print('  pNFS READs: %d' % self.__nfs_data['pnfsreads'])
+        print('  pNFS WRITEs: %d' % self.__nfs_data['pnfswrites'])
 
     def display_nfs_bytes(self):
         """Pretty-print the NFS event counters