Bug 51681
Summary: | /proc/cpuinfo doesn't support showing the correct Turbo Core frequency | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | sworddragon2 |
Component: | Other | Assignee: | platform_other |
Status: | NEW --- | ||
Severity: | normal | CC: | 6b65726e656c, alan, askhuraskin, chris, colegrove479, david, muziofg, rjw |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1071434 | ||
Kernel Version: | 3.7 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Log of /proc/cpuinfo and top |
Description
sworddragon2
2012-12-13 08:43:09 UTC
Created attachment 89081 [details]
Log of /proc/cpuinfo and top
I have two different AMD CPUs with turbo core feature enabled: a Phenom II X6 1055T and a dualcore C-70 both have the same behaviour: if I read the frequency value from /sys/devices/system/cpu/*/cpufreq/* or /proc/cpuinfo I see the cores to never reach the "turbo" frequency. But the software cpufreq-aperf (found in the cpufrequtils package on a Debian system) can show me these peaks, expecially if I force 5 cores to powersave and 1 on performance governor for use cpuafreq-aper must be load the msr kernel module, I think the Turbo frequency is an internal feature of a CPU, difficult to control and monitor 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. It's working on 4.19.0-9-amd64 Debian 10 kernel directly from /proc/cpuinfo: # cat /proc/cpuinfo |grep -i model model : 10 model name : AMD Phenom(tm) II X6 1090T Processor # cat /proc/cpuinfo |grep MHz cpu MHz : 3528.820 cpu MHz : 831.966 cpu MHz : 893.121 cpu MHz : 800.173 cpu MHz : 1354.755 cpu MHz : 979.302 # cat /proc/cpuinfo |grep MHz cpu MHz : 3505.403 cpu MHz : 834.381 cpu MHz : 1281.693 cpu MHz : 1555.635 cpu MHz : 1476.154 cpu MHz : 955.208 3600 MHz turbo core. I think this bug can be closed as resolved. |