LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2016, 12:31 PM   #1
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
Unusual CPU Temperature Increase (CPU Scaling).


Since the last round of updates I've noticed an increase in CPU temperature, but
only when streaming video from Netflix using Alien Bob's Chromium browser and matching WIdevine plugin.
Streaming on Netflix has always raised the temperature but this is running it right up to the edge of the CPU's maximum operating temperature.
Stop the streaming and the temperature drops by 15 -20 degrees.
At first I thought it might be time for some early spring cleaning, but vacuuming the heat sink
did not change a thing.
Any ideas?
Mesa? Xorg?

Last edited by cwizardone; 01-26-2016 at 08:53 AM. Reason: Added (CPU Scaling) to the title. Removed a typo.
 
Old 01-22-2016, 12:36 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I just fixed a computer which was constantly overheating by replacing the dried out factory thermal paste with fresh paste.
 
Old 01-25-2016, 08:23 AM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Original Poster
Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
Quote:
Originally Posted by Emerson View Post
I just fixed a computer which was constantly overheating by replacing the dried out factory thermal paste with fresh paste.
Thanks for the thought, but just six months ago I removed and
cleaned the CPU and the heat sink/fan, and applied fresh thermal
paste. That should not be the problem.

Last edited by cwizardone; 01-25-2016 at 08:25 AM.
 
Old 01-25-2016, 01:31 PM   #4
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Cool

Quote:
Originally Posted by cwizardone View Post
Thanks for the thought, but just six months ago I removed and
cleaned the CPU and the heat sink/fan, and applied fresh thermal
paste. That should not be the problem.

i think, you must start with thinking, analyzing, and diagnostic.
good tool there is system monitor - see, what app, process use a CPU, and how much.
then think about what you can do with it.

a brainless do vacuum cleaning, when cpu going to overwheat, and when it not help, ask for help is not very smart, as for me...

PS there are a complete solution - come to us, to Mac OS X....there, in dark side, we have a cookies

Last edited by WiseDraco; 01-25-2016 at 01:32 PM.
 
Old 01-25-2016, 03:58 PM   #5
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by cwizardone View Post
Since the last round of updates I've noticed an increase in CPU temperature C, but
only when streaming video from Netflix using Alien Bob's Chromium browser and matching WIdevine plugin.
Streaming on Netflix has always raised the temperature but this is running it right up to the edge of the CPU's maximum operating temperature.
Stop the streaming and the temperature drops by 15 -20 degrees.
At first I thought it might be time for some early spring cleaning, but vacuuming the heat sink
did not change a thing.
Any ideas?
Mesa? Xorg?
I noticed that The Team simplified the /etc/rc.d scripts associated to the kernel modules. Not sure in which update, but, definitively true for latest 4.4.0 kernel. Those scripts used to contains a sequence which set the SCALING GOVERNOR, other hand, to reduce the CPUs speed, depending of load.

Considering that I have some monsters (AMD Buldozer with 8 cores), in mini-ATX computer cases, that thing was very important for me and used to force setting it. Now, all the cores works at full speed, and I use this excerpt from some old rc.modules to get that setup back:

Code:
#!/bin/sh

### CPU frequency scaling policies:
#
# Use the CPUFreq governor 'powersave' as default.  This sets the
# frequency statically to the lowest frequency supported by the CPU.
#/sbin/modprobe cpufreq_powersave
#
# Use the CPUFreq governor 'performance' as default. This sets the
# frequency statically to the highest frequency supported by the CPU.
#/sbin/modprobe cpufreq_performance
#
# Use the CPUFreq governor 'conservative' as default.  This allows you
# to get a full dynamic frequency capable system by simply loading your
# cpufreq low-level hardware driver.  Be aware that not all cpufreq
# drivers support the 'conservative' governor -- the fallback governor
# will be the 'performance' governor.
#/sbin/modprobe cpufreq_conservative
#
# Use the CPUFreq governor 'ondemand' as default.  This allows you to
# get a full dynamic frequency capable system by simply loading your
# cpufreq low-level hardware driver.  Be aware that not all cpufreq
# drivers support the 'ondemand' governor -- the fallback governor will
# be the performance governor.  This seems to be the most-recommended
# scaling policy, so rc.modules will try to load this by default.
/sbin/modprobe cpufreq_ondemand 2>/dev/null

### CPU scaling governor:
#
# Set the default scaling_governor to be used (such as userspace or ondemand)
# if there is a CPUFreq scaling policy module loaded that supports it:
SCALING_GOVERNOR=ondemand
#
# Try to enable the scaling_governor selected above:
if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ]; then
  if grep -wq "$SCALING_GOVERNOR" /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ; then
    if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
      for SYSCPUFILE in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do
        echo "$SCALING_GOVERNOR" > $SYSCPUFILE
      done
    fi
  fi
fi
Maybe that script can help you too.

Last edited by Darth Vader; 01-25-2016 at 04:01 PM.
 
3 members found this post helpful.
Old 01-25-2016, 04:05 PM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Original Poster
Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
Quote:
Originally Posted by WiseDraco View Post
i think, you must start with thinking, analyzing, and diagnostic.
good tool there is system monitor - see, what app, process use a CPU, and how much. then think about what you can do with it......
Did all that before posting the original message.


Quote:
Originally Posted by Darth Vader View Post
I noticed that The Team simplified the /etc/rc.d scripts associated to the kernel modules. Not sure in which update, but, definitively true for latest 4.4.0 kernel. Those scripts used to contains a sequence which set the SCALING GOVERNOR, other hand, to reduce the CPUs speed, depending of load.

Considering that I have some monsters (AMD Buldozer with 8 cores), in mini-ATX computer cases, that thing was very important for me and used to force setting it. Now, all the cores works at full speed, and I use this excerpt from some old rc.modules to get that setup back:


# Use the CPUFreq governor 'ondemand' as default. This allows you to
# get a full dynamic frequency capable system by simply loading your
# cpufreq low-level hardware driver. Be aware that not all cpufreq
# drivers support the 'ondemand' governor -- the fallback governor will
# be the performance governor. This seems to be the most-recommended
# scaling policy, so rc.modules will try to load this by default......

......Maybe that script can help you too.
Thank you, Darth Vader, for a thoughtful and useful reply!
Greatly appreciated.

Last edited by cwizardone; 01-25-2016 at 04:10 PM.
 
Old 01-25-2016, 05:51 PM   #7
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Original Poster
Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
@ Darth Vader,

Thanks, again. That definitely did the trick!
 
Old 01-25-2016, 05:54 PM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Looks like cpu scaling selection should be added back into the distribution somewhere. GazL talked about it, but he doesn't appear to use the scaling stuff himself.

Last edited by Richard Cranium; 01-25-2016 at 05:54 PM. Reason: Didn't get GazL's name correct.
 
1 members found this post helpful.
Old 01-26-2016, 08:31 AM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Original Poster
Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
Well, I've been monitoring the changes for 12+ hours (minus some sleep) and the improvements have been nothing short of amazing.
While streaming the same video, the CPU temperature dropped 10 to 14 degrees depending on the action (complexity) of the video at the moment.
What is really drawing my attention is that while simply running a browser, e.g., SeaMonkey, the CPU temperature has dropped more than 20 degrees. This, in turn, means the CPU fan runs at a reduced speed, therefore, making less noise.
The performance of the computer does not seem to be affected in anyway negative.
Just opposite.
This is the best "tweak" I've stumbled across to date.
Thanks, again, Darth Vader!

Last edited by cwizardone; 01-26-2016 at 08:47 AM. Reason: Typo.
 
Old 01-26-2016, 09:29 AM   #10
Chuck56
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 933

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
The recent changes to rc.modules where discussed in this thread: http://www.linuxquestions.org/questi...on-4175483641/.

The rc.modules change will be one of many 14.2 changes that may catch many Slackers off guard as they upgrade. Hopefully Pat and team will call out this change in the upgrade documentation. So many improvements to Slackware over the current upgrade cycle!
 
1 members found this post helpful.
Old 01-26-2016, 09:33 AM   #11
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Rep: Reputation: 251Reputation: 251Reputation: 251
Quote:
Originally Posted by cwizardone View Post
Well, I've been monitoring the changes for 12+ hours (minus some sleep) and the improvements have been nothing short of amazing.
While streaming the same video, the CPU temperature dropped 10 to 14 degrees depending on the action (complexity) of the video at the moment.
What is really drawing my attention is that while simply running a browser, e.g., SeaMonkey, the CPU temperature has dropped more than 20 degrees. This, in turn, means the CPU fan runs at a reduced speed, therefore, making less noise.
The performance of the computer does not seem to be affected in anyway negative.
Just opposite.
This is the best "tweak" I've stumbled across to date.
Thanks, again, Darth Vader!
Do you mind sharing the specific command that you used? I don't seem to have access to the old rc.modules script.
 
Old 01-26-2016, 09:49 AM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
You can just do (assuming 4 cores)

