Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 1 | Demonstrations of bitehist.py, the Linux eBPF/bcc version. |
| 2 | |
| 3 | This prints a power-of-2 histogram to show the block I/O size distribution. |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 4 | A summary is printed after Ctrl-C is hit. |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 5 | |
Brenden Blanco | 5bd0eb2 | 2016-01-26 12:04:06 -0800 | [diff] [blame] | 6 | # ./bitehist.py |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 7 | Tracing... Hit Ctrl-C to end. |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 8 | ^C |
Brendan Gregg | 665c5b0 | 2015-09-21 11:55:52 -0700 | [diff] [blame] | 9 | kbytes : count distribution |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 10 | 0 -> 1 : 3 | | |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 11 | 2 -> 3 : 0 | | |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 12 | 4 -> 7 : 211 |********** | |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 13 | 8 -> 15 : 0 | | |
| 14 | 16 -> 31 : 0 | | |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 15 | 32 -> 63 : 0 | | |
| 16 | 64 -> 127 : 1 | | |
| 17 | 128 -> 255 : 800 |**************************************| |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 18 | |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 19 | This output shows a bimodal distribution. The largest mod of 800 I/O were |
| 20 | between 128 and 255 Kbytes in size, and another mode of 211 I/O were between |
| 21 | 4 and 7 Kbytes in size. |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 22 | |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 23 | Understanding this distribution is useful for characterizing workloads and |
Alex Bagehot | 3b9679a | 2016-02-06 16:01:02 +0000 | [diff] [blame] | 24 | understanding performance. The existence of this distribution is not visible |
Brendan Gregg | f32a67c | 2015-09-07 14:42:12 -0700 | [diff] [blame] | 25 | from averages alone. |