forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
biopattern_example.txt
45 lines (33 loc) · 1.37 KB
/
biopattern_example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Demonstrations of biopattern, the Linux eBPF/bcc version.
biopattern identifies random/sequential disk access patterns. Example:
# ./biopattern.py
TIME DISK %RND %SEQ COUNT KBYTES
22:03:51 vdb 0 99 788 3184
22:03:51 Unknown 0 100 4 0
22:03:51 vda 85 14 21 488
[...]
The -d option only print the matched disk.
# ./biopattern.py -d vdb 1 10
TIME DISK %RND %SEQ COUNT KBYTES
22:12:57 vdb 0 99 193 772
22:12:58 vdb 0 100 1119 4476
22:12:59 vdb 0 100 1126 4504
22:13:00 vdb 0 100 1009 4036
22:13:01 vdb 0 100 958 3832
22:13:02 vdb 0 99 957 3856
22:13:03 vdb 0 100 1130 4520
22:13:04 vdb 0 100 1051 4204
22:13:05 vdb 0 100 1158 4632
[...]
USAGE message:
Show block device I/O pattern.
positional arguments:
interval Output interval in seconds
count Number of outputs
optional arguments:
-h, --help show this help message and exit
-d DISK, --disk DISK Trace this disk only
examples:
./biopattern # show block device I/O pattern.
./biopattern 1 10 # print 1 second summaries, 10 times
./biopattern -d sdb # show sdb only