1biosnoop(8) System Manager's Manual biosnoop(8)
2
3
4
6 biosnoop.bt - Block I/O tracing tool, showing per I/O latency. Uses
7 bpftrace/eBPF.
8
10 biosnoop.bt
11
13 This is a basic block I/O (disk I/O) tracing tool, showing each I/O
14 event along with the issuing process ID, and the I/O latency. This can
15 be used to investigate disk I/O performance issues.
16
17 This tool currently works by dynamic tracing of the blk_account*() ker‐
18 nel functions, which will need updating to match any changes to these
19 functions in future kernels versions.
20
21 Since this uses BPF, only the root user can use this tool.
22
24 CONFIG_BPF and bpftrace.
25
27 Trace block I/O events, printing per-line summaries:
28 # biosnoop.bt
29
31 TIME Time of the I/O completion, in milliseconds since program start.
32
33 COMM Issuing process name. This often identifies the issuing applica‐
34 tion process, but I/O may be initiated from kernel threads only.
35
36 PID Issuing process ID. This often identifies the issuing applica‐
37 tion process, but I/O may be initiated from kernel threads only.
38
39 ARGS Process name and arguments (16 word maximum).
40
42 Since block device I/O usually has a relatively low frequency (<
43 10,000/s), the overhead for this tool is expected to be negligible. For
44 high IOPS storage systems, test and quantify before use.
45
47 This is from bpftrace.
48
49 https://github.com/iovisor/bpftrace
50
51 Also look in the bpftrace distribution for a companion _examples.txt
52 file containing example usage, output, and commentary for this tool.
53
54 This is a bpftrace version of the bcc tool of the same name. The bcc
55 tool provides more fields.
56
57 https://github.com/iovisor/bcc
58
60 Linux
61
63 Unstable - in development.
64
66 Brendan Gregg
67
69 opensnoop(8)
70
71
72
73USER COMMANDS 2018-09-11 biosnoop(8)