Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #273985

Re: lower CPU speed

From Michael Kjörling <c9bc136c6063@ewoof.net>
Newsgroups linux.debian.user
Subject Re: lower CPU speed
Date 2024-10-23 21:10 +0200
Message-ID <JAOU1-3K8s-11@gated-at.bofh.it> (permalink)
References <JAOAF-3JMx-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 23 Oct 2024 14:46 -0400, from eben@gmx.us (Eben King):
> I have a variable-speed CPU.  Normally the OS manages it.  If I want to make
> less heat inside the case, is it possible to cap it at a certain speed?

CPU speed is controlled by the CPU frequency governor.

Set /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor to
"ondemand" or "conservative" (the main difference is how quickly they
react to load changes), and /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
as desired. (Value in the latter is in Hz.) The
"scaling_available_governors" and "scaling_available_frequencies"
pseudo-files in the same directory are likely to be instructive.

You can also set the governor to "powersave" to run the CPU at its
minimum supported speed.

The changes will be lost on reboot so you'll need something to reapply
them during or after a reboot if that's what you want.

I think the linux-cpupower Debian package provides a nicer CLI
front-end.

-- 
Michael Kjörling
🔗 https://michael.kjorling.se

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

lower CPU speed Eben King <eben@gmx.us> - 2024-10-23 20:50 +0200
  Re: lower CPU speed Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-10-23 21:10 +0200
    Re: lower CPU speed Lee <ler762@gmail.com> - 2024-10-23 23:50 +0200
      Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-24 17:10 +0200
  Re: lower CPU speed Mike <debian@good-with-numbers.com> - 2024-10-23 22:30 +0200
  Re: lower CPU speed eben@gmx.us - 2024-10-23 22:30 +0200
  Re: lower CPU speed Greg Wooledge <greg@wooledge.org> - 2024-10-23 22:50 +0200
    Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-23 23:10 +0200
      Re: lower CPU speed eben@gmx.us - 2024-10-23 23:30 +0200
  Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-23 22:50 +0200
    Re: lower CPU speed eben@gmx.us - 2024-10-23 23:20 +0200

csiph-web