Linux Power Management development
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Christian Loehle <christian.loehle@arm.com>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Linux PM mailing list <linux-pm@vger.kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: TEO as default governor ?
Date: Tue, 11 Mar 2025 19:42:08 +0100	[thread overview]
Message-ID: <03c2833d-d80c-4146-911d-8d1a524a2b13@linaro.org> (raw)
In-Reply-To: <CAJZ5v0iJTB_JTb9YMVBCjd=iOPuCRdNQNLS7wXwHRD4kz5h-Og@mail.gmail.com>

On 11/03/2025 19:26, Rafael J. Wysocki wrote:
> On Tue, Mar 11, 2025 at 7:00 PM Daniel Lezcano
> <daniel.lezcano@linaro.org> wrote:
>>
>> On 11/03/2025 18:34, Rafael J. Wysocki wrote:
>>> On Tue, Mar 11, 2025 at 5:47 PM Christian Loehle
>>> <christian.loehle@arm.com> wrote:
>>>>
>>>> On 3/11/25 16:31, Daniel Lezcano wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I think we can agree the teo governor is better then the menu governor.
>>>>>
>>>>> Would it make sense to make the teo governor the default governor ?
>>>>>
>>>>>
>>>>
>>>> Rafael's position seems to be quite conservative here.
>>>> Fact is menu is still the default on many systems.
>>>> Even worse, the really bad performance disadvantage when
>>>> using menu in an intercept-heavy workload has been fixed by Rafael :)
>>>> https://lore.kernel.org/lkml/bc7f915b-8d9f-4e05-9939-8b7ecc078f85@arm.com/
>>>>
>>>> FWIW I proposed this a while ago:
>>>> https://lore.kernel.org/lkml/20240905092645.2885200-3-christian.loehle@arm.com/
>>>
>>> It will help if one can make a really convincing case for this change
>>> (that is, show that menu with the most recent fixes included is really
>>> significantly worse on their platform).
>>
>> For all the platforms I've been testing, the teo governor is always the
>> best one.
> 
> Great!  Can you please share any numbers?

There are some at a publication doing an evaluation of the irq 
prediction [1]

>> Using the menu governor has also an impact on the user experience as it
>> lags on mobile.
> 
> Well, I'm not quite sure what you mean here?

For example, the user feels the lag when touching the screen on a mobile 
or scrolling a document. Changing from menu to teo solves this issue.


>> After studying the history of the menu governor few years ago, it
>> appeared the menu governor was introduced before the SMP was widely
>> used. The strength of the menu governor was the ability to find
>> repeating intervals but with he multiplication of the cores, the IPIs
>> were introduced which increased the entropy of the busy-idle cycles
>> duration, thus making the duration much more random and altering the
>> menu governor prediction accuracy.
> 
> While this arguably is the case, menu has also been changed quite a
> bit since its introduction.
> 
> What I'm looking for really is a set of numbers showing the difference
> and clearly pointing out that teo should be preferred.

Ok, let me check if I can find a platform doing energy measurement.

I guess x86 is not a good target as the firmware overcomes the kernel 
decisions right ?


   -- D.


[1] 
https://hal.science/hal-04095844v1/file/O_S_level_interrupt_prediction_for_performance_and_energy_management_on_Android.pdf

-- 
<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:[~2025-03-11 18:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-11 16:31 TEO as default governor ? Daniel Lezcano
2025-03-11 16:45 ` Ulf Hansson
2025-03-11 16:47 ` Christian Loehle
2025-03-11 17:34   ` Rafael J. Wysocki
2025-03-11 18:00     ` Daniel Lezcano
2025-03-11 18:26       ` Rafael J. Wysocki
2025-03-11 18:42         ` Daniel Lezcano [this message]
2025-03-11 18:51           ` Rafael J. Wysocki
2025-03-11 20:51             ` Christian Loehle
2025-03-13  6:15       ` Christian Loehle

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=03c2833d-d80c-4146-911d-8d1a524a2b13@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --cc=christian.loehle@arm.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox