From: "Alan D. Brunelle" <Alan.Brunelle@pobox.com>
To: linux-btrace@vger.kernel.org
Subject: Re: Questions about btt output
Date: Mon, 01 Jun 2009 12:17:53 +0000 [thread overview]
Message-ID: <4A23C6F1.1060608@pobox.com> (raw)
In-Reply-To: <d66e59810905311625j59b9fe56n8d256b38469c7772@mail.gmail.com>
Vikram Oberoi wrote:
> Hey folks,
>
> I have three specific questions about btt's output. I've searched the
> list, Google, and read the user guide, but I'm still not completely
> sure what the answers are. I'm finally posting my questions here, and
> I hope I'm not in the wrong place or going against etiquette by doing
> so! Please let me know if I am. Here are my questions:
>
> Under "Device Merge Information", are BLKmin/BLKavg/BLKmax the
> min/avg/max I/O size in *number of filesystem blocks* (in my case, 4
> KB each) being *issued to the device*?
"Blocks" are all 512 bytes.
>
> Under "Device Seek Information", is the mean seek distance *the
> average number of 512 byte disk sectors* over which the disk head had
> to move before beginning its next IO? Finally, are the median and mode
> also *distances*? If so, I find it hard to believe that my mean seek
> distance is regularly in the tens or hundreds of thousands of disk
> sectors when the mode -- always 0 -- constitutes over 95% of my seek
> distances. Or is there a gap in my understanding here?
The problem with that field - and it's always bugged me - is that it
truly represents distances from the previous I/O to the next I/O. (It is
actually the closest distance - meaning: if where the previous I/O ends
is closer to where the next one begins we use that, else if where the
previous I/O begins is closer to where the next I/O ends (backwards
seek) we use that distance.)
But remember: with disks that are very large - as most every disk is
today - some seeks can be tremendously large. So a (very) few (very)
large seeks can dwarf lots (and lots) of small seeks.
The mode field provides a better idea as to what is going on - it will
show that sequential (or nearly sequential) I/Os predominate for a lot
of typical I/O patterns (highly sequential). In my typical FS runs I
usually see on the order of 80-90+ percent of the I/Os being 0 or 8
blocks off (8 being equivalent to the 4,096 byte FS block).
>
> Thanks,
> Vikram
next prev parent reply other threads:[~2009-06-01 12:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-31 23:25 Questions about btt output Vikram Oberoi
2009-06-01 12:17 ` Alan D. Brunelle [this message]
2009-06-01 23:19 ` Vikram Oberoi
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=4A23C6F1.1060608@pobox.com \
--to=alan.brunelle@pobox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.