From: Christian Loehle <christian.loehle@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>,
mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
dietmar.eggemann@arm.com, rostedt@goodmis.org,
bsegall@google.com, mgorman@suse.de, vschneid@redhat.com,
linux-kernel@vger.kernel.org, pierre.gondois@arm.com,
kprateek.nayak@amd.com
Cc: qyousef@layalina.io, hongyan.xia2@arm.com, luis.machado@arm.com
Subject: Re: [PATCH 0/6 v7] sched/fair: Add push task mecansim and hadle more EAS cases
Date: Mon, 1 Dec 2025 13:31:43 +0000 [thread overview]
Message-ID: <18aa730a-01c5-48d8-9f08-44f4dfca4808@arm.com> (raw)
In-Reply-To: <20251201091308.761711-1-vincent.guittot@linaro.org>
On 12/1/25 09:13, Vincent Guittot wrote:
> This is a subset of [1] (sched/fair: Rework EAS to handle more cases)
>
> [1] https://lore.kernel.org/all/20250314163614.1356125-1-vincent.guittot@linaro.org/
>
> The current Energy Aware Scheduler has some known limitations which have
> became more and more visible with features like uclamp as an example. This
> serie tries to fix some of those issues:
> - tasks stacked on the same CPU of a PD
> - tasks stuck on the wrong CPU.
>
> Patch 1 fixes the case where a CPU is wrongly classified as overloaded
> whereas it is capped to a lower compute capacity. This wrong classification
> can prevent periodic load balancer to select a group_misfit_task CPU
> because group_overloaded has higher priority.
>
> Patch 2 removes the need of testing uclamp_min in cpu_overutilized to
> trigger the active migration of a task on another CPU.
>
> Patch 3 prepares select_task_rq_fair() to be called without TTWU, Fork or
> Exec flags when we just want to look for a possible better CPU.
>
> Patch 4 adds push call back mecanism to fair scheduler but doesn't enable
> it.
>
> Patch 5 enable has_idle_core for !SMP system to track if there may be an
> idle CPU in the LLC.
>
> Patch 6 adds some conditions to enable pushing runnable tasks for EAS:
> - when a task is stuck on a CPU and the system is not overutilized.
> - if there is a possible idle CPU when the system is overutilized.
>
> More tests results will come later as I wanted to send the pachtset before
> LPC.
>
> Tbench on dragonboard rb5
> schedutil and EAS enabled
>
> # process tip +patchset
> 1 29.1(+/-4.1%) 124.7(+/-12.3%) +329%
> 2 60.0(+/-0.9%) 216.1(+/- 7.9%) +260%
> 4 255.8(+/-1.9%) 421.4(+/- 2.0%) +65%
> 8 1317.3(+/-4.6%) 1396.1(+/- 3.0%) +6%
> 16 958.2(+/-4.6%) 979.6(+/- 2.0%) +2%
Just so I understand, there's no uclamp in the workload here?
Could you expand on the workload a little, what were the parameters/settings?
So the significant increase is really only for nr_proc < nr_cpus, with the
observed throughput increase it'll probably be something like "always running
on little CPUs" vs "always running on big CPUs", is that what's happening?
Also shouldn't tbench still have plenty of wakeup events? It issues plenty of
TCP anyway.
>
> Hackbench didn't show any difference
>
>
> Vincent Guittot (6):
> sched/fair: Filter false overloaded_group case for EAS
> sched/fair: Update overutilized detection
> sched/fair: Prepare select_task_rq_fair() to be called for new cases
> sched/fair: Add push task mechanism for fair
> sched/fair: Enable idle core tracking for !SMT
> sched/fair: Add EAS and idle cpu push trigger
>
> kernel/sched/fair.c | 350 +++++++++++++++++++++++++++++++++++-----
> kernel/sched/sched.h | 46 ++++--
> kernel/sched/topology.c | 3 +
> 3 files changed, 346 insertions(+), 53 deletions(-)
>
next prev parent reply other threads:[~2025-12-01 13:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 9:13 Vincent Guittot
2025-12-01 9:13 ` [PATCH 1/6 v7] sched/fair: Filter false overloaded_group case for EAS Vincent Guittot
2025-12-01 9:13 ` [PATCH 2/6 v7] sched/fair: Update overutilized detection Vincent Guittot
2025-12-01 9:13 ` [PATCH 3/6 v7] sched/fair: Prepare select_task_rq_fair() to be called for new cases Vincent Guittot
2025-12-01 9:13 ` [PATCH 4/6 v7] sched/fair: Add push task mechanism for fair Vincent Guittot
2025-12-01 9:13 ` [RFC PATCH 5/6 v7] sched/fair: Enable idle core tracking for !SMT Vincent Guittot
2025-12-01 9:13 ` [RFC PATCH 6/6 v7] sched/fair: Add EAS and idle cpu push trigger Vincent Guittot
2025-12-01 13:53 ` Christian Loehle
2025-12-01 17:49 ` Vincent Guittot
2025-12-01 19:33 ` Vincent Guittot
2025-12-02 9:44 ` Hillf Danton
2025-12-02 13:01 ` Vincent Guittot
2025-12-03 9:00 ` Hillf Danton
2025-12-03 13:32 ` Vincent Guittot
2025-12-04 6:59 ` Hillf Danton
2025-12-05 15:02 ` Vincent Guittot
2025-12-06 10:31 ` Hillf Danton
2025-12-01 13:31 ` Christian Loehle [this message]
2025-12-01 13:57 ` [PATCH 0/6 v7] sched/fair: Add push task mecansim and hadle more EAS cases Christian Loehle
2025-12-01 17:48 ` Vincent Guittot
2025-12-01 17:48 ` Vincent Guittot
2025-12-01 22:02 ` David Laight
2025-12-02 13:24 ` Vincent Guittot
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=18aa730a-01c5-48d8-9f08-44f4dfca4808@arm.com \
--to=christian.loehle@arm.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=hongyan.xia2@arm.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luis.machado@arm.com \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pierre.gondois@arm.com \
--cc=qyousef@layalina.io \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.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
all inboxes | Powered by JetHome®