我很想知道一段时间内 KVM vm 中的两个进程在单个 CPU 上的上下文切换次数。
我之前使用过perf,这是最佳实践吗?
perf
每个 CPU 的上下文切换使用了多少时间?
ubuntu kernel proc perf
kernel ×1
perf ×1
proc ×1
ubuntu ×1