gpt4 book ai didi

cpu - 如何在系统运行时获得真实的CPU频率?

转载 作者:行者123 更新时间:2023-12-01 12:55:42 25 4
gpt4 key购买 nike

由于 Intel Turbo Boost 技术,我不能相信芯片上写的 CPU 频率。我想在系统运行时获得真实的 CPU 频率。我搜索了 cpufreq 设备可以提供帮助。但是 dev.cpu.n.freq 结果只支持 dev.cpu.0.freq

没有像 dev.cpu.1.freqdev.cpu.n.freq 这样的其他 OID。

有什么好用的工具可以马上看到CPU频率吗?

最佳答案

关于dev.cpu.N.freq sysctl for N>0的缺失,查看cpufreq(4)的BUGS部分:

When multiple CPUs offer frequency control, they cannot be set to differ‐ ent levels and must all offer the same frequency settings.

这就是为什么只报告 CPU 0 的原因。

关于cpu - 如何在系统运行时获得真实的CPU频率?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9941664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com