SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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:
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
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.
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.
...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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.