View previous topic :: View next topic |
Author |
Message |
pinopineta n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jun 2006 Posts: 29 Location: Torino
|
Posted: Wed Jun 13, 2012 9:23 am Post subject: cpufreq-info shows different speeds for each user. |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BillWho Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11944701294f68e0ba14919.gif)
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Thu Jun 14, 2012 5:08 am Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pinopineta n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jun 2006 Posts: 29 Location: Torino
|
Posted: Thu Jun 14, 2012 7:19 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BillWho Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11944701294f68e0ba14919.gif)
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Thu Jun 14, 2012 2:24 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nowo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Aug 2011 Posts: 15 Location: Potsdam
|
Posted: Sun Nov 18, 2012 7:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|