diff options
author | Martin Peschke <mp3@de.ibm.com> | 2008-10-16 07:48:25 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-16 07:48:25 +0200 |
commit | cc19ddd696e8931a969e943523e1dcf7a11ffe79 (patch) | |
tree | 24fad07f2492c5dda6a097b015073037232a728b /doc | |
parent | abf63eafd11e42e0f065e56fc4773e6854087d41 (diff) | |
download | blktrace-cc19ddd696e8931a969e943523e1dcf7a11ffe79.tar.gz blktrace-cc19ddd696e8931a969e943523e1dcf7a11ffe79.tar.bz2 |
blkiomon: I/O monitor
blkiomon periodicaly generates per devive request size and request latency
statistics from blktrace data. It provides histograms as well as data that
can be used to calculate min, max, average and variance. For this purpose,
it consumes D and C traces read from stdin.
There are options for binary output and human-readable output to files and
stdout. Output to a message queue is supported as well.
#blktrace /dev/sdw -a issue -a complete -w 200 -o - | blkiomon -I 8 -h -
time: Tue Sep 30 17:39:25 2008
device: 65,96
requests: read 62, write 40, bidir: 0
sizes: num 102, min 4096, max 430080, sum 13312000, squ 3102442782720,
avg 130509.8, var 13383296793.3
d2c: num 102, min 393, max 14261, sum 359441, squ 2830211755, avg 3523.9,
var 15329081.8
sizes histogram (in kB):
0: 0 1024: 0 2048: 0 4096: 6
8192: 0 16384: 15 32768: 4 65536: 24
131072: 11 262144: 30 524288: 12 1048576: 0
2097152: 0 4194304: 0 8388608: 0 > 8388608: 0
d2c histogram (in usec):
0: 0 8: 0 16: 0 32: 0
64: 0 128: 0 256: 0 512: 13
1024: 21 2048: 27 4096: 14 8192: 8
16384: 19 32768: 0 65536: 0 131072: 0
262144: 0 524288: 0 1048576: 0 2097152: 0
4194304: 0 8388608: 0 16777216: 0 33554432: 0
>33554432: 0
time: Tue Sep 30 17:39:33 2008
device: 65,96
requests: read 312, write 47, bidir: 0
sizes: num 359, min 4096, max 430080, sum 13197312, squ 1575816790016,
avg 36761.3, var 3038067547.5
d2c: num 359, min 294, max 9211, sum 387134, squ 1262489694, avg 1078.4,
var 2353807.5
sizes histogram (in kB):
0: 0 1024: 0 2048: 0 4096: 32
8192: 17 16384: 133 32768: 87 65536: 59
131072: 9 262144: 18 524288: 4 1048576: 0
2097152: 0 4194304: 0 8388608: 0 > 8388608: 0
d2c histogram (in usec):
0: 0 8: 0 16: 0 32: 0
64: 0 128: 0 256: 0 512: 129
1024: 164 2048: 33 4096: 15 8192: 13
16384: 5 32768: 0 65536: 0 131072: 0
262144: 0 524288: 0 1048576: 0 2097152: 0
4194304: 0 8388608: 0 16777216: 0 33554432: 0
>33554432: 0
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/blkiomon.8 | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/doc/blkiomon.8 b/doc/blkiomon.8 new file mode 100644 index 0000000..54ff099 --- /dev/null +++ b/doc/blkiomon.8 @@ -0,0 +1,116 @@ +.TH BLKIOMON 8 "July 17, 2008" "" "" + + +.SH NAME +blkiomon \- monitor block device I/O based o blktrace data + + +.SH SYNOPSIS +.B blkiomon \-I \fIinterval\fR [ \-h \fIfile\fR ] [ \-b \fIfile\fR ] +[ \-D \fIfile\fR ] [ \-Q \fIpath_name\fR +\-q \fImsg_queue_id\fR \-m \fImsg_id\fR ] [ \-V ] +.br + + +.SH DESCRIPTION +blkiomon is a block device I/O monitor. It periodically generates per device +request size and request latency statistics from blktrace data. It provides +histograms as well as data that can be used to calculate min, max, average +and variance. For this purpose, it consumes D and C traces read from stdin. + +There are options for binary output and human-readable output to files and +stdout. Output to a message queue is supported as well. + +There is no need to use blkparse with blkiomon. blkiomon is capable of +consuming binary output written to stdout by blktrace. + + +.SH OPTIONS + +\-I \fIinterval\fR +.br +\-\-interval=\fIinterval\fR +.RS +Set sample interval +.RE + +\-h \fIfile\fR +.br +\-\-human\-readable=\fIfile\fR +.RS +Human-readable output file. Use '\-' for stdout. +.RE + +\-b \fIfile\fR +.br +\-\-binary=\fIfile\fR +.RS +Binary output file. Use '\-' for stdout. +.RE + +\-D \fIfile\fR +.br +\-\-debug=\fIfile\fR +.RS +Output file for debugging data. Use '\-' for stdout. +.RE + +\-Q \fIpath_name\fR +.br +\-\-msg\-queue\-name=\fIpath_name\fR +.RS +Sets \fIpath_name\fR as path name for existing message queue to be used +for binary output. +.RE + +\-q \fImsg_queue_id\fR +.br +\-\-msg\-queue\-id=\fImsg_queue_id\fR +.RS +Sets \fImsg_queue_id\fR as ID for an existing message queue to be used +for binary output. +.RE + +\-m \fImsg_id\fR +.br +\-\-msg\-id=\fImsg_id\fR +.RS +Sets \fImsg_id\fR as message identifier to be used for binary output +messages written to an existing message queue. +.RE + +\-V +.br +\-\-version +.RS +Print program version. +.RE + + +.SH EXAMPLES +To get I/O statistics for /dev/sdw every 10 seconds for a period of one hour, +use the following command: + + % blktrace /dev/sdw -a issue -a complete -w 3600 -o - | blkiomon -I 10 -h - + + +.SH AUTHORS +blkiomon and this man page were written by Martin Peschke. + + +.SH "REPORTING BUGS" +Report bugs to <linux\-btrace@vger.kernel.org> + + +.SH COPYRIGHT +Copyright \(co 2008 IBM Corp. +.br +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. +There is NO WARRANTY, to the extent permitted by law. + + +.SH "SEE ALSO" +btrace (8), blktrace (8), blkparse (1), verify_blkparse (1), blkrawverify (1), +btt (1) + |