public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Check CPU for throttling
@ 2011-05-08  9:21 Florian Philipp
  2011-05-08 10:59 ` Helmut Jarausch
  2011-05-08 11:01 ` Thanasis
  0 siblings, 2 replies; 24+ messages in thread
From: Florian Philipp @ 2011-05-08  9:21 UTC (permalink / raw
  To: Gentoo User List

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

Hi list!

Does someone know a tool that measures CPU performance and gives
live-updates on it?

My problem is as follows:
I have a desktop PC where the case is too small to include the custom
CPU cooler with fan. However, because the power supply sits directly
above the CPU and the CPU cooler is reasonably effective, I've simply
removed the fan from the CPU cooler and let the fan from the power
supply act as the CPU fan. This works surprisingly well and usually, the
CPU runs at 50°C.

During tests with app-benchmarks/cpuburn, the CPU got as hot as 74°C.
According to lm_sensors, this is the threshold for "critical"
temperature (though I find it a bit low - I've seen CPUs running as high
as 90°C). Therefore I suspect that the CPU gets throttled but I cannot
verify this with cpuburn because this tool does not output performance
figures.

Because of that I'm in a need for a similar tool that also outputs FIPS,
iterations per second or some other figure while running so that I can
monitor it for any performance drops. I guess I could just use mencoder
and watch framerates or I could code something myself but maybe someone
knows a better tool for this.

Thanks in advance!
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-08  9:21 [gentoo-user] Check CPU for throttling Florian Philipp
@ 2011-05-08 10:59 ` Helmut Jarausch
  2011-05-10  0:36   ` Volker Armin Hemmann
  2011-05-08 11:01 ` Thanasis
  1 sibling, 1 reply; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-08 10:59 UTC (permalink / raw
  To: gentoo-user

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

Helmut.

> Hi list!
> 
> Does someone know a tool that measures CPU performance and gives
> live-updates on it?
> 
> My problem is as follows:
> I have a desktop PC where the case is too small to include the custom
> CPU cooler with fan. However, because the power supply sits directly
> above the CPU and the CPU cooler is reasonably effective, I've simply
> removed the fan from the CPU cooler and let the fan from the power
> supply act as the CPU fan. This works surprisingly well and usually,
> the
> CPU runs at 50°C.
> 
> During tests with app-benchmarks/cpuburn, the CPU got as hot as 74°C.
> According to lm_sensors, this is the threshold for "critical"
> temperature (though I find it a bit low - I've seen CPUs running as
> high
> as 90°C). Therefore I suspect that the CPU gets throttled but I 
> cannot
> verify this with cpuburn because this tool does not output 
> performance
> figures.
> 
> Because of that I'm in a need for a similar tool that also outputs
> FIPS,
> iterations per second or some other figure while running so that I 
> can
> monitor it for any performance drops. I guess I could just use
> mencoder
> and watch framerates or I could code something myself but maybe
> someone
> knows a better tool for this.
> 
> Thanks in advance!
> Florian Philipp
> 
> 



-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-08  9:21 [gentoo-user] Check CPU for throttling Florian Philipp
  2011-05-08 10:59 ` Helmut Jarausch
@ 2011-05-08 11:01 ` Thanasis
  2011-05-08 11:19   ` Florian Philipp
  1 sibling, 1 reply; 24+ messages in thread
From: Thanasis @ 2011-05-08 11:01 UTC (permalink / raw
  To: gentoo-user; +Cc: Florian Philipp

Have you considered installing a low profile fan like
Delta EFB0612MA 60x60x10[mm] ?



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-08 11:01 ` Thanasis
@ 2011-05-08 11:19   ` Florian Philipp
  0 siblings, 0 replies; 24+ messages in thread
From: Florian Philipp @ 2011-05-08 11:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

Am 08.05.2011 13:01, schrieb Thanasis:
> Have you considered installing a low profile fan like
> Delta EFB0612MA 60x60x10[mm] ?
> 

I did. But I still had the current cooler available. I don't want to
spend money on a new cooler if it is not necessary. Since I know even
Pentium 4 cooled in that way, it was worth a try.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-08 10:59 ` Helmut Jarausch
@ 2011-05-10  0:36   ` Volker Armin Hemmann
  2011-05-10  6:27     ` Helmut Jarausch
  0 siblings, 1 reply; 24+ messages in thread
From: Volker Armin Hemmann @ 2011-05-10  0:36 UTC (permalink / raw
  To: gentoo-user

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?



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10  0:36   ` Volker Armin Hemmann
@ 2011-05-10  6:27     ` Helmut Jarausch
  2011-05-10 12:44       ` Volker Armin Hemmann
  0 siblings, 1 reply; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-10  6:27 UTC (permalink / raw
  To: gentoo-user

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.
This not only saves power but it reduce the noise produced by the fan.

Helmut.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10  6:27     ` Helmut Jarausch
@ 2011-05-10 12:44       ` Volker Armin Hemmann
  2011-05-10 14:34         ` Helmut Jarausch
  0 siblings, 1 reply; 24+ messages in thread
From: Volker Armin Hemmann @ 2011-05-10 12:44 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 12:44       ` Volker Armin Hemmann
@ 2011-05-10 14:34         ` Helmut Jarausch
  2011-05-10 14:42           ` Sebastian Beßler
  2011-05-10 15:24           ` [gentoo-user] " Volker Armin Hemmann
  0 siblings, 2 replies; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-10 14:34 UTC (permalink / raw
  To: gentoo-user

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

Am I missing something?

Thanks for a hint,
Helmut.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:34         ` Helmut Jarausch
@ 2011-05-10 14:42           ` Sebastian Beßler
  2011-05-10 14:49             ` Helmut Jarausch
  2011-05-10 15:24           ` [gentoo-user] " Volker Armin Hemmann
  1 sibling, 1 reply; 24+ messages in thread
From: Sebastian Beßler @ 2011-05-10 14:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

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.





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:42           ` Sebastian Beßler
@ 2011-05-10 14:49             ` Helmut Jarausch
  2011-05-10 14:57               ` Sebastian Beßler
  0 siblings, 1 reply; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-10 14:49 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:49             ` Helmut Jarausch
@ 2011-05-10 14:57               ` Sebastian Beßler
  2011-05-10 15:03                 ` Helmut Jarausch
  2011-05-10 15:14                 ` Helmut Jarausch
  0 siblings, 2 replies; 24+ messages in thread
From: Sebastian Beßler @ 2011-05-10 14:57 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:57               ` Sebastian Beßler
@ 2011-05-10 15:03                 ` Helmut Jarausch
  2011-05-10 15:13                   ` Sebastian Beßler
  2011-05-10 15:14                 ` Helmut Jarausch
  1 sibling, 1 reply; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-10 15:03 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 15:03                 ` Helmut Jarausch
@ 2011-05-10 15:13                   ` Sebastian Beßler
  0 siblings, 0 replies; 24+ messages in thread
From: Sebastian Beßler @ 2011-05-10 15:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:57               ` Sebastian Beßler
  2011-05-10 15:03                 ` Helmut Jarausch
@ 2011-05-10 15:14                 ` Helmut Jarausch
  2011-05-10 15:36                   ` Alan McKinnon
  1 sibling, 1 reply; 24+ messages in thread
From: Helmut Jarausch @ 2011-05-10 15:14 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 14:34         ` Helmut Jarausch
  2011-05-10 14:42           ` Sebastian Beßler
@ 2011-05-10 15:24           ` Volker Armin Hemmann
  1 sibling, 0 replies; 24+ messages in thread
From: Volker Armin Hemmann @ 2011-05-10 15:24 UTC (permalink / raw
  To: gentoo-user

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   




^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 15:14                 ` Helmut Jarausch
@ 2011-05-10 15:36                   ` Alan McKinnon
  2011-05-10 15:54                     ` Bill Longman
  2011-05-10 16:34                     ` [gentoo-user] " James
  0 siblings, 2 replies; 24+ messages in thread
From: Alan McKinnon @ 2011-05-10 15:36 UTC (permalink / raw
  To: gentoo-user

Apparently, though unproven, at 17:14 on Tuesday 10 May 2011, Helmut Jarausch 
did opine thusly:

> 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.

The authors of powertop (employed by Intel) researched this topic extensively 
and wrote up their findings on the project website and in the package docs.

In summary, it goes something like this:

Userspace cpu freq daemons are a waste of time, it takes excessive energy to 
step wise change performance up and down. What you really want is for the cpu 
to run full speed when it has something to do, get it done as quickly as 
possible then rapidly fall back to the lowest idle speed once the job is 
complete. That is how the ondemand governor is written.

I suppose this step-down-through-the-levels nonsense comes from flawed 
comparisons with combustion engines and turbines - it makes sense to ramp 
these up and down. It does not make sense to do this with a cpu as a cpu is a 
completely different beast altogether. It is either doing something or 
nothing; actually it never does nothing - it always does something even if 
that is just the no-op instruction in a loop. And cpus do not "accelerate" 
like engines and use almost no additional power to go from min to max speed. 
So when something useful comes along to do, just switch over to max speed and 
get the job done.

Really, this powernowd stuff looks neat on paper but the actual numbers say 
otherwise. Just enable ondemand, disable everything else, and et the kernel 
get on with doing what it does best:

the kernel should never try and be clever and second guess you, that way lies 
madness. Similarly, you should never try and be clever and second guess the 
kernel. That way also lies madness.


-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Check CPU for throttling
  2011-05-10 15:36                   ` Alan McKinnon
@ 2011-05-10 15:54                     ` Bill Longman
  2011-05-10 16:34                     ` [gentoo-user] " James
  1 sibling, 0 replies; 24+ messages in thread
From: Bill Longman @ 2011-05-10 15:54 UTC (permalink / raw
  To: gentoo-user

On 05/10/2011 08:36 AM, Alan McKinnon wrote:
> I suppose this step-down-through-the-levels nonsense comes from flawed 
> comparisons with combustion engines and turbines - it makes sense to ramp 
> these up and down. It does not make sense to do this with a cpu as a cpu is a 
> completely different beast altogether. It is either doing something or 
> nothing; actually it never does nothing - it always does something even if 
> that is just the no-op instruction in a loop. And cpus do not "accelerate" 
> like engines and use almost no additional power to go from min to max speed. 
> So when something useful comes along to do, just switch over to max speed and 
> get the job done.

That's not exactly true. It does take time, aka latency, to move CPUs
out of sleep states. Sleep states are partially related to this because
once the load on a CPU goes to zero, the governor will, depending on
your configuration, put the CPU into a sleep state to conserve power.
Waking that sleeping CPU from its deepest sleep state takes an enormous
amount of time, in terms of CPU time, so it sometimes behooves the
scheduler to be a bit less dogmatic about putting CPUs to bed while
there's still work to do.




^ permalink raw reply	[flat|nested] 24+ messages in thread

* [gentoo-user] Re: Check CPU for throttling
  2011-05-10 15:36                   ` Alan McKinnon
  2011-05-10 15:54                     ` Bill Longman
@ 2011-05-10 16:34                     ` James
  2011-05-10 16:38                       ` Bill Longman
  2011-05-10 20:18                       ` Alan McKinnon
  1 sibling, 2 replies; 24+ messages in thread
From: James @ 2011-05-10 16:34 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan.mckinnon <at> gmail.com> writes:


> otherwise. Just enable ondemand, disable everything else, and et the kernel 
> get on with doing what it does best:

So this is what you are saying?


 [*] CPU Frequency scaling                                         │ │   
  │ │    [*]   Enable CPUfreq debugging                            │ │   
  │ │    <*>   CPU frequency translation statistics                │ │   
  │ │    [ ]     CPU frequency translation statistics details      │ │   
  │ │          Default CPUFreq governor (performance)  --->        │ │   
  │ │    -*-   'performance' governor                              │ │   
  │ │    < >   'powersave' governor                                │ │   
  │ │    < >   'userspace' governor for userspace frequency scaling│ │   
  │ │    <*>   'ondemand' cpufreq policy governor                  │ │   
  │ │    < >   'conservative' cpufreq governor                     │ │   
  │ │          *** CPUFreq processor drivers ***                   │ │   
  │ │    < >   Processor Clocking Control interface driver         │ │   
  │ │    <*>   ACPI Processor P-States driver                      │ │   
  │ │    < >   AMD Opteron/Athlon64 PowerNow!                      │ │   
  │ │    < >   Intel Enhanced SpeedStep (deprecated)               │ │   
  │ │    < >   Intel Pentium 4 clock modulation            




^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 16:34                     ` [gentoo-user] " James
@ 2011-05-10 16:38                       ` Bill Longman
  2011-05-10 18:05                         ` Mark Knecht
  2011-05-10 20:18                       ` Alan McKinnon
  1 sibling, 1 reply; 24+ messages in thread
From: Bill Longman @ 2011-05-10 16:38 UTC (permalink / raw
  To: gentoo-user

On 05/10/2011 09:34 AM, James wrote:
> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
> 
> 
>> otherwise. Just enable ondemand, disable everything else, and et the kernel 
>> get on with doing what it does best:
> 
> So this is what you are saying?
> 
> 
>  [*] CPU Frequency scaling                                         │ │   
>   │ │    [*]   Enable CPUfreq debugging                            │ │   
>   │ │    <*>   CPU frequency translation statistics                │ │   
>   │ │    [ ]     CPU frequency translation statistics details      │ │   
>   │ │          Default CPUFreq governor (performance)  --->        │ │   
>   │ │    -*-   'performance' governor                              │ │   
>   │ │    < >   'powersave' governor                                │ │   
>   │ │    < >   'userspace' governor for userspace frequency scaling│ │   
>   │ │    <*>   'ondemand' cpufreq policy governor                  │ │   
>   │ │    < >   'conservative' cpufreq governor                     │ │   
>   │ │          *** CPUFreq processor drivers ***                   │ │   
>   │ │    < >   Processor Clocking Control interface driver         │ │   
>   │ │    <*>   ACPI Processor P-States driver                      │ │   
>   │ │    < >   AMD Opteron/Athlon64 PowerNow!                      │ │   
>   │ │    < >   Intel Enhanced SpeedStep (deprecated)               │ │   
>   │ │    < >   Intel Pentium 4 clock modulation            
> 
> 

Yes but no. Yes, those are the correct choices, but the default governor
should be ondemand.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 16:38                       ` Bill Longman
@ 2011-05-10 18:05                         ` Mark Knecht
  2011-05-10 20:30                           ` Mick
  0 siblings, 1 reply; 24+ messages in thread
From: Mark Knecht @ 2011-05-10 18:05 UTC (permalink / raw
  To: gentoo-user

On Tue, May 10, 2011 at 9:38 AM, Bill Longman <bill.longman@gmail.com> wrote:
> On 05/10/2011 09:34 AM, James wrote:
>> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
>>
>>
>>> otherwise. Just enable ondemand, disable everything else, and et the kernel
>>> get on with doing what it does best:
>>
>> So this is what you are saying?
>>
>>
>>  [*] CPU Frequency scaling                                         │ │
>>   │ │    [*]   Enable CPUfreq debugging                            │ │
>>   │ │    <*>   CPU frequency translation statistics                │ │
>>   │ │    [ ]     CPU frequency translation statistics details      │ │
>>   │ │          Default CPUFreq governor (performance)  --->        │ │
>>   │ │    -*-   'performance' governor                              │ │
>>   │ │    < >   'powersave' governor                                │ │
>>   │ │    < >   'userspace' governor for userspace frequency scaling│ │
>>   │ │    <*>   'ondemand' cpufreq policy governor                  │ │
>>   │ │    < >   'conservative' cpufreq governor                     │ │
>>   │ │          *** CPUFreq processor drivers ***                   │ │
>>   │ │    < >   Processor Clocking Control interface driver         │ │
>>   │ │    <*>   ACPI Processor P-States driver                      │ │
>>   │ │    < >   AMD Opteron/Athlon64 PowerNow!                      │ │
>>   │ │    < >   Intel Enhanced SpeedStep (deprecated)               │ │
>>   │ │    < >   Intel Pentium 4 clock modulation
>>
>>
>
> Yes but no. Yes, those are the correct choices, but the default governor
> should be ondemand.

Or in the case of the OP who is brave enough (or silly enough?) to
risk the long term reliability of his CPU running it with no fan,
possibly choose powersave with a specific low clock rate as the
default and then switch to either ondemand or conservative manually
when he needs more performance. In a machine such as he's playing with
I wonder if he really wants ondemand (jumps to max and then slows down
over time) vs conservative which more slowly ramps up the clock rate
if the job at hand takes more time.

It's all a trade off of performance vs power & heat.

On my 12 thread server I've played with these two and frankly don't
see a lot of difference doing any large job. They are both a bot
slower than running performance, but I save a lot of power (and over
time money) using them so I'm happy.

- Mark

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 16:34                     ` [gentoo-user] " James
  2011-05-10 16:38                       ` Bill Longman
@ 2011-05-10 20:18                       ` Alan McKinnon
  1 sibling, 0 replies; 24+ messages in thread
From: Alan McKinnon @ 2011-05-10 20:18 UTC (permalink / raw
  To: gentoo-user

Apparently, though unproven, at 18:34 on Tuesday 10 May 2011, James did opine 
thusly:

> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
> > otherwise. Just enable ondemand, disable everything else, and et the
> > kernel
> 
> > get on with doing what it does best:
> So this is what you are saying?
> 
> 
>  [*] CPU Frequency scaling                                         │ │
>   │ │    [*]   Enable CPUfreq debugging                            │ │
>   │ │    <*>   CPU frequency translation statistics                │ │
>   │ │    [ ]     CPU frequency translation statistics details      │ │
>   │ │          Default CPUFreq governor (performance)  --->        │ │
>   │ │    -*-   'performance' governor                              │ │
>   │ │    < >   'powersave' governor                                │ │
>   │ │    < >   'userspace' governor for userspace frequency scaling│ │
>   │ │    <*>   'ondemand' cpufreq policy governor                  │ │
>   │ │    < >   'conservative' cpufreq governor                     │ │
>   │ │          *** CPUFreq processor drivers ***                   │ │
>   │ │    < >   Processor Clocking Control interface driver         │ │
>   │ │    <*>   ACPI Processor P-States driver                      │ │
>   │ │    < >   AMD Opteron/Athlon64 PowerNow!                      │ │
>   │ │    < >   Intel Enhanced SpeedStep (deprecated)               │ │
>   │ │    < >   Intel Pentium 4 clock modulation

Mostly.

The performance governor cannot be disabled (-*-) so it is always selected, 
and the default should be set to ondemand.

The above is for personal workstations, laptops etc. For servers requiring 
decent throughput and where power and cooling is not an issue, one would use a 
different approach of course.

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 18:05                         ` Mark Knecht
@ 2011-05-10 20:30                           ` Mick
  2011-05-10 20:36                             ` Bill Longman
  0 siblings, 1 reply; 24+ messages in thread
From: Mick @ 2011-05-10 20:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 4877 bytes --]

On Tuesday 10 May 2011 19:05:08 Mark Knecht wrote:
> On Tue, May 10, 2011 at 9:38 AM, Bill Longman <bill.longman@gmail.com> 
wrote:
> > On 05/10/2011 09:34 AM, James wrote:
> >> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
> >>> otherwise. Just enable ondemand, disable everything else, and et the
> >>> kernel
> >> 
> >>> get on with doing what it does best:
> >> So this is what you are saying?
> >> 
> >> 
> >>  [*] CPU Frequency scaling                                         │ │
> >>   │ │    [*]   Enable CPUfreq debugging                            │ │
> >>   │ │    <*>   CPU frequency translation statistics                │ │
> >>   │ │    [ ]     CPU frequency translation statistics details      │ │
> >>   │ │          Default CPUFreq governor (performance)  --->        │ │
> >>   │ │    -*-   'performance' governor                              │ │
> >>   │ │    < >   'powersave' governor                                │ │
> >>   │ │    < >   'userspace' governor for userspace frequency scaling│ │
> >>   │ │    <*>   'ondemand' cpufreq policy governor                  │ │
> >>   │ │    < >   'conservative' cpufreq governor                     │ │
> >>   │ │          *** CPUFreq processor drivers ***                   │ │
> >>   │ │    < >   Processor Clocking Control interface driver         │ │
> >>   │ │    <*>   ACPI Processor P-States driver                      │ │
> >>   │ │    < >   AMD Opteron/Athlon64 PowerNow!                      │ │
> >>   │ │    < >   Intel Enhanced SpeedStep (deprecated)               │ │
> >>   │ │    < >   Intel Pentium 4 clock modulation
> > 
> > Yes but no. Yes, those are the correct choices, but the default governor
> > should be ondemand.
> 
> Or in the case of the OP who is brave enough (or silly enough?) to
> risk the long term reliability of his CPU running it with no fan,
> possibly choose powersave with a specific low clock rate as the
> default and then switch to either ondemand or conservative manually
> when he needs more performance. In a machine such as he's playing with
> I wonder if he really wants ondemand (jumps to max and then slows down
> over time) vs conservative which more slowly ramps up the clock rate
> if the job at hand takes more time.
> 
> It's all a trade off of performance vs power & heat.
> 
> On my 12 thread server I've played with these two and frankly don't
> see a lot of difference doing any large job. They are both a bot
> slower than running performance, but I save a lot of power (and over
> time money) using them so I'm happy.

I just checked on a Pentium 4 32bit box and I couldn't find any declaration 
about cpufreq under /sys/devices/system/cpu/cpu0/

I have enabled ondemand since I first built a kernel for that machine, but it 
seems to have been pegged at 3.4GHz even when the plasma thingy shows minimum 
CPU load.

grep MHz /proc/cpuinfo
cpu MHz		: 3401.054
cpu MHz		: 3401.054

ls -la /sys/devices/system/cpu/cpu0/
total 0
drwxr-xr-x 6 root root 0 May 10 18:51 .
drwxr-xr-x 6 root root 0 May 10 18:51 ..
drwxr-xr-x 4 root root 0 May 10 21:04 cache
drwxr-xr-x 2 root root 0 May 10 21:04 microcode
drwxr-xr-x 2 root root 0 May 10 21:04 thermal_throttle
drwxr-xr-x 2 root root 0 May 10 21:04 topology

cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 3
model name	: Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping	: 4
cpu MHz		: 3401.054
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs 
bts pni dtes64 monitor ds_cpl cid xtpr
bogomips	: 6802.10
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 32 bits virtual
power management:

Same with the other virtual core, "power management" is blank.


Am I missing something in my kernel or is my MoBo/CPU feature poor?

cat .config | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 20:30                           ` Mick
@ 2011-05-10 20:36                             ` Bill Longman
  2011-05-10 21:07                               ` Mick
  0 siblings, 1 reply; 24+ messages in thread
From: Bill Longman @ 2011-05-10 20:36 UTC (permalink / raw
  To: gentoo-user

On 05/10/2011 01:30 PM, Mick wrote:
> Same with the other virtual core, "power management" is blank.
> 
> 
> Am I missing something in my kernel or is my MoBo/CPU feature poor?
> 
> cat .config | grep CPU_FREQ
> CONFIG_CPU_FREQ=y
> CONFIG_CPU_FREQ_TABLE=y
> # CONFIG_CPU_FREQ_DEBUG is not set
> CONFIG_CPU_FREQ_STAT=y
> CONFIG_CPU_FREQ_STAT_DETAILS=y
> # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
> # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
> CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
> # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
> CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
> # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
> CONFIG_CPU_FREQ_GOV_USERSPACE=y
> CONFIG_CPU_FREQ_GOV_ONDEMAND=y
> # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set

It usually comes down to capabilities in your BIOS, Mick. My P4 won't do
it either, but that's on a Dell server from 2004. No BIOS support. And
the CPU can do HT but the BIOS is stupid, too. I still have only one
CPU/thread.



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [gentoo-user] Re: Check CPU for throttling
  2011-05-10 20:36                             ` Bill Longman
@ 2011-05-10 21:07                               ` Mick
  0 siblings, 0 replies; 24+ messages in thread
From: Mick @ 2011-05-10 21:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 816 bytes --]

On Tuesday 10 May 2011 21:36:40 Bill Longman wrote:
> On 05/10/2011 01:30 PM, Mick wrote:
> > Same with the other virtual core, "power management" is blank.
> > 
> > 
> > Am I missing something in my kernel or is my MoBo/CPU feature poor?


> It usually comes down to capabilities in your BIOS, Mick. My P4 won't do
> it either, but that's on a Dell server from 2004. No BIOS support. And
> the CPU can do HT but the BIOS is stupid, too. I still have only one
> CPU/thread.

Thanks Bill, I seem to recall something about Stepping in the BIOS settings 
(can't reboot at the moment without risking a domestic incident ...) and I 
think I have it enabled (or auto?)

If it is there and I'm not imagining things I'll try disabling it perhaps and 
see if the kernel can take over.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-05-10 21:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08  9:21 [gentoo-user] Check CPU for throttling Florian Philipp
2011-05-08 10:59 ` Helmut Jarausch
2011-05-10  0:36   ` Volker Armin Hemmann
2011-05-10  6:27     ` Helmut Jarausch
2011-05-10 12:44       ` Volker Armin Hemmann
2011-05-10 14:34         ` Helmut Jarausch
2011-05-10 14:42           ` Sebastian Beßler
2011-05-10 14:49             ` Helmut Jarausch
2011-05-10 14:57               ` Sebastian Beßler
2011-05-10 15:03                 ` Helmut Jarausch
2011-05-10 15:13                   ` Sebastian Beßler
2011-05-10 15:14                 ` Helmut Jarausch
2011-05-10 15:36                   ` Alan McKinnon
2011-05-10 15:54                     ` Bill Longman
2011-05-10 16:34                     ` [gentoo-user] " James
2011-05-10 16:38                       ` Bill Longman
2011-05-10 18:05                         ` Mark Knecht
2011-05-10 20:30                           ` Mick
2011-05-10 20:36                             ` Bill Longman
2011-05-10 21:07                               ` Mick
2011-05-10 20:18                       ` Alan McKinnon
2011-05-10 15:24           ` [gentoo-user] " Volker Armin Hemmann
2011-05-08 11:01 ` Thanasis
2011-05-08 11:19   ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox