linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Jean Delvare <jdelvare@suse.de>, linux-pm@vger.kernel.org
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Subject: Re: cpuidle governors
Date: Thu, 07 Nov 2013 14:54:42 +0100	[thread overview]
Message-ID: <527B9BA2.4060100@linaro.org> (raw)
In-Reply-To: <1383831870.4370.382.camel@chaos.site>

On 11/07/2013 02:44 PM, Jean Delvare wrote:
> Hi all,
>
> I had to work on cpuidle recently and there are two things which caused
> me trouble and I'd like to discuss.
>
> 1* Is there no documentation about how the available governors (menu and
> ladder) work? I found good documentation of the general architecture and
> API in Documentation/cpuidle, but I am missing a description of the
> internal logic of each available governor (just like
> Documentation/cpu-freq/governors.txt for cpufreq.)

IMO, the code review and the header description in the menu.c file is 
the best way to understand how the governor works. For very specific 
questions, try asking in the mailing list.

> Also, the
> documentation says that "the kernel picks the best governor based on
> governor ratings" but that's pretty vague. An explanation of how the
> governors are rated would be good to have. Could this be added?

Yeah, actually they are rated but depending on the system configuration 
one fit better than the other one. Tickless system => menu governor, 
Periodic system => ladder governor. Using a tickless system with the 
ladder governor is less efficient from a power saving POV.

> 2* Is there no way to specify/force the cpuidle governor at boot time? I
> found the cpuidle_sysfs_switch parameter and then I can change the
> governor in sysfs, but this seems overly complicated (and apparently
> discouraged) in a production environment. Wouldn't it be easier to
> implement a cpuidle.governor=xxx boot parameter? That way we don't have
> to deal with run-time changes, but the user can still force a specific
> governor.

Yes, that may make sense.

Thanks
   -- Daniel


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


  reply	other threads:[~2013-11-07 13:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07 13:44 cpuidle governors Jean Delvare
2013-11-07 13:54 ` Daniel Lezcano [this message]
2013-11-22  7:45   ` Jean Delvare
2013-11-22 15:52     ` Rafael J. Wysocki
2013-11-22 16:14       ` Daniel Lezcano
2013-11-22 18:06         ` Jean Delvare
2013-11-22 18:17           ` Daniel Lezcano
2013-11-22 18:14       ` Jean Delvare

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=527B9BA2.4060100@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --cc=jdelvare@suse.de \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael.j.wysocki@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).