Introduce two new mount stats commands
Subsystems (2)
cover Introduce two new mount stats commands
These patches install the mountstats and nfsiostat commands as well as creates and installed their man pages.
Steve Dickson (3):
Introduce man page for the mountstats command Introduce man page for the nfsiostats command Add autoconf support for mountstats and nfsiostats
configure.ac | 2 + tools/Makefile.am | 2 +- tools/mountstats/Makefile.am | 13 +++++++ tools/mountstats/mountstats.man | 32 ++++++++++++++++++ tools/nfs-iostat/Makefile.am | 13 +++++++ tools/nfs-iostat/nfsiostat.man | 70 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 131 insertions(+), 1 deletions(-) create mode 100644 tools/mountstats/Makefile.am create mode 100644 tools/mountstats/mountstats.man create mode 100644 tools/nfs-iostat/Makefile.am create mode 100644 tools/nfs-iostat/nfsiostat.man
RFC PATCH 1/3 Introduce man page for the mountstats command
--- tools/mountstats/mountstats.man | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 tools/mountstats/mountstats.man
tools/mountstats/mountstats.man new file +32 -0
@@ -0,0 +1,32 @@ +.\" +.\" mountstats(8) +.\" +.TH mountstats 8 "15 Apr 2010" +.SH NAME +mountstats \- Displays NFS client per-mount statistics +.SH SYNOPSIS +.BI "mountstats ["<options> "] " <mount_point> " [ " <mount_point> "]" +.SH DESCRIPTION +The +.B mountstats +command displays NFS client statisitics on each given +.I <mount_point> +.SH OPTIONS +.TP +.B " \-\-nfs +display only the NFS statistics +.TP +.B " \-\-rpc +display only the RPC statistics +.TP +.B " \-\-version +display the version of this command +.SH FILES +.TP +.B /proc/self/mountstats +.SH SEE ALSO +.BR iostat (8), +.BR nfsiostat (8), +.BR nfsstat(8) +.SH AUTHOR +Chuck Lever <[email protected]>
Signature · 1 line
1.6.6.1
RFC PATCH 2/3 Introduce man page for the nfsiostats command
In reply to Steve Dickson--- tools/nfs-iostat/nfsiostat.man | 70 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) create mode 100644 tools/nfs-iostat/nfsiostat.man
tools/nfs-iostat/nfsiostat.man new file +70 -0
@@ -0,0 +1,70 @@ +.\" +.\" nfsiostat(8) +.\" +.TH nfsiostat 8 "15 Apr 2010" +.SH NAME +nfsiostat \- Emulate iostat for NFS mount points using /proc/self/mountstats +.SH SYNOPSIS +.BI "nfsiostat [[" <interval> "] [" <count> "]] [" <options> "]["<mount_point> "] +.SH DESCRIPTION +The +.B nfsiostat +command displays NFS client per-mount statisitics. +.TP +<interval> +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. +.TP +<count> +If the +.I <count> +parameter is +specified, the value of +.I <count> +determines the number of reports generated at +. <interval> +seconds apart. if the interval parameter is +specified without the +.I <count> +parameter, the command generates reports continuously. +.TP +<options> +Define below +.TP +<mount_point> +If one or more +.I <mount point> +names are specified, statistics for only these mount points will +be displayed. Otherwise, all NFS mount points on the client are listed. +.SH OPTIONS +.TP +.B \-a " or " \-\-attr +displays statistics related to the attribute cache +.TP +.B \-d " or " \-\-dir +displays statistics related to directory operations +.TP +.B \-h " or " \-\-help +shows help message and exit +.TP +.B \-l LIST or " \-\-list=LIST +only print stats for first LIST mount points +.TP +.B \-p " or " \-\-page +displays statistics related to the page cache +.TP +.B \-s " or " \-\-sort +Sort NFS mount points by ops/second +.B \-\-version +show program's version number and exit +.SH FILES +.TP +.B /proc/self/mountstats +.SH SEE ALSO +.BR iostat (8), +.BR mountstats (8), +.BR nfsstat(8) +.SH AUTHOR +Chuck Lever <[email protected]>
Signature · 1 line
1.6.6.1
RFC PATCH 3/3 Add autoconf support for mountstats and nfsiostats
In reply to Steve Dickson--- configure.ac | 2 ++ tools/Makefile.am | 2 +- tools/mountstats/Makefile.am | 13 +++++++++++++ tools/nfs-iostat/Makefile.am | 13 +++++++++++++ 4 files changed, 29 insertions(+), 1 deletions(-) create mode 100644 tools/mountstats/Makefile.am create mode 100644 tools/nfs-iostat/Makefile.am
configure.ac +2 -0
@@ -425,6 +425,8 @@ AC_CONFIG_FILES([ tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile + tools/mountstats/Makefile + tools/nfs-iostat/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile
tools/Makefile.am +1 -1
@@ -6,6 +6,6 @@ if CONFIG_RPCGEN OPTDIRS += rpcgen endif -SUBDIRS = locktest rpcdebug nlmtest $(OPTDIRS) +SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in
tools/mountstats/Makefile.am new file +13 -0
@@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in +PYTHON_FILES = mountstats.py + +man8_MANS = mountstats.man + +EXTRA_DIST = $(man8_MANS) $(PYTHON_FILES) + +all-local: $(PYTHON_FILES) + +install-data-hook: + $(INSTALL) --mode 755 mountstats.py $(DESTDIR)$(sbindir)/mountstats + +MAINTAINERCLEANFILES=Makefile.in
tools/nfs-iostat/Makefile.am new file +13 -0
@@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in +PYTHON_FILES = nfs-iostat.py + +man8_MANS = nfsiostat.man + +EXTRA_DIST = $(man8_MANS) $(PYTHON_FILES) + +all-local: $(PYTHON_FILES) + +install-data-hook: + $(INSTALL) --mode 755 nfs-iostat.py $(DESTDIR)$(sbindir)/nfsiostat + +MAINTAINERCLEANFILES=Makefile.in
Signature · 1 line
1.6.6.1
This looks like a good starting point. Thanks.
Quoted 19 lines · Steve Dickson
These patches install the mountstats and nfsiostat commands as well as creates and installed their man pages.
Steve Dickson (3):
Introduce man page for the mountstats command Introduce man page for the nfsiostats command Add autoconf support for mountstats and nfsiostatsconfigure.ac | 2 + tools/Makefile.am | 2 +- tools/mountstats/Makefile.am | 13 +++++++ tools/mountstats/mountstats.man | 32 ++++++++++++++++++ tools/nfs-iostat/Makefile.am | 13 +++++++ tools/nfs-iostat/nfsiostat.man | 70 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 131 insertions(+), 1 deletions(-)create mode 100644
tools/mountstats/Makefile.amcreate mode 100644tools/mountstats/mountstats.mancreate mode 100644tools/nfs-iostat/Makefile.amcreate mode 100644tools/nfs-iostat/nfsiostat.man
Signature · 1 line
chuck[dot]lever[at]oracle[dot]com
Quoted 8 lines · Steve Dickson
These patches install the mountstats and nfsiostat commands as well as creates and installed their man pages.
Steve Dickson (3):
Introduce man page for the mountstats command Introduce man page for the nfsiostats command Add autoconf support for mountstats and nfsiostats
Quoted 11 lines
configure.ac | 2 + tools/Makefile.am | 2 +- tools/mountstats/Makefile.am | 13 +++++++ tools/mountstats/mountstats.man | 32 ++++++++++++++++++ tools/nfs-iostat/Makefile.am | 13 +++++++ tools/nfs-iostat/nfsiostat.man | 70 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 131 insertions(+), 1 deletions(-) create mode 100644 tools/mountstats/Makefile.am create mode 100644 tools/mountstats/mountstats.man create mode 100644 tools/nfs-iostat/Makefile.am create mode 100644 tools/nfs-iostat/nfsiostat.man
Committed and pushed...
steved.