1biolatency(8) System Manager's Manual biolatency(8)
2
3
4
6 biolatency - Summarize block device I/O latency as a histogram.
7
9 biolatency [-h] [-T] [-Q] [-m] [-D] [interval [count]]
10
12 biolatency traces block device I/O (disk I/O), and records the distri‐
13 bution of I/O latency (time). This is printed as a histogram either on
14 Ctrl-C, or after a given interval in seconds.
15
16 The latency of the disk I/O is measured from the issue to the device to
17 its completion. A -Q option can be used to include time queued in the
18 kernel.
19
20 This tool uses in-kernel eBPF maps for storing timestamps and the his‐
21 togram, for efficiency.
22
23 This works by tracing various kernel blk_*() functions using dynamic
24 tracing, and will need updating to match any changes to these func‐
25 tions.
26
27 Since this uses BPF, only the root user can use this tool.
28
30 CONFIG_BPF and bcc.
31
33 -h Print usage message.
34
35 -T Include timestamps on output.
36
37 -m Output histogram in milliseconds.
38
39 -D Print a histogram per disk device.
40
41 interval
42 Output interval, in seconds.
43
44 count Number of outputs.
45
47 Summarize block device I/O latency as a histogram:
48 # biolatency
49
50 Print 1 second summaries, 10 times:
51 # biolatency 1 10
52
53 Print 1 second summaries, using milliseconds as units for the his‐
54 togram, and
55 include timestamps on output: # biolatency -mT 1
56
57 Include OS queued time in I/O time:
58 # biolatency -Q
59
60 Show a latency histogram for each disk device separately:
61 # biolatency -D
62
64 usecs Microsecond range
65
66 msecs Millisecond range
67
68 count How many I/O fell into this range
69
70 distribution
71 An ASCII bar chart to visualize the distribution (count column)
72
74 This traces kernel functions and maintains in-kernel timestamps and a
75 histogram, which are asynchronously copied to user-space. This method
76 is very efficient, and the overhead for most storage I/O rates (< 10k
77 IOPS) should be negligible. If you have a higher IOPS storage environ‐
78 ment, test and quantify the overhead before use.
79
81 This is from bcc.
82
83 https://github.com/iovisor/bcc
84
85 Also look in the bcc distribution for a companion _examples.txt file
86 containing example usage, output, and commentary for this tool.
87
89 Linux
90
92 Unstable - in development.
93
95 Brendan Gregg
96
98 biosnoop(8)
99
100
101
102USER COMMANDS 2015-08-20 biolatency(8)