Code:
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
Or you can use the portion that Darth Vader posted that will do it for all available CPUs.

Code:
### CPU scaling governor:
#
# Set the default scaling_governor to be used (such as userspace or ondemand)
# if there is a CPUFreq scaling policy module loaded that supports it:
SCALING_GOVERNOR=ondemand
#
# Try to enable the scaling_governor selected above:
if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ]; then
  if grep -wq "$SCALING_GOVERNOR" /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ; then
    if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
      for SYSCPUFILE in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do
        echo "$SCALING_GOVERNOR" > $SYSCPUFILE
      done
    fi
  fi
fi
 
1 members found this post helpful.
Old 01-26-2016, 10:02 AM   #13
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,745

Original Poster
Rep: Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082Reputation: 8082
Quote:
Originally Posted by stormtracknole View Post
Do you mind sharing the specific command that you used? I don't seem to have access to the old rc.modules script.
Not at all. I simply copied and pasted what Darth Vader was kind enough to provide;

Quote:
From Darth Vader:

.......Now, all the cores works at full speed, and I use this excerpt from some old rc.modules to get that setup back:

#!/bin/sh

### CPU frequency scaling policies:
#
# Use the CPUFreq governor 'powersave' as default. This sets the
# frequency statically to the lowest frequency supported by the CPU.
#/sbin/modprobe cpufreq_powersave
#
# Use the CPUFreq governor 'performance' as default. This sets the
# frequency statically to the highest frequency supported by the CPU.
#/sbin/modprobe cpufreq_performance
#
# Use the CPUFreq governor 'conservative' as default. This allows you
# to get a full dynamic frequency capable system by simply loading your
# cpufreq low-level hardware driver. Be aware that not all cpufreq
# drivers support the 'conservative' governor -- the fallback governor
# will be the 'performance' governor.
#/sbin/modprobe cpufreq_conservative
#
# Use the CPUFreq governor 'ondemand' as default. This allows you to
# get a full dynamic frequency capable system by simply loading your
# cpufreq low-level hardware driver. Be aware that not all cpufreq
# drivers support the 'ondemand' governor -- the fallback governor will
# be the performance governor. This seems to be the most-recommended
# scaling policy, so rc.modules will try to load this by default.
/sbin/modprobe cpufreq_ondemand 2>/dev/null

### CPU scaling governor:
#
# Set the default scaling_governor to be used (such as userspace or ondemand)
# if there is a CPUFreq scaling policy module loaded that supports it:
SCALING_GOVERNOR=ondemand
#
# Try to enable the scaling_governor selected above:
if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ]; then
if grep -wq "$SCALING_GOVERNOR" /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ; then
if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
for SYSCPUFILE in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do
echo "$SCALING_GOVERNOR" > $SYSCPUFILE
done
fi
fi
fi

Last edited by cwizardone; 01-26-2016 at 10:05 AM.
 
1 members found this post helpful.
Old 01-26-2016, 10:38 AM   #14
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Rep: Reputation: 251Reputation: 251Reputation: 251
Thank you both!!
 
Old 01-26-2016, 10:39 AM   #15
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Rep: Reputation: 251Reputation: 251Reputation: 251
Quote:
Originally Posted by bassmadrigal View Post
You can just do (assuming 4 cores)

Code:
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
Or you can use the portion that Darth Vader posted that will do it for all available CPUs.

Code:
### CPU scaling governor:
#
# Set the default scaling_governor to be used (such as userspace or ondemand)
# if there is a CPUFreq scaling policy module loaded that supports it:
SCALING_GOVERNOR=ondemand
#
# Try to enable the scaling_governor selected above:
if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ]; then
  if grep -wq "$SCALING_GOVERNOR" /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors ; then
    if [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
      for SYSCPUFILE in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do
        echo "$SCALING_GOVERNOR" > $SYSCPUFILE
      done
    fi
  fi
fi
Interesting, I get:
Code:
-su: echo: write error: Invalid argument
When I try to echo ondemand manually.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature inside computer box and CPU temperature Lola Kews Linux - Hardware 14 11-29-2013 06:22 PM
How can I increase the maximum CPU temperature before forced shutdown? [KIA]aze Linux - Newbie 4 05-25-2007 07:03 AM
CPU temperature Sc0pE Linux - Software 2 05-22-2005 05:10 PM
cpu temperature alaios Linux - Hardware 4 09-21-2004 04:30 PM
CPU Temperature Cubiq Programming 3 04-06-2002 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration