-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
https://www.owalle.com/2021/08/31/cpu-performance/
最近因工作需要,需要精确计算CPU的performance,顺便查了下,应该如何稍微精确的计算CPU的频率。大概网上搜到三种方法:1,使用rdtsc,通过tsc计算CPU频率;2,IA32_APERF 和 IA32_MPERF两个MSR计算;3,系统接口”/sys/devices/system/cpu/cpu/cpufreq/scaling_cur_freq”下面来分别比较下三种方法的优劣: rd