From owner-freebsd-stable@FreeBSD.ORG Thu Oct 23 15:52:14 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 069471065671 for ; Thu, 23 Oct 2008 15:52:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mx1.freebsd.org (Postfix) with ESMTP id 91BE08FC21 for ; Thu, 23 Oct 2008 15:52:11 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA04.westchester.pa.mail.comcast.net ([76.96.62.35]) by QMTA04.westchester.pa.mail.comcast.net with comcast id WA7e1a0080ldTLk54FsBw7; Thu, 23 Oct 2008 15:52:11 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA04.westchester.pa.mail.comcast.net with comcast id WFs81a00P2P6wsM3QFs99b; Thu, 23 Oct 2008 15:52:09 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=mxJc-kJxfcrFiT0y1gkA:9 a=Xo1VOI8S8J-1uGWS-N4SDJV0OR8A:4 a=EoioJ0NPDVgA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 5C04BC9432; Thu, 23 Oct 2008 08:52:08 -0700 (PDT) Date: Thu, 23 Oct 2008 08:52:08 -0700 From: Jeremy Chadwick To: Eduardo Meyer Message-ID: <20081023155208.GA90330@icarus.home.lan> References: <20081023145054.GA88957@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: stable@freebsd.org Subject: Re: gstat information on the CLI X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 15:52:14 -0000 On Thu, Oct 23, 2008 at 01:11:55PM -0200, Eduardo Meyer wrote: > On Thu, Oct 23, 2008 at 12:50 PM, Jeremy Chadwick wrote: > > On Thu, Oct 23, 2008 at 12:20:45PM -0200, Eduardo Meyer wrote: > >> Hello, > >> > >> Its me again bothering you with basic things I cant accomplish. > >> > >> I am planning on monitoring my disks, and the most important > >> information for me is thorughput and lengh queue of operations. I can > >> get the first information with iostat -w1 and sorta, which is perfect > >> for scripting. > >> > >> However, I also need the L(q) information which FreeBSD gives me with > >> gstat. However, this curses interface wont allow me to use grep+awk to > >> get the information I need for the device (slices and disks, but not > >> labels) I need. > > > > Can you tell me what the L(q) field actually represents in gstat? > > > > The BUGS section of the gstat man page should indirectly answer your > > other question (re: non-curses). > > Yes, I have read that. I am looking the source code for gstat. Its > simple, small and clear. I guess can be asily modified to have what I > want :) > > >> So I ask, how can I get this information other than gstat? Or, can > >> gstat work in non-interactive mode? > > > > iostat -x should provide what you're looking for. And remember, the > > first sample data shown in iostat should be generally discarded. > > I need the queue lengh of pending disk operations. What L(q) shows is > the lengh queue, the queued number of pending operations (I believe). It isn't documented, so I really have no idea what it means, hence my question. I'm curious why you're interested in that number; why does it matter? iostat -x provides the same kind of value, and you won't have to modify any code to get what you need: wait transactions queue length -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |