问题原文
原帖链接 · q-codes · CC BY-SA 4.0
I'm running on a Intel Celeron N4120. I can easily set the CPU governor for all 4 cores to powersave using:
for n in {0..3}
do
sudo cpufreq-set -g powersave -c $n
done
Now, using cpufreq-info I know the hardware limits of my CPU is 800 MHz - 2.60 GHz. And, cpufreq-set allows me to set the highest and lowest clock speed.
My question is: if I always set the highest and lowest clock speed of my CPU to 800 MHz for all the cores, alongside setting the governor to powersave all the time, then will it affect my hardware?
Information: I did this on an older (Intel Pentium Core 2 Duo) computer of mine, and had kernel crashes (not sure if they are related). I used the computer for a long time like that - and then I wasn't able to tune my CPU anymore. No cpufreq-set command worked anymore. Again, not sure if they can be related.
已采纳解答
原帖链接 · Martin · CC BY-SA 4.0
Let us recall, what a scaling governor does.
here is the official documentation. If the CPU supports dynamic frequency setting, the linux kernel is responsible for setting the appropiate cpu frequency. Setting the scaling governor changes only the limits within which the kernel may change the CPU frequency.
Now what happens when you force the CPU to the lowest frequency available?
- your CPU consumes less power
- your CPU produces less heat which needs to be cooled down.
- the command to change the frequency setting is not being issued, as the frequency stays constant
Considering that the most likely cause for hardware damage is the heat death (for example because of a cpu cooler being covered with dust), you will probably extend the lifetime of your CPU by limiting the CPU speed.
What about other effects on the hardware?
You will suffer a performance penalty of course, which can also include other hardware - for example the network card, since almost everything must go through the CPU. But apart from the performance loss, I do not think that there will be other effects.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
