From: Holger Macht <hmacht@suse.de>
To: Alexander Clouter <alex-kernel@digriz.org.uk>
Cc: cpufreq@lists.linux.org.uk
Subject: Re: ondemand as default governor
Date: Wed, 7 Mar 2007 22:09:11 +0100 [thread overview]
Message-ID: <20070307210910.GC4872@homac2> (raw)
In-Reply-To: <20070307092506.GA20722@inskipp.digriz.org.uk>
On Wed 07. Mar - 09:25:06, Alexander Clouter wrote:
> Hi,
>
> Dave Jones <davej@redhat.com> [20070307 02:02:08 -0500]:
> >
> > On Wed, Mar 07, 2007 at 01:24:28AM -0500, Len Brown wrote:
> > > On Thursday 01 March 2007 12:41, Thomas Renninger wrote:
> > > > I just read in drivers/cpufreq/Kconfig:
> > > >
> > > > # Note that it is not currently possible to set the other governors
> > > > (such as ondemand)
> > > > # as the default, since if they fail to initialise, cpufreq will be
> > > > # left in an undefined state.
> > > >
> > > > Is this a bigger problem to solve?
> > > > Is there already someone working/thinking on/about a solution?
> > > >
> > > > Allowing this would be convenient...
> > >
> > > Yes, it would, then we could delete the other governors,
> > > and then delete the concept of multiple governors alltogether.
> >
> > It's not feasible unless you have a way of making various
> > older CPUs transition faster. Ondemand on longhaul,powernow-k6,longrun,
> > elanfreq, as well as lots of non-x86 implementations is just not
> > a feasible option.
> >
> As a compromise I guess someone could make a patch that 'forces'
> ondemand/conservative by default with a few '#ifdef's. Slap a huge "we will
> simply laugh at you if you complain this does not work" in the Kconfig help
> section and everyones happy. It should be a rather un-intrusive patch.
>
> > However.. conservative might be. I'd still like to see conservative
> > folded into ondemand sometime, and just be a module param.
> >
> This was originally touted as this but Dominik[1] suggested it would be a far
> better use of the modular governor system if I forked a different governor
> instead. Also if you look at the current userland tools out there that tweak
> the /sys/.../cpufreq/ settings you will find they really are all kitted out
> to flip between completely different governors on system events rather than
> sit on a particular one and tweak a few parameters when someone yanks the
> power lead[2].
>
> I would admit it looks and feel the kind of thing that should be run into a
> single governor[3] but this would really muck around the userland tools as
> they would have to be re-written to actually know the workings of each
> particular governor rather than just being told "use this one when on AC and
> this one when not". It would clean up the kernel land forking, but the cost
> to the userland side would be horrible.
Well, but there are also userland tools which are heading into another
direction. The quite new CPUFreq addon which comes along with HAL tries to
go away from the modular governor system. It doesn't limit anyone to set
whichever governor is available, but ideally it encourages applications to
set one dynamic scaling governor such as ondemand. After setting the
governor, you have a scale between 1 and 100 which in turn just tweaks the
different settings of this one governor set. And in the long run,
distributions will have to use this mechanism if they like to use the most
common power management desktop applets out there (gnome-power-manager,
kpowersave, etc.).
[...]
Regards,
Holger
next prev parent reply other threads:[~2007-03-07 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 17:41 ondemand as default governor Thomas Renninger
2007-03-07 6:24 ` Len Brown
2007-03-07 7:02 ` Dave Jones
2007-03-07 9:20 ` Thomas Renninger
2007-03-07 9:25 ` Alexander Clouter
2007-03-07 9:56 ` Len Brown
2007-03-07 21:09 ` Holger Macht [this message]
2007-03-07 15:43 ` Pallipadi, Venkatesh
2007-03-10 18:39 ` Thomas Renninger
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=20070307210910.GC4872@homac2 \
--to=hmacht@suse.de \
--cc=alex-kernel@digriz.org.uk \
--cc=cpufreq@lists.linux.org.uk \
/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.