All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rutger Nijlunsing <rutger@nospam.com>
To: Paulo Marques <pmarques@grupopie.com>
Cc: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>,
	Andi Kleen <ak@suse.de>,
	akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add p4-clockmod driver in x86-64
Date: Wed, 27 Oct 2004 23:38:07 +0200	[thread overview]
Message-ID: <20041027213807.GA9334@nospam.com> (raw)
In-Reply-To: <417FB7BA.9050005@grupopie.com>

On Wed, Oct 27, 2004 at 03:59:06PM +0100, Paulo Marques wrote:
> Pallipadi, Venkatesh wrote:
> >>....
> >Yes. Clock modulation is not as useful compared to enhanced speedstep.
> >But, 
> >I feel, it should be OK to have the driver, though it is not really
> >useful 
> >in common case. It may be useful in some exceptional cases. 
> 
> I think I have one of such cases.
> 
> I am one of the members of the robotic soccer team from the University 
> of Oporto, and a couple of months ago we were looking for new 
> motherboards for our robots, because we are starting to need new 
> hardware (on-board lan, usb2.0, etc.).
> 
> We really don't need excepcional performance, but we really, really need 
> low power consumption, so lowering the clock on a standard mainboard 
> seemed to be the best cost/performance scenario.
> 
> Could this driver be used to keep a standard p4 processor at say 25% 
> clock speed at all times?

Nope, p4-clockmod is completely useles. It doesn't slow down the CPU
frequency, it only executes 7000 tick some kind of 'hlt' / 'halt'
instruction out of 8000 ticks (for example, to get 12.5%) just like
Linux's idle routine.

So you've got the _disadvantages_ of a slow clock (programs run
slower), and not the _advantages_ (power consumption is same as idle
CPU and not lower, temperature is same as idle CPU and not lower).

But why does the P4 have such a mode? It uses this mode during thermal
throttling to get to the 'idle' temperature.

Therefore, p4-clockmod is completely misnamed: it's _not_ a cpufreq
driver in the sense that it does not change the frequency. The
documentation should be updated to reflect this (eventually).

In short: p4-clockmod can be emulated in software.

-- 
Rutger Nijlunsing ---------------------------- rutger ed tux tmfweb nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------

  parent reply	other threads:[~2004-10-27 21:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-27 14:43 [PATCH] Add p4-clockmod driver in x86-64 Pallipadi, Venkatesh
2004-10-27 14:59 ` Paulo Marques
2004-10-27 15:56   ` Lee Revell
2004-10-27 16:14     ` Paulo Marques
2004-10-27 16:22       ` Alan Cox
2004-10-27 18:47         ` Marcus Metzler
2004-10-27 21:38   ` Rutger Nijlunsing [this message]
2004-10-27 21:50     ` Alan Cox
2004-10-28  0:17       ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2004-10-27 16:39 Pallipadi, Venkatesh
2004-10-26 21:28 Venkatesh Pallipadi
2004-10-27  3:18 ` Andi Kleen
2004-10-28  0:10 ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041027213807.GA9334@nospam.com \
    --to=rutger@nospam.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@tux.tmfweb.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmarques@grupopie.com \
    --cc=venkatesh.pallipadi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.