Skip to contentSkip to conversation

blkiomon: I/O monitor based on blktrace data

PATCH In review Martin Peschke 2 participants 5 messages Jul 16, 2008 s390

lore
Share & tools
lore
#0 lore raw

cover blkiomon: I/O monitor based on blktrace data

In order to analyse I/O performance problems which could be reported by customers we want to provide a little monitoring tool. Primarily, we would like to be able look at a history of request size and request latency histograms per device.

The D and C traces provided by blktrace are exactly what we need for that purpose. So, running blktrace with appropriate filters (-a option) makes this approach feasible.

Patch 1/2 allows users to get binary output from blkparse on stdout.

Patch 2/2 contains blkiomon, an I/O monitoring tool, which reads blkparse data from stdin and which periodically writes I/O statistics.

I would like to contribute this little tool to the blktrace source tree. I think it would complement blkparse and btt quite well.

Martin

#1 lore raw
Quoted 11 lines · Martin Peschke

In order to analyse I/O performance problems which could be reported by customers we want to provide a little monitoring tool. Primarily, we would like to be able look at a history of request size and request latency histograms per device.

The D and C traces provided by blktrace are exactly what we need for that purpose. So, running blktrace with appropriate filters (-a option) makes this approach feasible.

Patch 1/2 allows users to get binary output from blkparse on stdout.

Quoted 7 lines

Patch 2/2 contains blkiomon, an I/O monitoring tool, which reads blkparse data from stdin and which periodically writes I/O statistics.

I would like to contribute this little tool to the blktrace source tree. I think it would complement blkparse and btt quite well.

Martin

Hi Martin -

Is there some reason why you don't just parse the textual output from blkparse itself? [I believe that's what Chris Mason does w/ his seekwatcher for example.]

Alan

#2 lore raw
In reply to Martin Peschke
Quoted 18 lines · Alan D. Brunelle
Quoted 17 lines · Martin Peschke

In order to analyse I/O performance problems which could be reported by customers we want to provide a little monitoring tool. Primarily, we would like to be able look at a history of request size and request latency histograms per device.

The D and C traces provided by blktrace are exactly what we need for that purpose. So, running blktrace with appropriate filters (-a option) makes this approach feasible.

Patch 1/2 allows users to get binary output from blkparse on stdout.

Patch 2/2 contains blkiomon, an I/O monitoring tool, which reads blkparse data from stdin and which periodically writes I/O statistics.

I would like to contribute this little tool to the blktrace source tree. I think it would complement blkparse and btt quite well.

Quoted 7 lines
Quoted 1 line

Martin

Hi Martin -

Is there some reason why you don't just parse the textual output from blkparse itself? [I believe that's what Chris Mason does w/ his seekwatcher for example.]

Hi Alan,
we would like to spend as few CPU cycles as possible.

Having a little c-program consuming binary data is less expensive than having blkparse generate textual output which would be parsed by some script.

This is a monitoring tool, and there might be millions of requests.

#3 lore raw
In reply to Martin Peschke
Quoted 26 lines · Martin Peschke
Quoted 18 lines · Alan D. Brunelle
Quoted 17 lines · Martin Peschke

In order to analyse I/O performance problems which could be reported by customers we want to provide a little monitoring tool. Primarily, we would like to be able look at a history of request size and request latency histograms per device.

The D and C traces provided by blktrace are exactly what we need for that purpose. So, running blktrace with appropriate filters (-a option) makes this approach feasible.

Patch 1/2 allows users to get binary output from blkparse on stdout.

Patch 2/2 contains blkiomon, an I/O monitoring tool, which reads blkparse data from stdin and which periodically writes I/O statistics.

I would like to contribute this little tool to the blktrace source tree. I think it would complement blkparse and btt quite well.

Quoted 6 lines
Quoted 1 line

Martin

Hi Martin -

Is there some reason why you don't just parse the textual output from blkparse itself? [I believe that's what Chris Mason does w/ his seekwatcher for example.]

Quoted 8 lines

Hi Alan,
we would like to spend as few CPU cycles as possible.

Having a little c-program consuming binary data is less expensive than having blkparse generate textual output which would be parsed by some script.

This is a monitoring tool, and there might be millions of requests.

Hi Martin -

Haven't had time to think this through, but if blktrace is sending binary data to blkparse, why not just replace blkparse w/ blkiomon? Taking data directly from blktrace itself?

Alan

#4 lore raw
Quoted 3 lines · Alan D. Brunelle

Haven't had time to think this through, but if blktrace is sending binary data to blkparse, why not just replace blkparse w/ blkiomon? Taking data directly from blktrace itself?

Good point.

Still I think I want all the trace sorting blkparse does for me. I didn't want to reimplement that functionality.

I don't need other capabilities of blkparse, though, like generating some basic statistics.

Perhaps, it would make sense to move some blkparse code to a separate c-file, which could be linked by other tools in the package, blkiomon?

Would be fine with me to make this all as light-weight as possible, e.g. get rid of blkparse and a pipe.

Martin