From: Qais Yousef <qais.yousef@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
dietmar.eggemann@arm.com, rostedt@goodmis.org,
bsegall@google.com, mgorman@suse.de, bristot@redhat.com,
vschneid@redhat.com, linux-kernel@vger.kernel.org,
parth@linux.ibm.com, chris.hyser@oracle.com,
valentin.schneider@arm.com, patrick.bellasi@matbug.net,
David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz,
tj@kernel.org, qperret@google.com, tim.c.chen@linux.intel.com,
joshdon@google.com
Subject: Re: [PATCH v4 0/8] Add latency priority for CFS class
Date: Wed, 21 Sep 2022 17:08:34 +0100 [thread overview]
Message-ID: <20220921160834.4a2s3733vlr4rqfh@wubuntu> (raw)
In-Reply-To: <20220916080305.29574-1-vincent.guittot@linaro.org>
Hi Vincent
On 09/16/22 10:02, Vincent Guittot wrote:
> This patchset restarts the work about adding a latency priority to describe
> the latency tolerance of cfs tasks.
>
> The patches [1-4] have been done by Parth:
> https://lore.kernel.org/lkml/20200228090755.22829-1-parth@linux.ibm.com/
>
> I have just rebased and moved the set of latency priority outside the
> priority update. I have removed the reviewed tag because the patches
> are 2 years old.
>
> The patch [5] uses latency nice priority to define a latency offset
> and then to decide if a cfs task can preempt the current running task. The
> patch gives some tests results with cyclictests and hackbench to highlight
> the benefit of latency priority for short interactive task or
> long intensive tasks.
>
> Patch [6] adds the support of latency_offset to task group by adding a
> cpu.latency field. There were discussions for the last version about
> using a real unit for the field so I decided to expose directly the
> latency offset which reflects the time up to which we can preempt when the
> value is negative, or up to which we can defer the preemption when the
> value is positive.
> The range is [-sysctl_sched_latency:sysctl_sched_latency]
>
> Patch [7] makes sched_core taking into account the latency offset.
>
> Patch [8] adds a rb tree to cover some corner cases where the latency
> sensitive task is preempted by high priority task (RT/DL) or fails to
> preempt them. This patch ensures that tasks will have at least a
> slice of sched_min_granularity in priority at wakeup. The patch gives
> results to show the benefit in addition to patch 5
>
> I have also backported the patchset on a dragonboard RB3 with an android
> mainline kernel based on v5.18 for a quick test. I have used
> the TouchLatency app which is part of AOSP and described to be very good
> test to highlight jitter and jank frame sources of a system [1].
> In addition to the app, I have added some short running tasks waking-up
> regularly (to use the 8 cpus for 4 ms every 37777us) to stress the system
> without overloading it (and disabling EAS). The 1st results shows that the
> patchset helps to reduce the missed deadline frames from 5% to less than
> 0.1% when the cpu.latency of task group are set.
>
> [1] https://source.android.com/docs/core/debug/eval_perf#touchlatency
One thing that still confuses me is whether this proposal is supposed to be the
only consumer of this interface or we still expect other users to be able to
use this hint to optimize other sources of latency in the scheduler? Last
discussion [1] raised issues on the interface and I haven't seen any
discussions on the suitability of the interface to enable future consumers.
I might have missed something. What's the current state on this?
[1] https://lwn.net/Articles/820659/
Thanks
--
Qais Yousef
next prev parent reply other threads:[~2022-09-21 16:27 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 8:02 Vincent Guittot
2022-09-16 8:02 ` [PATCH v4 1/8] sched: Introduce latency-nice as a per-task attribute Vincent Guittot
2022-09-16 8:02 ` [PATCH v4 2/8] sched/core: Propagate parent task's latency requirements to the child task Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 3/8] sched: Allow sched_{get,set}attr to change latency_nice of the task Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 4/8] sched/core: Add permission checks for setting the latency_nice value Vincent Guittot
2022-09-19 8:52 ` timj
2022-09-19 8:52 ` timj
2022-09-19 12:41 ` Vincent Guittot
2022-09-20 10:18 ` Tim Janik
2022-09-20 14:56 ` Vincent Guittot
2022-09-21 16:11 ` Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 5/8] sched/fair: Take into account latency priority at wakeup Vincent Guittot
[not found] ` <20220916120245.2951-1-hdanton@sina.com>
2022-09-16 13:36 ` Vincent Guittot
[not found] ` <20220917225819.817-1-hdanton@sina.com>
2022-09-18 10:46 ` Vincent Guittot
[not found] ` <20220920113238.1176-1-hdanton@sina.com>
2022-09-20 15:17 ` Vincent Guittot
2022-09-19 10:05 ` Dietmar Eggemann
2022-09-19 15:39 ` Vincent Guittot
2022-09-20 13:18 ` Dietmar Eggemann
2022-09-20 15:49 ` Vincent Guittot
2022-09-21 22:41 ` Dietmar Eggemann
2022-09-22 7:12 ` Vincent Guittot
2022-09-22 16:50 ` Dietmar Eggemann
2022-09-23 6:01 ` Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 6/8] sched/fair: Add sched group latency support Vincent Guittot
2022-09-19 11:55 ` Dietmar Eggemann
2022-09-19 15:49 ` Vincent Guittot
2022-09-19 17:34 ` Tejun Heo
2022-09-20 7:03 ` Vincent Guittot
2022-09-21 16:07 ` Qais Yousef
2022-09-21 16:48 ` Tejun Heo
2022-09-21 17:02 ` Vincent Guittot
2022-09-21 17:12 ` Tejun Heo
2022-09-22 6:40 ` Vincent Guittot
2022-09-22 10:49 ` Qais Yousef
2022-09-20 18:17 ` Dietmar Eggemann
2022-09-21 7:48 ` Vincent Guittot
2022-09-19 17:34 ` Tejun Heo
2022-09-20 7:02 ` Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 7/8] sched/core: support latency priority with sched core Vincent Guittot
2022-09-16 8:03 ` [PATCH v4 8/8] sched/fair: Add latency list Vincent Guittot
2022-09-21 16:08 ` Qais Yousef [this message]
2022-09-22 7:19 ` [PATCH v4 0/8] Add latency priority for CFS class Vincent Guittot
2022-09-22 11:00 ` Qais Yousef
2022-09-22 13:03 ` 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=20220921160834.4a2s3733vlr4rqfh@wubuntu \
--to=qais.yousef@arm.com \
--cc=David.Laight@aculab.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=chris.hyser@oracle.com \
--cc=dietmar.eggemann@arm.com \
--cc=joshdon@google.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=parth@linux.ibm.com \
--cc=patrick.bellasi@matbug.net \
--cc=pavel@ucw.cz \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=qperret@google.com \
--cc=rostedt@goodmis.org \
--cc=tim.c.chen@linux.intel.com \
--cc=tj@kernel.org \
--cc=valentin.schneider@arm.com \
--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®