LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-13-2015, 01:38 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
heating problem after package compilation


hi
when I compile a package, my laptop temperature and fan speed as well as cpu and ram consumption increases. I think it's pretty normal. but I wonder even after package installation, laptop dose not back to the previous situation and temperature and fan speed is still high until I reboot the system.
my laptop is an Asus k45vm (core 17, 6GB ram, dual intel and nvidia GPU). I have blacklisted nouveau by installing xf86-nouveau-blacklist from "extra" folder.
 
Old 06-13-2015, 02:25 AM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
when I compile a package, my laptop temperature and fan speed as well as cpu and ram consumption increases.
This is normal. You need to provide more information though if you expect to receive any input.
  • What package(s) are you compiling?
  • What are the compile flags?
  • What other conditions are present besides the compilation and the overheating?
  • Are you doing anything else besides what you have mentioned?
  • What other information might be relevant?
 
Old 06-13-2015, 02:33 AM   #3
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
At least on my AMD systems the performance CPU governor is active by default. It can help to put the CPU on the 'on demand' governor. Then it will use the CPU's governors to scale the CPU speed and voltage depending on how heavily it's used. After a compile it will immediately clock down and lower the voltage. The CPU will cool down a lot faster this way.
 
Old 06-13-2015, 02:47 AM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
I compiled my a kernel from source and included the specific processor and cpu frequency scaling set appropriately. Upon reboot I immediately noticed a big difference in my compile times and even a shorter boot time for my system. I also had some over heating prior to using a rebuilt kernel and that went away as well. I am sure though that there is a way to have the cpu freq scaling be adjusted without a kernel recompile while still using the generic Slackware kernel.
 
Old 06-13-2015, 03:08 AM   #5
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by mralk3 View Post
This is normal. You need to provide more information though if you expect to receive any input.
  • What package(s) are you compiling?
  • What are the compile flags?
  • What other conditions are present besides the compilation and the overheating?
  • Are you doing anything else besides what you have mentioned?
  • What other information might be relevant?
this happens for all slackbuilds, not a specific one. normally I don't edit slackbuilds and normally I do nothing during compilation process.
 
Old 06-13-2015, 03:22 AM   #6
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by mralk3 View Post
I compiled my a kernel from source and included the specific processor and cpu frequency scaling set appropriately. Upon reboot I immediately noticed a big difference in my compile times and even a shorter boot time for my system. I also had some over heating prior to using a rebuilt kernel and that went away as well. I am sure though that there is a way to have the cpu freq scaling be adjusted without a kernel recompile while still using the generic Slackware kernel.
You can indeed switch governors. It's explained here:

http://www.linuxquestions.org/questi...em-4175434592/
 
1 members found this post helpful.
Old 06-13-2015, 03:52 AM   #7
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by JackHair View Post
You can indeed switch governors. It's explained here:

http://www.linuxquestions.org/questi...em-4175434592/
sorry, I was a little confused. from that link I find out I must load the governor module by
Code:
modeprob cpufreq_ondemand
and then
Code:
cpufreq-set -g ondemand
is this true?
 
Old 06-13-2015, 04:08 AM   #8
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
and then
Code:
cpufreq-set -g ondemand
that will only set it for the first core

i do
Code:
echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

another thing are the acpi C states, where the cpu drops frequency/voltage and can even turn off cores (in C2)
you can set it in BIOS/UEFI under some power-saving name

PS
i remember seeing something about a bug in kernel 3.18 pstate (the intel ondemand, SandyBridge and newer)
maybe google about it

PPS also you can turn off "turbo boost" to keep the heat in check

Last edited by genss; 06-13-2015 at 04:14 AM.
 
3 members found this post helpful.
Old 06-13-2015, 04:48 PM   #9
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
This is helpful as well: http://docs.slackware.com/howtos:har...quency_scaling

I was trying to remember why I set mine to conservative when I compiled my kernel. I have a laptop, Dell Inspiron N4010.

Quote:
'performance' governor (CONFIG_CPU_FREQ_GOV_PERFORMANCE)
This sets CPU frequency to the maximum available.

'powersave' governor (CONFIG_CPU_FREQ_GOV_POWERSAVE)
This sets CPU frequency to the minimum available.

'userspace' governor for userspace frequency scaling (CONFIG_CPU_FREQ_GOV_USERSPACE)
This allows userspace programs to set the CPU frequency.

'ondemand' cpufreq policy governor (CONFIG_CPU_FREQ_GOV_ONDEMAND)
This governor is recommended for desktops.

'conservative' cpufreq governor (CONFIG_CPU_FREQ_GOV_CONSERVATIVE)
This governor is recommended for laptops/netbooks. Although similar to the 'ondemand' governor, frequency is gracefully increased and decreased rather than jumping to 100 when speed is required.

Last edited by mralk3; 06-13-2015 at 04:54 PM.
 
Old 06-13-2015, 05:08 PM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by travis82 View Post
sorry, I was a little confused. from that link I find out I must load the governor module by
Code:
modeprob cpufreq_ondemand
and then
Code:
cpufreq-set -g ondemand
is this true?
Look for the string CPUFREQ in the file /etc/rc.d/rc.modules and read the following comments. Setting CPUFREQ to "on" will result in the ondemand governor to be used by default. The comments in /etc/rc.d/rc.modules tell you how to change that.
 
Old 06-13-2015, 05:39 PM   #11
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
...but I wonder even after package installation, laptop dose not back to the previous situation and temperature and fan speed is still high until I reboot the system.
Hi. If you run top after you're done building/installing the package, do you see any CPU guzzlers running?
 
Old 06-13-2015, 11:19 PM   #12
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
This is helpful as well: http://docs.slackware.com/howtos:har...quency_scaling

I was trying to remember why I set mine to conservative when I compiled my kernel. I have a laptop, Dell Inspiron N4010.
ok, I checked cpu frequency and scaling by cpufreq-info and xfce4-cpufreq-plugin, only performance and powersave governor are loaded and the default governor is powersave.
I don't think powersave is the reason behind laptop heating as it tends to keep cpu frequency in minimum. anyway I noticed all 8 cores have been configured to have middle frequency (above 2 GHZ) rather than minimum (under 2 GHZ).

Quote:
another thing are the acpi C states, where the cpu drops frequency/voltage and can even turn off cores (in C2)
you can set it in BIOS/UEFI under some power-saving name
I didn't find anything like this in Bios

Quote:
Hi. If you run top after you're done building/installing the package, do you see any CPU guzzlers running?
I have done this already and found nothing abnormal. anyway I will check it again.

Last edited by travis82; 06-13-2015 at 11:27 PM.
 
Old 06-14-2015, 10:58 AM   #13
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by Richard Cranium View Post
Look for the string CPUFREQ in the file /etc/rc.d/rc.modules and read the following comments. Setting CPUFREQ to "on" will result in the ondemand governor to be used by default. The comments in /etc/rc.d/rc.modules tell you how to change that.
Please keep in mind that for Sandybridge+ CPUs you use the new intel_p state driver and this laptop is one of those I think. Those CPU's do not support the ondemand governor and hence it isn't possible to use that one. Powersave is the default one to use if I remember correctly.

edit) This should work correctly with the stock Slackware kernel without any tweaking to kernel-config options needed. Are you not just being impatient? The CPU generates a lot of heat during a compile, it takes time for the system to cool down to normal operation temperatures afterwards. In particular on a very compact laptop that is prone to become very hot.

Last edited by moesasji; 06-14-2015 at 11:03 AM.
 
1 members found this post helpful.
Old 06-14-2015, 05:34 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Just a note, but if you use an Nvidia chipset for graphics, the proprietary driver from Nvidia can have better fan and cooling support for certain graphics cards and laptops that have variable fan speed controls.
 
Old 06-15-2015, 12:51 AM   #15
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by moesasji View Post
Please keep in mind that for Sandybridge+ CPUs you use the new intel_p state driver and this laptop is one of those I think. Those CPU's do not support the ondemand governor and hence it isn't possible to use that one. Powersave is the default one to use if I remember correctly.
Wrong I have this cpu and all governors work all right with cpufreq.

Intel pstate is new driver for Intel CPU's and it is an enhancement and works better.
 
  


Reply



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
[SOLVED] laptop heating problem as it shutdowns after using for 45mints - 1hrt DISCOVER VISHWA Linux - Hardware 10 09-03-2011 10:31 PM
CPU Heating problem! cb951303 Linux - Hardware 2 01-25-2004 04:07 PM
Heating Problem Config Linux - Hardware 2 01-05-2003 03:20 PM

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

All times are GMT -5. The time now is 09:10 AM.

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