From: "david m. richter" Subject: Re: [PATCH 0/7] nfsstat: adding -D/--diff-stat to nfsstat Date: Wed, 1 Aug 2007 11:59:45 -0400 (EDT) Message-ID: References: <46B074A2.4010909@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Neil Brown , Andrew Richardson , nfs@lists.sourceforge.net, Alex Soule To: Peter Staubach Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1IGGbv-0004Dh-Od for nfs@lists.sourceforge.net; Wed, 01 Aug 2007 08:59:43 -0700 Received: from citi.umich.edu ([141.211.133.111]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1IGGby-0002l0-If for nfs@lists.sourceforge.net; Wed, 01 Aug 2007 08:59:47 -0700 In-Reply-To: <46B074A2.4010909@redhat.com> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net > david m. richter wrote: > > Hello, Neil, > > > > This set of patches adds -D/--diff-stat to nfsstat. When this flag is > > used, instead of printing out the current total statistics and exiting, > > nfsstat takes a snapshot of the current statistics and pauses until the user > > types ^C, at which point a second snapshot is taken and only the difference > > between the two is printed; i.e., only the statistics gathered during the > > pause. > > Hi. > > Perhaps I am missing something, but is something that we really need > to complicate the nfsstat support with? Is this not easy enough to > do with already existing tools or some easily written support in sh > or perl or awk or name your favorite administrative scripting language? > > Thanx... > > ps hello, peter, yes. :) right now, there's no easy way to run a test and get stats for just that test, since the counters persist -- so you have to do things like run a test, unmount, remount, etc. this is a quick way to get stats collected over an arbitrary period. and it's not very complicated, really. i don't think a shell/perl/python/etc script would be anywhere as useful a substitute. and with neil's suggestion about adding an optional timeout to make it easier to use -in- scripts, i think we're on the right track with this approach. .. thoughts/ideas? thanks, d . ------------------------------------------------------------------------- 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