Linux/CPU:修订间差异
来自康健生活
| 第168行: | 第168行: | ||
core id : 4 | core id : 4 | ||
core id : 5 | core id : 5 | ||
</syntaxhighlight>|root@kangjian:~#}} | |||
== 关闭睿频 == | |||
{{shc_out|<syntaxhighlight lang="bash"> | |||
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo | |||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | |||
</syntaxhighlight>|root@kangjian:~#}} | |||
限制CPU最大频率到50% | |||
{{shc_out|<syntaxhighlight lang="bash"> | |||
echo "50" | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct | |||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | |||
</syntaxhighlight>|root@kangjian:~#}} | |||
实时查看频率: | |||
{{shc_out|<syntaxhighlight lang="bash"> | |||
watch -n 0 "cat /proc/cpuinfo | grep -i mhz" | |||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | |||
cpu MHz : 800.022 | |||
cpu MHz : 800.013 | |||
cpu MHz : 800.049 | |||
cpu MHz : 800.025 | |||
cpu MHz : 800.049 | |||
cpu MHz : 800.114 | |||
cpu MHz : 800.015 | |||
cpu MHz : 800.052 | |||
cpu MHz : 800.179 | |||
cpu MHz : 800.113 | |||
cpu MHz : 800.045 | |||
cpu MHz : 800.007 | |||
</syntaxhighlight>|root@kangjian:~#}} | </syntaxhighlight>|root@kangjian:~#}} | ||