LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-26-2015, 09:48 AM   #1
WoxDN
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 1
Disable CPU throttling temporarily


I tried several things to turn off CPU throttling an a Debian 2.6 machine (I need it temporarily to install ATLAS):
Code:
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
    [ -f $CPUFREQ ] || continue;
    echo -n ondemand > $CPUFREQ;
done
/usr/bin/cpufreq-selector -g performance
/etc/init.d/cpufrequtils restart
But none of it worked:
Code:
grep -E '^model name|^cpu MHz' /proc/cpuinfo

model name	: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
cpu MHz		: 1200.000
model name	: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
cpu MHz		: 1200.000
model name	: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
cpu MHz		: 1200.000
model name	: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
cpu MHz		: 1200.000
I also find posts which mention disabling ondemand or kondemand with update-rc, but it can't find any ondemand or kondemand init scripts. Any suggestions on how to disable kondemand (I have kondemand/0, kondemand/1, etc. running)? Or other solutions to temporarily disable throttling?
 
Old 08-26-2015, 04:34 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
List available governors
Code:
cpufreq-info -g
ondemand userspace performance
Disable throttling

Code:
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
  do
    [ -f $CPUFREQ ] || continue
    echo -n performance > $CPUFREQ
  done
 
Old 08-27-2015, 03:58 AM   #3
WoxDN
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 1
Yes, sorry, that was what I tried but didn't work (performance instead of ondemand in original post).
 
Old 08-27-2015, 07:26 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I can't find the code where I did this before, however I recall that I explored the governors too and that didn't work. What did work was setting the CPU speed exactly to what I wanted it to be and also setting the max and min values to the same single desired frequency.
 
Old 08-27-2015, 07:32 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Why not just go to your BIOS/UEFI and disable frequency scaling (throttling is a totally different thing)?
 
Old 08-27-2015, 12:09 PM   #6
WoxDN
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 1
For the BIOS option I need to reboot the PC and I cannot do that. As for forcing CPU speeds, do you remember where this can be done? The file "scaling_setspeed" contains "<unsupported>" and the other frequency related files have read-only permissions by default (which probably means I shouldn't change them).
 
Old 08-27-2015, 02:11 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i once tried this, long time ago, and iirc the "userspace" governor was playing a key role.

maybe it went sth like this:
setting the "userspace" governor allows the user to change between ondemand/performance?
 
Old 08-28-2015, 03:37 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by ondoho View Post
i once tried this, long time ago, and iirc the "userspace" governor was playing a key role.

maybe it went sth like this:
setting the "userspace" governor allows the user to change between ondemand/performance?
The userspace governor is used when you use additional programs that set the frequency, it is not needed to choose between other governors.
 
  


Reply

Tags
debian, throttling



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
How to stop cpu throttling loyalnepali Linux - Newbie 3 05-24-2013 08:32 PM
[SOLVED] How to disable cpu throttling in slackware 13? Laevatain Slackware 20 05-08-2010 12:41 PM
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
CPU throttling lcaley Linux - Hardware 14 01-06-2007 05:14 AM

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

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