* [RFC PATCH 0/3] Introduce two new mount stats commands
@ 2010-04-16 15:10 Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 1/3] Introduce man page for the mountstats command Steve Dickson
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Steve Dickson @ 2010-04-16 15:10 UTC (permalink / raw)
To: linux-nfs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [RFC PATCH 1/3] Introduce man page for the mountstats command
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
@ 2010-04-16 15:10 ` Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 2/3] Introduce man page for the nfsiostats command Steve Dickson
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Steve Dickson @ 2010-04-16 15:10 UTC (permalink / raw)
To: linux-nfs
Signed-off-by: Steve Dickson <steved@redhat.com>
---
tools/mountstats/mountstats.man | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
create mode 100644 tools/mountstats/mountstats.man
diff --git a/tools/mountstats/mountstats.man b/tools/mountstats/mountstats.man
new file mode 100644
index 0000000..0de31b7
--- /dev/null
+++ b/tools/mountstats/mountstats.man
@@ -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 <chuck.lever@oracle.com>
--
1.6.6.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [RFC PATCH 2/3] Introduce man page for the nfsiostats command
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 1/3] Introduce man page for the mountstats command Steve Dickson
@ 2010-04-16 15:10 ` Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 3/3] Add autoconf support for mountstats and nfsiostats Steve Dickson
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Steve Dickson @ 2010-04-16 15:10 UTC (permalink / raw)
To: linux-nfs
Signed-off-by: Steve Dickson <steved@redhat.com>
---
tools/nfs-iostat/nfsiostat.man | 70 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
create mode 100644 tools/nfs-iostat/nfsiostat.man
diff --git a/tools/nfs-iostat/nfsiostat.man b/tools/nfs-iostat/nfsiostat.man
new file mode 100644
index 0000000..7b1e0a8
--- /dev/null
+++ b/tools/nfs-iostat/nfsiostat.man
@@ -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 <chuck.lever@oracle.com>
--
1.6.6.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [RFC PATCH 3/3] Add autoconf support for mountstats and nfsiostats
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 1/3] Introduce man page for the mountstats command Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 2/3] Introduce man page for the nfsiostats command Steve Dickson
@ 2010-04-16 15:10 ` Steve Dickson
2010-04-16 16:19 ` [RFC PATCH 0/3] Introduce two new mount stats commands Chuck Lever
2010-04-16 17:54 ` Steve Dickson
4 siblings, 0 replies; 6+ messages in thread
From: Steve Dickson @ 2010-04-16 15:10 UTC (permalink / raw)
To: linux-nfs
Signed-off-by: Steve Dickson <steved@redhat.com>
---
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
diff --git a/configure.ac b/configure.ac
index 518b6d8..d90a88f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/tools/Makefile.am b/tools/Makefile.am
index db15346..f2ce282 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -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
diff --git a/tools/mountstats/Makefile.am b/tools/mountstats/Makefile.am
new file mode 100644
index 0000000..ca617a2
--- /dev/null
+++ b/tools/mountstats/Makefile.am
@@ -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
diff --git a/tools/nfs-iostat/Makefile.am b/tools/nfs-iostat/Makefile.am
new file mode 100644
index 0000000..30f4054
--- /dev/null
+++ b/tools/nfs-iostat/Makefile.am
@@ -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
--
1.6.6.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RFC PATCH 0/3] Introduce two new mount stats commands
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
` (2 preceding siblings ...)
2010-04-16 15:10 ` [RFC PATCH 3/3] Add autoconf support for mountstats and nfsiostats Steve Dickson
@ 2010-04-16 16:19 ` Chuck Lever
2010-04-16 17:54 ` Steve Dickson
4 siblings, 0 replies; 6+ messages in thread
From: Chuck Lever @ 2010-04-16 16:19 UTC (permalink / raw)
To: Steve Dickson; +Cc: linux-nfs
This looks like a good starting point. Thanks.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
On 04/16/2010 11:10 AM, Steve Dickson wrote:
> 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
--
chuck[dot]lever[at]oracle[dot]com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC PATCH 0/3] Introduce two new mount stats commands
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
` (3 preceding siblings ...)
2010-04-16 16:19 ` [RFC PATCH 0/3] Introduce two new mount stats commands Chuck Lever
@ 2010-04-16 17:54 ` Steve Dickson
4 siblings, 0 replies; 6+ messages in thread
From: Steve Dickson @ 2010-04-16 17:54 UTC (permalink / raw)
To: linux-nfs
On 04/16/2010 11:10 AM, Steve Dickson wrote:
> 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
Committed and pushed...
steved.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-16 17:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 15:10 [RFC PATCH 0/3] Introduce two new mount stats commands Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 1/3] Introduce man page for the mountstats command Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 2/3] Introduce man page for the nfsiostats command Steve Dickson
2010-04-16 15:10 ` [RFC PATCH 3/3] Add autoconf support for mountstats and nfsiostats Steve Dickson
2010-04-16 16:19 ` [RFC PATCH 0/3] Introduce two new mount stats commands Chuck Lever
2010-04-16 17:54 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox