FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-10-2011, 02:49 PM
Helmut Jarausch
 
Default Check CPU for throttling

On 05/10/2011 04:42:52 PM, Sebastian Be▀ler wrote:
> Am 10.05.2011 16:34, schrieb Helmut Jarausch:
>
> > Am I missing something?
>
> Look at 'grep MHz /proc/cpuinfo' to see if your CPU is throttling
> correctly.

And that tells me that the CPU is running at full speed (3 GHz in my
case) although all CPUs are idle.

Helmut.
 
Old 05-10-2011, 02:57 PM
Sebastian Be▀ler
 
Default Check CPU for throttling

Am 10.05.2011 16:49, schrieb Helmut Jarausch:

> And that tells me that the CPU is running at full speed (3 GHz in my
> case) although all CPUs are idle.

What does
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
and
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
say?

Greetings
Sebastian
 
Old 05-10-2011, 02:57 PM
Sebastian Be▀ler
 
Default Check CPU for throttling

Am 10.05.2011 16:49, schrieb Helmut Jarausch:

> And that tells me that the CPU is running at full speed (3 GHz in my
> case) although all CPUs are idle.

What does
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
and
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
say?

Greetings
Sebastian
 
Old 05-10-2011, 03:03 PM
Helmut Jarausch
 
Default Check CPU for throttling

On 05/10/2011 04:57:05 PM, Sebastian Be▀ler wrote:
> Am 10.05.2011 16:49, schrieb Helmut Jarausch:
>
> > And that tells me that the CPU is running at full speed (3 GHz in
> my
>
> > case) although all CPUs are idle.
>
> What does
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
userspace
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/
> scaling_available_frequencies
3000000 2300000 1800000 800000

> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> say?
userspace ondemand performance

Do I have to disable the userspace governor?

Thanks,
Helmut.
 
Old 05-10-2011, 03:03 PM
Helmut Jarausch
 
Default Check CPU for throttling

On 05/10/2011 04:57:05 PM, Sebastian Be▀ler wrote:
> Am 10.05.2011 16:49, schrieb Helmut Jarausch:
>
> > And that tells me that the CPU is running at full speed (3 GHz in
> my
>
> > case) although all CPUs are idle.
>
> What does
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
userspace
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/
> scaling_available_frequencies
3000000 2300000 1800000 800000

> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> say?
userspace ondemand performance

Do I have to disable the userspace governor?

Thanks,
Helmut.
 
Old 05-10-2011, 03:13 PM
Sebastian Be▀ler
 
Default Check CPU for throttling

Am 10.05.2011 17:03, schrieb Helmut Jarausch:

> Do I have to disable the userspace governor?

Yes you have to.
The userspace governor needs a external programm to set the cpu speed.
Set it to ondemand should do the trick because ondemand lets the kernel
choose the right cpu speed.

Greetings
Sebastian
 
Old 05-10-2011, 03:13 PM
Sebastian Be▀ler
 
Default Check CPU for throttling

Am 10.05.2011 17:03, schrieb Helmut Jarausch:

> Do I have to disable the userspace governor?

Yes you have to.
The userspace governor needs a external programm to set the cpu speed.
Set it to ondemand should do the trick because ondemand lets the kernel
choose the right cpu speed.

Greetings
Sebastian
 
Old 05-10-2011, 03:14 PM
Helmut Jarausch
 
Default Check CPU for throttling

On 05/10/2011 04:57:05 PM, Sebastian Be▀ler wrote:
> Am 10.05.2011 16:49, schrieb Helmut Jarausch:
>
> > And that tells me that the CPU is running at full speed (3 GHz in
> my
>
> > case) although all CPUs are idle.
>
> What does
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/
> scaling_available_frequencies
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> say?
>

I have tried
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/
scaling_governor

and now I see an effect but not as good as powernowd
e.g. I have stopped processed temporarily so that the CPU usage fell
down to 1% (max). Still after waiting some minutes, only one core
scaled down to 800 MHz and a a second one to 2.3 GHz.

At least, powernowd it much more "agressive".
If some cores are idle for a few seconds it scales these down stepwise
to the lowest frequency.

Helmut.
 
Old 05-10-2011, 03:14 PM
Helmut Jarausch
 
Default Check CPU for throttling

On 05/10/2011 04:57:05 PM, Sebastian Be▀ler wrote:
> Am 10.05.2011 16:49, schrieb Helmut Jarausch:
>
> > And that tells me that the CPU is running at full speed (3 GHz in
> my
>
> > case) although all CPUs are idle.
>
> What does
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/
> scaling_available_frequencies
> and
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> say?
>

I have tried
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/
scaling_governor

and now I see an effect but not as good as powernowd
e.g. I have stopped processed temporarily so that the CPU usage fell
down to 1% (max). Still after waiting some minutes, only one core
scaled down to 800 MHz and a a second one to 2.3 GHz.

At least, powernowd it much more "agressive".
If some cores are idle for a few seconds it scales these down stepwise
to the lowest frequency.

Helmut.
 
Old 05-10-2011, 03:24 PM
Volker Armin Hemmann
 
Default Check CPU for throttling

On Tuesday 10 May 2011 16:34:53 Helmut Jarausch wrote:
> On 05/10/2011 02:44:26 PM, Volker Armin Hemmann wrote:
> > On Tuesday 10 May 2011 08:27:42 Helmut Jarausch wrote:
> > > On 05/10/2011 02:36:33 AM, Volker Armin Hemmann wrote:
> > > > On Sunday 08 May 2011 12:59:57 Helmut Jarausch wrote:
> > > > > On 05/08/2011 11:21:06 AM, Florian Philipp wrote:
> > > > >
> > > > > sys-process/atop shows current CPU freqency
> > > > > I use it to check the effect of sys-power/powernowd
> > > >
> > > > why are you using powernowd?
> > >
> > > Why not? It's a daemon which reduces the CPU speed under certain
> > > circumstances.
> >
> > just like the kernel. Only the kernel does it better.
> >
> > > This not only saves power but it reduce the noise produced by the
> >
> > fan.
> >
> > fanspeed - if you have a pwm fan.
> >
> > Seriously, powernowd is so not needed. Just built a kernel with
> > ondemand cpu
> > governor. You are done.
>
> Hi,
> I've just tried that, but it doesn't work (at least, as the output of
> atop is concerned)
>
> dmesg shows
> cpuidle: using governor ladder
> cpuidle: using governor menu

that is a different can of worms
>
> Am I missing something?

yes:

*- 'ondemand' cpufreq policy governor
 

Thread Tools




All times are GMT. The time now is 10:02 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org