From: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
To: linux-btrace@vger.kernel.org
Subject: Re: [Patch 0/3] driver data: blktrace pass-through support for device
Date: Wed, 16 Jul 2008 14:47:34 +0000 [thread overview]
Message-ID: <487E0A06.6080307@hp.com> (raw)
In-Reply-To: <1216207494.26621.82.camel@kitka.ibm.com>
Martin Peschke wrote:
> On Wed, 2008-07-16 at 10:22 -0400, Alan D. Brunelle wrote:
>> Martin Peschke wrote:
>>> Low-level device drivers might have additional data which complements
>>> blktrace data. For example, zfcp, a SCSI HBA driver, is capable of
>>> obtaining additional latency information per request from HBAs. Those
>>> latencies allow to further break down the overall D2C request latency
>>> provided by blktrace.
>>>
>>> We propose an additional trace for blktrace, called "driver data". It is
>>> a sort of small binary blob, which contains a low-level driver specific
>>> struct. Blktrace would be able to filter this trace (-a option) and
>>> include it within its binary output. A small device driver specific tool
>>> on top of blktrace would then analyze "driver data" traces.
>>>
>>> Patch 1/3 makes the blktrace kernel code provide blk_add_driver_data()
>>> for use by device drivers.
>>>
>>> Patch 2/3 adds support for driver data traces to blktrace tools.
>>>
>>> Patch 3/3 makes zfcp provide additional request latency and queue
>>> utilization data through blktrace.
>>>
>>>
>>> Patches are against scsi-misc and blktrace git.
>>>
>>>
>>> Martin
>> Hi Martin -
>>
>> Have you thought about just using blk_add_trace_msg instead?
>
> Hi Alan,
> good point. Yes, we thought about it. It actually inspired
> blk_add_drv_data().
>
> blk_add_trace_msg adds information to the textual output of blkparse.
> There is no point in forwarding it to the binary output.
>
> We need the opposite. We want driver data to show up in binary ouput.
> But there is no point in blkparse trying to generate some ascii message
> from low-level device driver specific data.
>
> Besides this would lead us down the path of parsing textual output for
> our monitoring tool. This would burn more CPU than a c-program which
> consumes binary data.
>
> Martin
>
>
Hm, again, if the blktrace | blkiomon (direct, no blkparse) is how you
do things, I would think that it would /not/ take all that much
processing power to parse character strings. (I've heard that IBM makes
some pretty fast processors... :-) ) In particular, if you make the
character strings more machine readable (no text, just numbers) for
example it's just some atoi's going on.
Alan
next prev parent reply other threads:[~2008-07-16 14:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 11:24 [Patch 0/3] driver data: blktrace pass-through support for device Martin Peschke
2008-07-16 14:22 ` Alan D. Brunelle
2008-07-16 14:41 ` [Patch 0/3] driver data: blktrace pass-through support for Martin Peschke
2008-07-16 14:47 ` Alan D. Brunelle [this message]
2008-07-16 15:08 ` [Patch 0/3] driver data: blktrace pass-through support Martin Peschke
2008-07-16 15:15 ` [Patch 0/3] driver data: blktrace pass-through support for device Alan D. Brunelle
2008-07-16 15:43 ` [Patch 0/3] driver data: blktrace pass-through Martin Peschke
2008-07-17 12:17 ` [Patch 0/3] driver data: blktrace pass-through support for Martin Peschke
2008-07-17 12:27 ` [Patch 0/3] driver data: blktrace pass-through support for device Alan D. Brunelle
2008-10-05 13:07 ` Martin Peschke
2008-10-15 11:35 ` [Patch 0/3] driver data: blktrace pass-through support for Martin Peschke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=487E0A06.6080307@hp.com \
--to=alan.brunelle@hp.com \
--cc=linux-btrace@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).