All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
To: Jean Delvare <jdelvare@suse.de>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-pm@vger.kernel.org
Subject: Re: cpuidle governors
Date: Fri, 22 Nov 2013 16:52:25 +0100	[thread overview]
Message-ID: <528F7DB9.6020204@intel.com> (raw)
In-Reply-To: <1385106338.4373.11.camel@chaos.site>

On 11/22/2013 8:45 AM, Jean Delvare wrote:
> Hi Daniel,
>
> Thanks for your fast reply and sorry for my slow one :(
>
> Le Thursday 07 November 2013 à 14:54 +0100, Daniel Lezcano a écrit :
>> 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.
> OK, I'll look at the code then. But I still believe this should be
> documented for clarity.
>
>> For very specific
>> questions, try asking in the mailing list.
> I'm doing that right now ;)
>
>>> 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.
> My original issue is somewhat related to this. One customer reported to
> us that booting with nohz=off breaks cpuidle. My own testing revealed:
>
> * That a kernel built without NO_HZ still gets cpuidle governor "menu".
> This contradicts your statement above.
> * That a NO_HZ kernel booted with nohz=off behaves differently than a
> kernel built without NO_HZ with regards to cpuidle. Both use the "menu"
> governor by default (while I understand they should rather not), but in
> the latter case deep C states are reached while in the former they never
> are. This smells like a second bug.
>
> I would appreciate if both bugs could get fixed.

Yes, it looks like we have two separate bugs there.

>   I can fill out bugzilla entries if it helps.

Please do, that helps a lot.

Thanks,
Rafael


  reply	other threads:[~2013-11-22 15:52 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
2013-11-22  7:45   ` Jean Delvare
2013-11-22 15:52     ` Rafael J. Wysocki [this message]
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=528F7DB9.6020204@intel.com \
    --to=rafael.j.wysocki@intel.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=jdelvare@suse.de \
    --cc=linux-pm@vger.kernel.org \
    /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.