Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2008 15:16:24 -0200
From:      "Eduardo Meyer" <dudu.meyer@gmail.com>
To:        "Jeremy Chadwick" <koitsu@freebsd.org>, stable@freebsd.org
Subject:   Re: gstat information on the CLI
Message-ID:  <d3ea75b30810231016o160bac81o6591b0b2d8421d92@mail.gmail.com>
In-Reply-To: <20081023155208.GA90330@icarus.home.lan>
References:  <d3ea75b30810230720uef21cfft17b5c63507022482@mail.gmail.com> <20081023145054.GA88957@icarus.home.lan> <d3ea75b30810230811h66ae957ej2e0afcb31fac8519@mail.gmail.com> <20081023155208.GA90330@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 23, 2008 at 1:52 PM, Jeremy Chadwick <koitsu@freebsd.org> 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 <koitsu@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d3ea75b30810231016o160bac81o6591b0b2d8421d92>