LinuxQuestions.org
Visit Jeremy's Blog.
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 05-07-2010, 01:53 AM   #1
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Rep: Reputation: 0
How to disable cpu throttling in slackware 13?


I'm trying to install ATLAS which requires disabling cpu throttling.
Normally one can do it in the BIOS, while there isn't such an option of my dell inspiron 6400. Actually there is a SpeedStep option in the BIOS, however, you cannot get the highest but the lowest performance by disabling it (dell!!!).

After googled a lot, I found in some distros, there is a /usr/bin/cpufreq-selector through which one can disable throttling. But it doesn't exists in slackware.

I known that by appending kernel option "acpi=off", one can disable the whole acpi and thus the throttling control in slackware, but it seems so dirty.

Anyone known a better way to do it?

ps: With a intel T2050 cpu, i didn't find the directory /sys/devices/system/cpu1, but only the /sys/devices/system/cpu0.
Similar case in /etc/acpi.
it seems that slackware treats my cpu as a single core one, while it is not.

Last edited by Laevatain; 05-08-2010 at 12:42 PM. Reason: solved
 
Old 05-07-2010, 02:05 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Ignore, Use info below

Last edited by Daedra; 05-07-2010 at 02:38 AM.
 
Old 05-07-2010, 02:30 AM   #3
nivieru
Member
 
Registered: Feb 2008
Posts: 78

Rep: Reputation: 14
in /etc/rc.d/rc.modules/ :

Quote:
### CPU frequency scaling support
#
# Below, set CPUFREQ to enable CPU frequency scaling to save system power.
#
# To always try to use CPU frequency scaling, set to: on
# To never use CPU frequency scaling, set to: off
# To use it only when the battery module is loaded (this will cause it to
# be used by default with most laptops), set to: battery
#

CPUFREQ=battery
so you should change it to
Quote:
### CPU frequency scaling support
#
# Below, set CPUFREQ to enable CPU frequency scaling to save system power.
#
# To always try to use CPU frequency scaling, set to: on
# To never use CPU frequency scaling, set to: off
# To use it only when the battery module is loaded (this will cause it to
# be used by default with most laptops), set to: battery
#

CPUFREQ=off
 
Old 05-07-2010, 03:15 AM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Whatever ATLAS is, it really has no business requiring that cpu throttling is off.
 
Old 05-07-2010, 06:03 AM   #5
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nivieru View Post
in /etc/rc.d/rc.modules/ :


so you should change it to
thank you, nivieru

but not work... sad.

Code:
bash-3.1# cat /proc/acpi/processor/CPU0/info 
processor id:            0
acpi id:                 0
bus mastering control:   yes
power management:        yes
throttling control:      yes
limit interface:         yes
and for ATLAS config:
Code:
CPU Throttling apparently enabled!
It appears you have cpu throttling enabled, which makes timings
unreliable and an ATLAS install nonsensical.  Aborting.
See ATLAS/INSTALL.txt for further information
xconfig exited with 1
 
Old 05-07-2010, 06:20 AM   #6
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tuxdev View Post
Whatever ATLAS is, it really has no business requiring that cpu throttling is off.
sorry, tuxdev, I have to. ATLAS achieves optimal linear algebra operations by providing machine-specific libraries. It is needed by a lot of mathematical software.

"CPU throttling makes pretty much all timings completely random, and so any ATLAS install will be junk. " --from atlas website
 
Old 05-07-2010, 08:21 AM   #7
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
After you changed the option to "no" did you reboot the machine? Just changing the option in the script probably won't be enough. A reboot then is probably necessary.
 
Old 05-07-2010, 08:29 AM   #8
nivieru
Member
 
Registered: Feb 2008
Posts: 78

Rep: Reputation: 14
well, assuming you didn't reboot, changing the rc.modules script won't stop the cpu scaling since the modules are already loaded.
to stop it you need to manually unload the modules.

the change in the script should work from next boot.

or you could undo the previous change and instead change (just below in the same file) :
Quote:
### 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
to

Quote:
SCALING_GOVERNOR=performance
than execute the script
 
Old 05-07-2010, 12:29 PM   #9
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by damgar View Post
After you changed the option to "no" did you reboot the machine? Just changing the option in the script probably won't be enough. A reboot then is probably necessary.
yes, i have rebooted, not work
 
Old 05-07-2010, 12:30 PM   #10
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nivieru View Post
well, assuming you didn't reboot, changing the rc.modules script won't stop the cpu scaling since the modules are already loaded.
to stop it you need to manually unload the modules.

the change in the script should work from next boot.

or you could undo the previous change and instead change (just below in the same file) :


to



than execute the script
thx man, i'll try it.
 
Old 05-07-2010, 12:58 PM   #11
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nivieru View Post
well, assuming you didn't reboot, changing the rc.modules script won't stop the cpu scaling since the modules are already loaded.
to stop it you need to manually unload the modules.

the change in the script should work from next boot.

or you could undo the previous change and instead change (just below in the same file) :


to



than execute the script
again, not work...
 
Old 05-07-2010, 01:20 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Why not rmmod acpi_cpufreq and blacklist it.
 
Old 05-07-2010, 01:21 PM   #13
nivieru
Member
 
Registered: Feb 2008
Posts: 78

Rep: Reputation: 14
what's the output of
Quote:
cat /proc/cpuinfo | grep Hz
?
 
Old 05-07-2010, 05:15 PM   #14
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Quote:
"CPU throttling makes pretty much all timings completely random, and so any ATLAS install will be junk. " --from atlas website
It depends somewhat on which governor you use, but if you use the race-to-idle governor as recommended by the kernel devs, the timings should not be "junk" at all.
 
Old 05-07-2010, 08:19 PM   #15
Laevatain
LQ Newbie
 
Registered: Jan 2010
Distribution: slackware,opensuse,ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nivieru View Post
what's the output of
?
...

Code:
bash-3.1# cat /proc/cpuinfo | grep Hz
model name	: Genuine Intel(R) CPU           T2050  @ 1.60GHz
cpu MHz		: 800.000
 
  


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
CPU Throttling Problem dnardi212 Ubuntu 3 12-01-2009 06:51 PM
Disable CPU throttling on RHEL 5 ykwok Red Hat 1 04-06-2009 03:16 PM
Configuring CPU Throttling C-Sniper Slackware 5 02-01-2008 03:28 AM
CPU throttling lcaley Linux - Hardware 14 01-06-2007 05:14 AM
CPU throttling & ACPI mjjzf Slackware 8 09-11-2005 12:10 PM

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

All times are GMT -5. The time now is 01:46 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