blob: 90bbdf7f6051c9efd65361e132550ed534852bbd [file] [log] [blame]
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07001Demonstrations of bitehist.py, the Linux eBPF/bcc version.
2
3This prints a power-of-2 histogram to show the block I/O size distribution.
Brendan Greggf32a67c2015-09-07 14:42:12 -07004A summary is printed after Ctrl-C is hit.
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07005
Brenden Blanco5bd0eb22016-01-26 12:04:06 -08006# ./bitehist.py
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07007Tracing... Hit Ctrl-C to end.
Brendan Gregg48fbc3e2015-08-18 14:56:14 -07008^C
Brendan Gregg665c5b02015-09-21 11:55:52 -07009 kbytes : count distribution
Brendan Greggf32a67c2015-09-07 14:42:12 -070010 0 -> 1 : 3 | |
Brendan Gregg48fbc3e2015-08-18 14:56:14 -070011 2 -> 3 : 0 | |
Brendan Greggf32a67c2015-09-07 14:42:12 -070012 4 -> 7 : 211 |********** |
Brendan Gregg48fbc3e2015-08-18 14:56:14 -070013 8 -> 15 : 0 | |
14 16 -> 31 : 0 | |
Brendan Greggf32a67c2015-09-07 14:42:12 -070015 32 -> 63 : 0 | |
16 64 -> 127 : 1 | |
17 128 -> 255 : 800 |**************************************|
Brendan Gregg48fbc3e2015-08-18 14:56:14 -070018
Brendan Greggf32a67c2015-09-07 14:42:12 -070019This output shows a bimodal distribution. The largest mod of 800 I/O were
20between 128 and 255 Kbytes in size, and another mode of 211 I/O were between
214 and 7 Kbytes in size.
Brendan Gregg48fbc3e2015-08-18 14:56:14 -070022
Brendan Greggf32a67c2015-09-07 14:42:12 -070023Understanding this distribution is useful for characterizing workloads and
Alex Bagehot3b9679a2016-02-06 16:01:02 +000024understanding performance. The existence of this distribution is not visible
Brendan Greggf32a67c2015-09-07 14:42:12 -070025from averages alone.