Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图通过运行 sar -u 1 3 了解 CPU 利用率报告。在我的系统上,它显示 ~50% 的利用率。我很惊讶,因为我们的软件是一个高性能软件,我们在其中创建了很多线程。所以我认为上下文切换和缓存未命中可能是我们看到 CPU 利用率较低的原因。
问题是,如果一个线程尝试读取数据并且必须从内存中获取该数据,那么该线程在等待数据时是否被认为是“利用”CPU?