mountstats: Add option to pretty-print xprt statistics
Subsystems (2)
RFC PATCH 1/1 mountstats: Add option to pretty-print xprt statistics
Add "-x" option to display the statistics reported on the "xprt:" line in mountstats. This is not terribly interesting for UDP and TCP, but it can be for RDMA transports.
Signed-off-by Chuck Lever <[email protected]>
---
This has seen a little testing, but probably needs more. My Python chops are rusty, so go easy on me.
tools/mountstats/mountstats.man | 5 ++ tools/mountstats/mountstats.py | 89 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 89 insertions(+), 5 deletions(-) mode change 100644 => 100755 tools/mountstats/mountstats.py
tools/mountstats/mountstats.man +5 -0
@@ -19,6 +19,8 @@ mountstats \- Displays various NFS client per-mount statistics .RB [ \-r | \-\-rpc ] | .RB [ \-R | \-\-raw ] +| +.RB [ \-x | \-\-xprt ] ] .RI [ mountpoint ] ... .P
@@ -110,6 +112,9 @@ Display only the raw statistics. This is intended for use with the and .BR \-S | \-\-since options. +.TP +.B \-x, \-\-xprt +Display only the transport statistics .SS Options specific to the iostat sub-command .IP "\fIinterval\fP" Specifies the amount of time in seconds between each report. The first report contains statistics for the time since each file system was mounted. Each subsequent report contains statistics collected during the interval since the previous report. This may not be used with the
tools/mountstats/mountstats.py +84 -5
136 lines not on this page · raw message