LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 10-29-2012, 05:55 AM   #1
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 215

Rep: Reputation: 22
CPU governor problem


Hi All. I am running Slackware64 14.0 with kernel 3.4.15 built to the testing config with the following changes:

1) cpu family is core2 and later
2) latency is low latency desktop
3) mtrr_config=y
4) cpu governor ondemand is built into kernel (as is userspace governor).

As root I did:

Code:
cpufreq-set -g ondemand
The problem is that cpufreq-info gives governor as userspace.

Can any one tell me if there are specific kernel config options that I should be checking to eliminate config issues? I can't really figure out what else ths would be.
 
Old 10-29-2012, 06:37 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
The command is:
Code:
cpufreq-set --cpu 0 --governor ondemand
cpufreq-set --cpu 1 --governor ondemand
you can use -c instead of --cpu and -g instead of --governor.

Howto is here: http://docs.slackware.com/howtos:har...quency_scaling

Markus
 
1 members found this post helpful.
Old 10-29-2012, 06:47 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
If you want the ondemand governor being chosen by default you also can change that in the kernel config: Power management and ACPI options -> CPU Frequency scaling -> Default CPUFreq governor
 
1 members found this post helpful.
Old 10-29-2012, 07:14 AM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 86

Rep: Reputation: 37
Quote:
Originally Posted by kristizz View Post
As root I did:

Code:
cpufreq-set -g ondemand
The problem is that cpufreq-info gives governor as userspace.
You can load the governor module before 'cpufreq-set' call because it is compiled as module for generic and huge stock kernels (CONFIG_CPU_FREQ_GOV_ONDEMAND=m)
Code:
# modprobe cpufreq_ondemand
 
Old 10-29-2012, 07:32 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Quote:
Originally Posted by bormant View Post
You can load the governor module before 'cpufreq-set' call because it is compiled as module for generic and huge stock kernels (CONFIG_CPU_FREQ_GOV_ONDEMAND=m)
Code:
# modprobe cpufreq_ondemand
This will load the module into the kernel, but will not change the governor in use.
 
Old 10-29-2012, 08:09 AM   #6
bormant
Member
 
Registered: Jan 2008
Posts: 86

Rep: Reputation: 37
Quote:
Originally Posted by TobiSGD View Post
This will load the module into the kernel, but will not change the governor in use.
Yes, of course, but the starter of this topic already knows how to change it if the governor module has been loaded.
 
Old 10-29-2012, 08:25 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
The module for the governor should be loaded automatically when the governor is set.

Only the modules from "Power supply class support" in "device-drivers" are only loaded automatically on laptops. The appropriate module from this class has to be loaded in order to make cpufrequency-scaling work. But since the cpufreq-info command is working on the OP's computer, one can see that the module is loaded.

Markus
 
Old 10-29-2012, 08:53 AM   #8
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 215

Original Poster
Rep: Reputation: 22
Thanks Both,

Next time I'll RTFM, I completely forgot that the last time I set scaling with cpufreq-set -g ondemand I was using a single core athlon. I now have an i7
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeing CPU freq as adjusted by governor (from command line) hydraMax Linux - Software 8 03-08-2012 12:40 PM
[SOLVED] Using the "powersave" governor on battery and "ondemand" governor on AC power piratesmack Slackware 5 01-21-2010 12:54 PM
which C-state governor is in use kashyapa Linux - General 0 11-05-2009 06:55 PM
cpu speed governor and wireless queries kanwar_rajan Linux - Laptop and Netbook 3 02-28-2007 09:51 PM
lol... what a governor... halo14 General 5 01-16-2005 10:24 PM


All times are GMT -5. The time now is 08:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration