Comment 54 for bug 1071434

Revision history for this message
In , sworddragon2 (sworddragon2-linux-kernel-bugs) wrote :

Thanks for the hint of cpufreq-aperf. Here are the results:

root@ubuntu:~# taskset -c 0 sh -c "./test.py & sleep 1 && cpufreq-aperf --once && echo ---------- && cat /proc/cpuinfo | grep MHz && pkill ^test.py$"
CPU Average freq(KHz) Time in C0 Time in Cx C0 percentage
000 3186000 01 sec 005 ms 6832127434 sec 705 ms 100
001 0783000 00 sec 026 ms 00 sec 976 ms 02
002 0783000 00 sec 032 ms 00 sec 970 ms 03
003 0783000 00 sec 001 ms 01 sec 001 ms 00
004 0783000 00 sec 016 ms 00 sec 986 ms 01
005 0783000 00 sec 039 ms 00 sec 963 ms 03
----------
cpu MHz : 2700.000
cpu MHz : 800.000
cpu MHz : 800.000
cpu MHz : 800.000
cpu MHz : 800.000
cpu MHz : 800.000

Turbo Core is working but /proc/cpuinfo doesn't support showing the correct frequency.