emi*_*lrn 5 ubuntu kernel proc perf
我很想知道一段时间内 KVM vm 中的两个进程在单个 CPU 上的上下文切换次数。
我之前使用过perf,这是最佳实践吗?
perf
每个 CPU 的上下文切换使用了多少时间?
use*_*275 6
大约 1.2 微秒,大约是一千个周期
https://eli.thegreenplace.net/2018/measuring-context-switching-and-memory-overheads-for-linux-threads/
归档时间:
7 年,6 月 前
查看次数:
3955 次
最近记录:
6 年,5 月 前