cpufreq governor vs. powernowd
John Richard Moser
nigelenki at comcast.net
Fri Aug 18 19:33:54 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Sladen wrote:
> On Fri, 18 Aug 2006, Aigars Mahinovs wrote:
>> On 8/18/06, Dmitriy Kropivnitskiy <nigde at mitechki.net> wrote:
>>> 1. Remove powernowd from the default install
>> would be nicer to have powernowd doing its magic when the laptop is on
>> battery (it does increase the battery life quite significantly),
>
> Are you able to help come up with a harness for collecting some real-world
> results on this, there are various other factors, such as the additional CPU
> time and 'powernowd' consumes from running itself; and ideally we need to
> be able to take all of these into account.
>
Logically, the additional CPU time is probably not an issue. The issue
is probably that powernowd is a user process that has to figure out what
the CPU is up to; meaning the kernel has to tell it it can run before it
can take a sample. Then it has to make changes to the kernel
configuration (i.e. up the CPU clock). I could see this getting blocked
for a few mS under load, whereas the kernel might notice it faster.
I don't know the innards of the kernel though. It seems logical to me
that the kernel could recognize that of the past X time slices, N were
used fully, and so the CPU is [not] under load now; or just directly
have the process scheduler watch how much the idle loop has run the past
few jiffies and switch during scheduling. I can't, however, say that
that's how it's done.
> -Paul
- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.
Creative brains are a valuable, limited resource. They shouldn't be
wasted on re-inventing the wheel when there are so many fascinating
new problems waiting out there.
-- Eric Steven Raymond
We will enslave their women, eat their children and rape their
cattle!
-- Bosc, Evil alien overlord from the fifth dimension
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQIVAwUBROYIEQs1xW0HCTEFAQKNOQ//U/HSDNB6pDwAYDD6ZOhthVsMrtq1haJ7
ZhSuSMUwr7qboIKUp0JyC8zkw2EYnfBfNv9w9whmWLXTMFVMLw0u9CYhM0pntzgs
HEhMhZNMEP4LIAFDXLIZmZnIer9TAqt2GqzuXC0CjgqUlOJJonQ0tmZJbo5ftR4X
qCWsWCPpSuUUr7V6uO5CDmn5EPBLwJjEt+ykh6IMMmn/qovT1zD5WILoUAv/u3og
zwNlKIWo1HS07YimIFP5HIhswksENA6aHnvdToSntTxfBzCjlmpPlhNexYW1ZIVk
JFFC+hs86JW+mONuvdYcbGiW+sTpR9Tlibmi+vJXbuFD3M2KXTEc69YKSGjX9jZ6
AOaRr9tViSPhD6wC05x7djNW4dwk6P99iecPDqwQ0O02MtKdQqFWmUuh9M15hW8H
hLrmHQ4JD7qqypKsv46+sLPzI6j+LxQVuEW4WTGXZFO3OGMPoPktiiX7M28TaiQo
0eMApqeUrrovDy0FWZdNfqFtchjc92J8M9g5Zo7fXu+3SGAq6+qDUnI6D0LXnBh7
WXbuAty2/VTgrOYsmNhCdiRWfIteBBnrbF+gvxQ/40UL0HWkeV/rw9PoJqcXZopc
YHVTUiK4a5zfly1OzY+QPvlF6vfrKLLen9GhX1m3rbxS2FasMjFfUQejQtCQ3Y1z
9ZgxzYhUKOE=
=OGhp
-----END PGP SIGNATURE-----
More information about the ubuntu-devel
mailing list