Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpufreq-info shows different speeds for each user.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pinopineta
n00b
n00b


Joined: 07 Jun 2006
Posts: 29
Location: Torino

PostPosted: Wed Jun 13, 2012 9:23 am    Post subject: cpufreq-info shows different speeds for each user. Reply with quote

Hi all.

I've loaded 2 modules: cpufreq_{ondemand,powersave}.

If i run cpufreq-info from root it shows me 2.00 GHz for each proc,
if I run from my user it shows me 800MHz.

The governor was set by root to powersave.

Why I've different results from each user?
_________________
pinopineta@hotmail.com

'cause nothin' lasts forever
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Jun 14, 2012 5:08 am    Post subject: Reply with quote

pinopineta

As root set the governors
Code:
for p in $(sed -n '/processor/p' /proc/cpuinfo|cut -d: -f2); do cpufreq-set -c $p -g ondemand;done

then
Code:
cpufreq-info|grep "current CPU"
as user and root
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
pinopineta
n00b
n00b


Joined: 07 Jun 2006
Posts: 29
Location: Torino

PostPosted: Thu Jun 14, 2012 7:19 am    Post subject: Reply with quote

The governor is just ondemand, is the only loaded at boot time as kernel module.

cpufreq-info do not have the string "Current CPU" because is traduced in my own language.
_________________
pinopineta@hotmail.com

'cause nothin' lasts forever
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Jun 14, 2012 2:24 pm    Post subject: Reply with quote

pinopineta,

Did you set the governor START_OPTS in /etc/conf.d/cpufrequtils :?:

You can change the grep string to whatever it is in your language.

This is what the output should look like:
Code:
root@gentoo-ws490 portage # cpufreq-info|grep "current CPU"
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  current CPU frequency is 2.00 GHz (asserted by call to hardware).

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
nowo
n00b
n00b


Joined: 02 Aug 2011
Posts: 15
Location: Potsdam

PostPosted: Sun Nov 18, 2012 7:12 pm    Post subject: Reply with quote

Don't know, if this solved the problem for pinopineta, but it doesn't for me.
START_OPTS is set to "--governor ondemand", which is also the default governor in the kernel settings.

cpufreq-info run as my standard user gives
Code:

...
  current policy: frequency should be within 600 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 600 MHz.


and run as root
Code:

...
  current policy: frequency should be within 600 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz (asserted by call to hardware).

(all that for the only CPU I have)

What is the difference between asserted by call to hardware and the absence of that statement?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum