From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: "david m. richter" <richterd@citi.umich.edu>
Cc: Peter Staubach <staubach@redhat.com>, Neil Brown <neilb@suse.de>,
Alex Soule <soule@umich.edu>,
"J. Bruce Fields" <bfields@fieldses.org>,
Andrew Richardson <chardson@umich.edu>,
nfs@lists.sourceforge.net
Subject: Re: [PATCH 0/7] nfsstat: adding -D/--diff-stat to nfsstat
Date: Wed, 01 Aug 2007 14:02:31 -0400 [thread overview]
Message-ID: <1185991351.6700.203.camel@localhost> (raw)
In-Reply-To: <Pine.BSO.4.64.0708011347200.25204@citi.umich.edu>
On Wed, 2007-08-01 at 13:48 -0400, david m. richter wrote:
> On Wed, 1 Aug 2007, Trond Myklebust wrote:
>
> > On Wed, 2007-08-01 at 13:35 -0400, david m. richter wrote:
> > > > Can I make one more attempt to interest someone in implementing the
> > > > --since=baseline-file approach? It'd be fun, and would make some more
> > > > flexible use cases very simple. You could still get a time interval:
> > > >
> > > > nfsstat >tmp
> > > > sleep 30
> > > > nfsstat --since=tmp
> > > >
> > > > or you could do other stuff:
> > > >
> > > > nfsstat >tmp
> > > > run-my-weird-test-case-here
> > > > nfsstat --since=tmp
> >
> > Exactly. Being able to zero out the stats is way more flexible than the
> > -D stuff...
>
> perhaps i don't follow: how is zeroing the stats address the same
> use-case as --diff-stat/--sleep? one can already zero the stats by
> unmounting, e.g., but that's a pain. ? i'm missing something.
You can emulate the --sleep stuff using a simple script:
while true
do
nfsstat >tmp
sleep 30
nfsstat --since=tmp
done
Actually, you can do better if you also introduce an '--input' command
which causes nfsstat to read from a file instead of reading
from /proc/net/rpc/nfs and /proc/net/rpc/nfsd. That could be used to
eliminate a race in the above using something like the following script
to return client diff output.
cat /proc/sys/rpc/nfs >prev
while true
sleep 30
cat /proc/sys/rpc/nfs >new
nfsstat -c --since=prev --input=new
mv new prev
done
Unfortunately the client and server raw formats differ, so you probably
need to require the user to specify '-c' and '-s' in order to tell
nfsstat what kind of file you are giving it.
Trond
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-08-01 18:02 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 21:38 [PATCH 0/7] nfsstat: adding -D/--diff-stat to nfsstat david m. richter
2007-07-31 22:11 ` Neil Brown
2007-07-31 23:29 ` david m. richter
2007-07-31 23:41 ` J. Bruce Fields
2007-08-01 0:42 ` Neil Brown
2007-08-01 11:55 ` Peter Staubach
2007-08-01 15:59 ` david m. richter
2007-08-01 16:49 ` Trond Myklebust
2007-08-01 17:07 ` J. Bruce Fields
2007-08-01 17:42 ` david m. richter
2007-08-01 16:50 ` J. Bruce Fields
2007-08-01 17:35 ` david m. richter
2007-08-01 17:41 ` J. Bruce Fields
2007-08-01 17:45 ` david m. richter
2007-08-01 17:46 ` Trond Myklebust
2007-08-01 17:48 ` david m. richter
2007-08-01 18:02 ` Trond Myklebust [this message]
2007-08-01 18:12 ` david m. richter
2007-08-01 18:15 ` Muntz, Daniel
2007-08-01 18:37 ` david m. richter
2007-08-01 18:41 ` Trond Myklebust
2007-08-01 18:47 ` david m. richter
2007-08-01 18:50 ` J. Bruce Fields
2007-08-01 20:03 ` Steve Dickson
2007-08-01 20:48 ` J. Bruce Fields
2007-08-01 21:50 ` Steve Dickson
2007-08-01 22:40 ` Trond Myklebust
2007-08-01 18:38 ` J. Bruce Fields
2007-08-01 17:52 ` J. Bruce Fields
2007-08-01 17:55 ` Peter Staubach
2007-08-01 18:14 ` david m. richter
2007-08-01 18:22 ` Peter Staubach
2007-08-01 18:25 ` david m. richter
2007-08-01 18:57 ` J. Bruce Fields
2007-08-01 19:35 ` Chuck Lever
2007-08-01 20:16 ` Steve Dickson
2007-08-01 20:54 ` Chuck Lever
2007-08-01 19:42 ` Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1185991351.6700.203.camel@localhost \
--to=trond.myklebust@fys.uio.no \
--cc=bfields@fieldses.org \
--cc=chardson@umich.edu \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
--cc=richterd@citi.umich.edu \
--cc=soule@umich.edu \
--cc=staubach@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.