1 Star 0 Fork 0

wangcichen/bcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pidpersec_example.txt 677 Bytes
一键复制 编辑 原始数据 按行查看 历史
Brendan Gregg 提交于 2015-08-19 05:56 +08:00 . some bcc examples and tools
Demonstrations of pidpersec, the Linux eBPF/bcc version.
This shows the number of new processes created per second, measured by tracing
the kernel fork() routine:
# ./pidpersec
Tracing... Ctrl-C to end.
18:33:06: PIDs/sec: 4
18:33:07: PIDs/sec: 5
18:33:08: PIDs/sec: 4
18:33:09: PIDs/sec: 4
18:33:10: PIDs/sec: 21
18:33:11: PIDs/sec: 5
18:33:12: PIDs/sec: 4
18:33:13: PIDs/sec: 4
Each second there are four new processes (this happens to be caused by a
launcher script that is retrying in a loop, and encountering errors).
At 18:33:10, I typed "man ls" in another server session, which caused an
increase in the number of new processes as the necessary commands were run.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wangcichen/bcc.git
git@gitee.com:wangcichen/bcc.git
wangcichen
bcc
bcc
master

搜索帮助