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


Groups > linux.debian.user > #274096

Re: CPU temperature

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: CPU temperature
Date 2024-10-27 17:40 +0100
Message-ID <JCet3-4Cfg-9@gated-at.bofh.it> (permalink)
References <JC3QZ-4v5G-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/26/24 22:11, Corey wrote:
> where shall i check the CPU temperature in command line?
> my dell laptop gets hot and hot when debian run for some time. do you think it's due to cpu too busy?
> 
> Thanks.


My current daily driver is a Dell PowerEdge T30 Xeon E3-1225 v5:

2024-10-27 08:28:10 root@laalaa ~
# cat /etc/debian_version ; uname -a
11.11
Linux laalaa 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) 
x86_64 GNU/Linux


As suggested by another reader, I have also installed the package 
"lm-sensors" to monitor hardware temperatures, etc..


I run the Xfce desktop and find it useful to install the following panel 
plugins:

     Sensor plugin
     CPU Frequency Monitor


To allow the Sensor plugin access to hard disk temperatures, I have set 
the set-user-ID bit on hddtemp(8):

# chmod u+s /usr/sbin/hddtemp


I tune the Sensor plugin to display the processor temperature and to 
update once per second.


Once you can monitor the processor temperature against time, take note 
of how quickly the processor temperature changes when load is applied 
and when load is removed.  Rapid rise and fall times may indicate the 
processor heat sink compound has dried out and should be re-applied. 
Prolonged fall times may indicate the heat sink/ heat pipe is clogged 
with dust and should be cleaned.


Linux provides a governor to control how the processor responds to 
workload.  The Debian package "cpufrequtils" provides utilities to 
interact with the governor:

# apt-get install cpufrequtils


I can see the list of available governors with cpufreq-info(1):

2024-10-27 08:32:05 root@laalaa ~
# cpufreq-info --governors
performance powersave


So, the governor choices on this machine are "performance" and "powersave".


cpufreq-info(1) can tell me the current minimum processor frequency, 
current maximum processor frequency, and the current governor:

2024-10-27 08:32:20 root@laalaa ~
# cpufreq-info -p
800000 3700000 powersave


I can make changes with cpufreq-set(1).  For example, if I want performance:

2024-10-27 08:33:40 root@laalaa ~
+ cpufreq-set -g performance


I can also adjust the minimum and maximum processor frequencies (subject 
to hardware limits):

2024-10-27 09:00:21 root@laalaa ~
# cpufreq-set -d 3000000

2024-10-27 09:00:30 root@laalaa ~
# cpufreq-set -u 4000000

2024-10-27 09:00:34 root@laalaa ~
# cpufreq-info -p
3000000 3700000 performance


Going the other way:

2024-10-27 09:01:35 root@laalaa ~
# cpufreq-set -g powersave

2024-10-27 09:03:10 root@laalaa ~
# cpufreq-set -d 500000

2024-10-27 09:03:20 root@laalaa ~
# cpufreq-set -u 1000000

2024-10-27 09:03:22 root@laalaa ~
# cpufreq-info -p
800000 1000000 powersave


David

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


Thread

CPU temperature "Corey" <coreyh@free.fr> - 2024-10-27 06:20 +0100
  Re: CPU temperature basti <mailinglist@unix-solution.de> - 2024-10-27 06:20 +0100
  Re: CPU temperature Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-10-27 11:10 +0100
  Re: CPU temperature David Christensen <dpchrist@holgerdanske.com> - 2024-10-27 17:40 +0100
    Re: CPU temperature Charles Curley <charlescurley@charlescurley.com> - 2024-10-27 21:30 +0100
      Re: CPU temperature David Christensen <dpchrist@holgerdanske.com> - 2024-10-27 23:40 +0100
        Re: CPU temperature Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-10-28 16:50 +0100
          Re: CPU temperature David Christensen <dpchrist@holgerdanske.com> - 2024-10-29 00:00 +0100

csiph-web