From: "J. Bruce Fields" Subject: Re: [PATCH] NFS: Zeroing NFS and kNFSD stats Date: Tue, 13 Jul 2004 14:01:08 -0400 Sender: nfs-admin@lists.sourceforge.net Message-ID: <20040713180108.GF3023@fieldses.org> References: <40F3D483.8020507@RedHat.com> <20040713143044.GA3023@fieldses.org> <40F3FAD8.7090707@RedHat.com> <20040713151759.GC3023@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux NFS Mailing List Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1BkRaZ-0005j8-N1 for nfs@lists.sourceforge.net; Tue, 13 Jul 2004 11:01:11 -0700 Received: from dsl093-002-214.det1.dsl.speakeasy.net ([66.93.2.214] helo=pickle.fieldses.org) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1BkRaZ-000411-90 for nfs@lists.sourceforge.net; Tue, 13 Jul 2004 11:01:11 -0700 To: Steve Dickson In-Reply-To: <20040713151759.GC3023@fieldses.org> Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Tue, Jul 13, 2004 at 11:17:59AM -0400, J. Bruce Fields wrote: > On Tue, Jul 13, 2004 at 11:08:08AM -0400, Steve Dickson wrote: > > Starting up a test run, zeroing out the stats give you a very clear > > picture of what exactly is going on... > > But you could exactly the same thing by recording the values at the > beginning of the test run and then subtracting. In practice this is > likely to be annoying, so you'd want to write utilities that did this > for you, like say > > checkpoint_stats stats.txt > display_stats --since stats.txt > > That'd do what you want, right? The problem I have, by the way, is that zeroing is going to cause confusing problems whenever there are two simultaneous attempts to collect statistics. For example, imagine that your NFS server has a persistent performance-monitoring daemon that checks the statistics every now and then and emails the adminstrator a summary once a week. Then imagine that one day you have a problem with the server, so you log in and do a quick check of some statistics, zeroing them in the process. Now the daemon has no more hope of getting its numbers right. Murphy's law being what it is, you and the adminstrator that gets the summary email are probably different people, and by the time he/she gets the very odd-looking end-of-week report you've forgotten that you zeroed the statistics once. Head-scratching ensues. Writing a script to do the subtraction is just as simple and avoids any such problems. --b. ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs