From owner-freebsd-current@FreeBSD.ORG Thu Oct 13 19:41:39 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2355D16A41F for ; Thu, 13 Oct 2005 19:41:39 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E43E43D46 for ; Thu, 13 Oct 2005 19:41:37 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j9DJfZXX088501; Thu, 13 Oct 2005 14:41:36 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <434EB85A.9030308@centtech.com> Date: Thu, 13 Oct 2005 14:41:14 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050914 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <9165.1129230812@critter.freebsd.dk> In-Reply-To: <9165.1129230812@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1131/Wed Oct 12 15:35:32 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: FreeBSD Current Subject: Re: ufsstat - testers / feedback wanted! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 19:41:39 -0000 Poul-Henning Kamp wrote: > In message <434E46C0.7060903@centtech.com>, Eric Anderson writes: > >>[resend to -current for broader test audience] >> >>I've just finished the first version of ufsstat, a tool to show local >>filesystem statistics much like nfsstat does for NFS. > > > I would far to prefer to see a generic method that would work > on all filesystems types, rather than a ufs specific tool. > > If you added counting code to the VOP_FOO() expansions, you should > be able to gather statistics for all filesystem types. > > The collection could be controlled by a mount option if the impact > is too big. That's an idea I thought of as well, but wanted to start small, since I really am new to C programming. Now that I've done this part, I'll look at the various vop_* pieces and see if it's something in my grasp. From what it sounds like, you'd also like to see per-mount point stats, but from the vfs layer, right? If that's true, then do you have any suggestions on how to store the statistics for each mounted fs? Thanks for the feedback! Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------