From owner-freebsd-stable@FreeBSD.ORG Thu Oct 23 15:12:24 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 7AD85106567F for ; Thu, 23 Oct 2008 15:12:24 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id 172A38FC30 for ; Thu, 23 Oct 2008 15:12:23 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so234671tid.3 for ; Thu, 23 Oct 2008 08:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=53QfqdhHLKkdShvnr+DSxOcfjsjE9N6+ZbQREFy76Jc=; b=igeDJ0nd5JSclxGdUrrDzYGZir/lJtzckqxmGZ2Xesa4gxYrcXIqDOhI5HFh6cmbNG 7G3vJcV/WdFnv7klhV7OZf5o4dySF12GgJzsxcBELDirIqGEDqqkSxJuCLiqTZCgcrJ2 oiRkAQ97KjxxsK6bcPeQXJlsIerTSMgJfL0V0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qNi/jCtbksaW08dYUf/gIMb1DndinKS89cV00K+j2T8xzrw9VEpi2Zo/Qhl4HFqMvQ bJjXiq9kW5tanJ51B0T/dXEaQEfSj0zzek6PtscPmtYh2aas4Ya6qdHIM9I/zPkD1TUB KvZaDMz55Y4nOr8m2FqcJ69Z348ntCzNQZz7U= Received: by 10.65.135.5 with SMTP id m5mr837828qbn.87.1224774715788; Thu, 23 Oct 2008 08:11:55 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Thu, 23 Oct 2008 08:11:55 -0700 (PDT) Message-ID: Date: Thu, 23 Oct 2008 13:11:55 -0200 From: "Eduardo Meyer" To: "Jeremy Chadwick" , stable@freebsd.org In-Reply-To: <20081023145054.GA88957@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081023145054.GA88957@icarus.home.lan> Cc: 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:12:24 -0000 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). > > -- > | 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 | > > -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br