1 Star 0 Fork 0

wangcichen/bcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
biopattern_example.txt 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wangcichen/bcc.git
git@gitee.com:wangcichen/bcc.git
wangcichen
bcc
bcc
master

搜索帮助