From owner-freebsd-stable@FreeBSD.ORG Thu Oct 23 17:16:27 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 6CCAE10656AB for ; Thu, 23 Oct 2008 17:16:27 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.246]) by mx1.freebsd.org (Postfix) with ESMTP id EECF38FC1F for ; Thu, 23 Oct 2008 17:16:26 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by hs-out-0708.google.com with SMTP id 54so132149hsz.11 for ; Thu, 23 Oct 2008 10:16:25 -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=R6phpjHIztO6W67PJUlKF84Mf0m7EA83jIpurrXi/o4=; b=s7TCCrCixi+gVxtT55BqG95D3MVfq+6tRUvgFdX1X7fjSMVsNYP08vT36T80HllkDI Kdgo3/rq7WbBHG0ru6JmYelOx5xjvnOvWVZUyqbTwce79tpLJOMDLxja/UYNgDMhCsbu ZqZgR7OyZ4pcSehKP3plVdacYhBw5sLf5YRsA= 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=aRW9pUf3TTHrcBYKYBTEq8Ogmd7s4Ky+zsUtYynQZICk+mnqB8B6b2qu3carK4l+MG JDGZ/rEnJtZqWwaM5XqE/cPwY3gjlZmgtiOSg8J2W/lJkbYp1emRTEktVfS1sOLUxL7f O6ZJwA/4cF5KgOucH0sCR5p5Dm26DvytUTMVM= Received: by 10.65.241.15 with SMTP id t15mr1060184qbr.75.1224782184818; Thu, 23 Oct 2008 10:16:24 -0700 (PDT) Received: by 10.64.201.9 with HTTP; Thu, 23 Oct 2008 10:16:24 -0700 (PDT) Message-ID: Date: Thu, 23 Oct 2008 15:16:24 -0200 From: "Eduardo Meyer" To: "Jeremy Chadwick" , stable@freebsd.org In-Reply-To: <20081023155208.GA90330@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> <20081023155208.GA90330@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 17:16:27 -0000 On Thu, Oct 23, 2008 at 1:52 PM, Jeremy Chadwick wrote: > 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, thank you. They show the same information, reading the code I see both show DSM_QUEUE_LENGHT from devstat_compute_statistics(). Thanks again :) -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br