1biopattern(8) System Manager's Manual biopattern(8)
2
3
4
6 biopattern - Identify random/sequential disk access patterns.
7
9 biopattern [-h] [-d DISK] [interval] [count]
10
12 This traces block device I/O (disk I/O), and prints ratio of random/se‐
13 quential I/O for each disk or the specified disk either on Ctrl-C, or
14 after a given interval in seconds.
15
16 This works by tracing kernel tracepoint block:block_rq_complete.
17
18 Since this uses BPF, only the root user can use this tool.
19
21 CONFIG_BPF and bcc.
22
24 -h Show help message and exit.
25
26 -d Trace this disk only.
27
28 interval
29 Print output every interval seconds, if any.
30
31 count Number of interval summaries.
32
34 Trace access patterns of all disks, and print a summary on Ctrl-C:
35 # biopattern
36
37 Trace disk sdb only:
38 # biopattern -d sdb
39
40 Print 1 second summaries, 10 times:
41 # biopattern 1 10
42
44 TIME Time of the output, in HH:MM:SS format.
45
46 DISK Disk device name.
47
48 %RND Ratio of random I/O.
49
50 %SEQ Ratio of sequential I/O.
51
52 COUNT Number of I/O during the interval.
53
54 KBYTES Total Kbytes for these I/O, during the interval.
55
57 Since block device I/O usually has a relatively low frequency (<
58 10,000/s), the overhead for this tool is expected to be low or negligi‐
59 ble. For high IOPS storage systems, test and quantify before use.
60
62 This is from bcc.
63
64 https://github.com/iovisor/bcc
65
66 Also look in the bcc distribution for a companion _examples.txt file
67 containing example usage, output, and commentary for this tool.
68
70 Linux
71
73 Unstable - in development.
74
76 Rocky Xing
77
79 biosnoop(8), biolatency(8), iostat(1)
80
81
82
83USER COMMANDS 2022-02-21 biopattern(8)