【已解决】2018.1.24日更新导致cpu工作在固定频率
Tofloor
poster avatar
186******60
deepin
2018-01-24 21:33
Author
本帖最后由 deepinlwh 于 2018-1-25 22:21 编辑

cpu不能依据工作强度来自动调节频率了。开启intel_pstate 频率维持在2893MHz;  禁用intel_psate后,工作频率维持在800MHz。调节工具通通不起作用。
原来是 watch grep \"cpu MHz\" /proc/cpuinfo 在新内核下有问题,建议改用其它工具查看感谢@redchenjs @https://bbs.deepin.org/user/16934提醒
Reply Favorite View the author
All Replies
avatar
aida
deepin
2018-01-24 22:03
#1
https://bbs.deepin.org/user/30944  麻烦看一下更新的问题
Reply View the author
avatar
186******60
deepin
2018-01-24 22:11
#2
本帖最后由 deepinlwh 于 2018-1-24 14:13 编辑

deepin-feedback-cli-Deepin-15.5-all-20180124-140550(内核4.9 运行完美).tar.gz  这个是4.9内核的,完美运行。

deepin-feedback-cli-Deepin-15.5-all-20180124-134949(禁用intel_paste).tar.gz   内核4.14的

deepin-feedback-cli-Deepin-15.5-all-20180124-135857(启用intel_paste).tar.gz   内核4.14的
Reply View the author
avatar
yangbo
deepin
2018-01-24 22:16
#3
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_{driver,governor}来看看

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
Reply View the author
avatar
186******60
deepin
2018-01-24 22:24
#4
https://bbs.deepin.org/post/152311
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_{driver,governor}来看看

cat /sys/devices/system/ ...


Reply View the author
avatar
yangbo
deepin
2018-01-24 23:19
#5
要么就把pstate打开,要么用acpi-cpufreq的时候不要用powersave,用ondemand或者performance
Reply View the author
avatar
186******60
deepin
2018-01-24 23:59
#6
https://bbs.deepin.org/post/152311
要么就把pstate打开,要么用acpi-cpufreq的时候不要用powersave,用ondemand或者performance ...

都试过了,这些调节工具根本就不起作用
Reply View the author
avatar
186******51
deepin
2018-01-25 01:39
#7
刚试了i7-5500U也有同样的问题,在4.14下保持默频2.4G工作
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_{driver,governor}的输出也是intel_pstate和powersave
Reply View the author
avatar
yangbo
deepin
2018-01-25 02:31
#8
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state看到底有没有变化
Reply View the author
avatar
DebuggerX
deepin
2018-01-26 05:36
#9


好像只是/proc/cpuinfo里的值不再变了,cpufreq-info显示的值还是正常会变化的,有空再仔细查证下。。
我给本子设置不插电时工作频率范围就是500-1400,至少cpufreq-info显示的结果符合预期。
Reply View the author
avatar
186******51
deepin
2018-01-26 05:37
#10
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state显示没有这个文件,但是cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq可以看出CPU频率还是在变的,可能只是cat /proc/cpuinfo | grep MHz这个命令不管用了
Reply View the author
avatar
186******60
deepin
2018-01-26 06:11
#11
本帖最后由 deepinlwh 于 2018-1-25 22:12 编辑
https://bbs.deepin.org/post/152311
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state显示没有这个文件,但是cat /sys/devices/s ...

太感谢你了,老铁,我当初咋没想到这个捏,确实那个命令不管用了,我用i7z看了看,确实频率是在变,看来还是用官方程序查看靠谱,thanks
Reply View the author
avatar
DebuggerX
deepin
2018-01-26 06:51
#12
https://bbs.deepin.org/post/152311
太感谢你了,老铁,我当初咋没想到这个捏,确实那个命令不管用了,我用i7z看了看,确实频率是在变,看来还 ...

找到两篇帖子,大概是说从内核4.13.2开始cpuinfo中只显示基础频率,想看实际频率最好直接读scaling_cur_freq,然后有个大佬觉得这样也不是个事,所以给4.15提交了个合并请求又把实际频率加到cpuinfo里显示了~~over……

https://www.phoronix.com/scan.php?page=news_item&px=cpuinfo-fix-for-freq

https://forum.manjaro.org/t/4-13-2-kernel-cpu-frequency-scaling-doesnt-work/31477/4
Reply View the author
avatar
duanyao
deepin
2018-01-26 23:46
#13
https://bbs.deepin.org/post/152311
找到两篇帖子,大概是说从内核4.13.2开始cpuinfo中只显示基础频率,想看实际频率最好直接读scaling_cur_f ...

再次说明了 API 向后兼容的重要性。
Reply View the author
avatar
187******16
deepin
2018-01-27 17:31
#14
https://bbs.deepin.org/post/152311
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state显示没有这个文件,但是cat /sys/devices/s ...

大佬我的系统里这两个文件都没有咋查。。
Reply View the author
avatar
186******51
deepin
2018-02-05 23:23
#15
https://bbs.deepin.org/post/152311
大佬我的系统里这两个文件都没有咋查。。

直接用cpufreq-info工具就可以看,内核目录里不同驱动不同CPU有些不太一样,没有的话可以sudo apt install cpufrequtils装一个方便点
Reply View the author
avatar
186******60
deepin
2018-02-27 19:02
#16
https://bbs.deepin.org/post/152311
大佬我的系统里这两个文件都没有咋查。。

安装sudo apt i7z
Reply View the author