From: Christian Loehle <christian.loehle@arm.com>
To: Dietmar Eggemann <dietmar.eggemann@arm.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
rafael@kernel.org
Cc: vincent.guittot@linaro.org, qyousef@layalina.io,
peterz@infradead.org, daniel.lezcano@linaro.org,
anna-maria@linutronix.de, kajetan.puchalski@arm.com,
lukasz.luba@arm.com
Subject: Re: [PATCH 1/6] cpuidle: teo: Increase util-threshold
Date: Fri, 7 Jun 2024 10:35:53 +0100 [thread overview]
Message-ID: <53190254-4e9a-4204-b09a-fb1eb31d0efb@arm.com> (raw)
In-Reply-To: <19d87e24-7c2b-4396-9514-74150b896cf3@arm.com>
On 6/7/24 09:01, Dietmar Eggemann wrote:
> On 06/06/2024 11:00, Christian Loehle wrote:
>> Increase the util-threshold by a lot as it was low enough for some
>> minor load to always be active, especially on smaller CPUs.
>
> We see the blocked part of the CPU utilization as something telling the
> task scheduler that the corresponding tasks might be runnable soon again
> on this CPU.
>
> This model seems to be used here as well. I guess folks are still
> debating whether the amount of blocked utilization is a good enough
> indicator for the length of idle time.
Right, the blocked utilization is treated as an indicator that we will
be brought out of sleep by a non-timer wakeup.
>
>> For small cap CPUs (Pixel6) the util threshold is as low as 1.
>> For CPUs of capacity <64 it is 0. So ensure it is at a minimum, too.
>
> So before this threshold was 16 on a 1024 CPU, now it's 256?
>
> A <= 200 CPU has now a threshold of 50.
>
> Where do those numbers come from? Just from running another workload on
> a specific device?
>
> [...]
More or less yes.
Kajetan identified two broad use-cases for the utilization-based state
bypass: Early utilization ramp-up and high utilization scenarios.
The reports made it clear that the former can't be handled with a
threshold for just a single value as it will be too aggressive in
sustained (non-ramp-up) workloads.
To be fair, with patches 5 and 6 of this series, the ramp-up is
also handled quite early by the intercepts logic itself.
So as a fix I increased the value high enough to not trigger in
low-utilization scenarios.
There is likely room for optimization here, e.g. many wakeups
are also IPIs more related to the general system utilization instead
of the current CPU.
next prev parent reply other threads:[~2024-06-07 9:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 9:00 [PATCH 0/6] cpuidle: teo: fixes and improvements Christian Loehle
2024-06-06 9:00 ` [PATCH 1/6] cpuidle: teo: Increase util-threshold Christian Loehle
2024-06-07 8:01 ` Dietmar Eggemann
2024-06-07 9:35 ` Christian Loehle [this message]
2024-06-09 22:47 ` Qais Yousef
2024-06-10 9:11 ` Christian Loehle
2024-06-16 21:54 ` Qais Yousef
2024-06-10 9:57 ` Ulf Hansson
2024-06-16 21:50 ` Qais Yousef
2024-06-19 9:53 ` Christian Loehle
2024-06-06 9:00 ` [PATCH 2/6] cpuidle: teo: Don't stop tick on utilized Christian Loehle
2024-06-06 9:00 ` [PATCH 3/6] cpuidle: teo: Don't always stop tick on one state Christian Loehle
2024-06-06 9:00 ` [PATCH 4/6] cpuidle: teo: Increase minimum time to stop tick Christian Loehle
2024-06-07 8:14 ` Dietmar Eggemann
2024-06-07 9:29 ` Christian Loehle
2024-06-06 9:00 ` [PATCH 5/6] cpuidle: teo: Remove recent intercepts metric Christian Loehle
2024-06-07 8:57 ` Dietmar Eggemann
2024-06-07 9:26 ` Christian Loehle
2024-06-06 9:00 ` [PATCH 6/6] cpuidle: teo: Don't count non-existent intercepts Christian Loehle
2024-06-07 10:17 ` Dietmar Eggemann
2024-06-10 11:06 ` Christian Loehle
2024-06-06 11:54 ` [PATCH 0/6] cpuidle: teo: fixes and improvements Christian Loehle
2024-06-06 12:29 ` Rafael J. Wysocki
2024-06-06 12:36 ` 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=53190254-4e9a-4204-b09a-fb1eb31d0efb@arm.com \
--to=christian.loehle@arm.com \
--cc=anna-maria@linutronix.de \
--cc=daniel.lezcano@linaro.org \
--cc=dietmar.eggemann@arm.com \
--cc=kajetan.puchalski@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=peterz@infradead.org \
--cc=qyousef@layalina.io \
--cc=rafael@kernel.org \
--cc=vincent.guittot@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