From: Dietmar Eggemann <dietmar.eggemann@arm.com>
To: Xuewen Yan <xuewen.yan94@gmail.com>
Cc: "Vincent Guittot" <vincent.guittot@linaro.org>,
"John Stultz" <jstultz@google.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Juri Lelli" <juri.lelli@redhat.com>,
"Steven Rostedt" <rostedt@goodmis.org>,
"Benjamin Segall" <bsegall@google.com>,
"Mel Gorman" <mgorman@suse.de>,
"Valentin Schneider" <vschneid@redhat.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
"王科 (Ke Wang)" <Ke.Wang@unisoc.com>,
"Xuewen Yan" <xuewen.yan@unisoc.com>,
"hongyu.jin@unisoc.com" <hongyu.jin@unisoc.com>,
guohua.yan@unisoc.com
Subject: Re: [Question] Sched: Severe scheduling latency (>10s) observed on kernel 6.12 with specific workload
Date: Fri, 10 Apr 2026 12:13:55 +0100 [thread overview]
Message-ID: <3ed0139b-9e34-491d-80cf-e818fadadd06@arm.com> (raw)
In-Reply-To: <CAB8ipk9rVnoNv8BYZihvvAk=VgUS6qpu6CiH1aBwP2L93vdrqA@mail.gmail.com>
On 08.04.26 03:50, Xuewen Yan wrote:
> Hi Dietmar and Vincent,
>
>> I tried to recreate your env as much as possible on qemu and ran your
>> rt-app file but I can't spot anything suspicious either. This is with
>> defconfig and cgroupv2.
>
> Could you please try the following configuration?
> To rule out Android's influence, I created two new cgroups:
> foreground_test and background_test.
> I then placed only rt-app threads into these groups. Even with this
> setup, we can still observe high scheduling latency for tasks in
> foreground_test.
Is this still on an Android (vendor hooks, etc.) or mainline 6.12.58
kernel/device?
> {
> "tasks" : {
> "t0" : {
> "instance" : 40,
> "priority" : 0,
> "cpus" : [ 0, 1, 2, 3 ],
> "taskgroup" : "/background_test",
> "loop" : -1,
> "run" : 200,
> "sleep" : 50
> },
> "t1" : {
> "instance" : 2,
> "priority" : 19,
> "cpus" : [ 0, 1, 2, 3 ],
> "taskgroup" : "/foreground_test",
> "loop" : -1,
> "run" : 60000,
> "sleep" : 100000
> },
> "t2" : {
> "instance" : 2,
> "priority" : 10,
> "cpus" : [ 0, 1, 2, 3 ],
> "taskgroup" : "/foreground_test",
> "loop" : -1,
> "run" : 5000,
> "sleep" : 100000
> }
> }
> }
With your rt-app file and moving the tasks into cgroupv2 taskgroups
manually:
t0-0 679 0 > /sys/fs/cgroup/A
t0-1 680 0 > /sys/fs/cgroup/A
t0-2 681 0 > /sys/fs/cgroup/A
...
t0-37 716 0 > /sys/fs/cgroup/A
t0-38 717 0 > /sys/fs/cgroup/A
t0-39 718 0 > /sys/fs/cgroup/A
t1-40 719 19 > /sys/fs/cgroup/B
t1-41 720 19 > /sys/fs/cgroup/B
t2-42 721 10 > /sys/fs/cgroup/B
t2-43 722 10 > /sys/fs/cgroup/B
10 highest wu_lat values on Arm64 qemu (-accel hvf):
v6.6
0.564159000 t2-43:684
0.306418000 t2-42:683
0.237134000 t2-43:684
0.166982000 t2-42:683
0.166674000 t2-42:683
0.161856000 t2-42:683
0.098879000 t2-43:684
0.097746000 t2-43:684
0.083329000 t2-42:683
0.082943000 t2-42:683
6.12.58
0.368566000 t2-43:939
0.228139000 t2-42:938
0.212454000 t2-43:939
0.207144000 t2-42:938
0.177373000 t2-43:939
0.148268000 t2-42:938
0.147619000 t2-42:938
0.125988000 t2-43:939
0.091564000 t2-42:938
0.088160000 t2-42:938
tip sched/core (7.0.0-rc6-00050-g985215804dcb)
0.395585000 t2-43:697
0.203889000 t2-43:697
0.101130000 t2-42:696
0.098782000 t2-42:696
0.084523000 t2-43:697
0.033895000 t2-42:696
0.031881000 t2-43:697
0.021958000 t2-42:696
0.018123000 t2-42:696
0.013132000 t0-7:661
Could you specify which tasks had those > 1s wu_lat values?
next prev parent reply other threads:[~2026-04-10 11:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAB8ipk9N5_pO1Awp6PLnWt6hf1Bu_XtY3qGMJKqz=Uf6eZQejw@mail.gmail.com>
2026-04-01 4:25 ` [Question] Sched: Severe scheduling latency (>10s) observed on kernel 6.12 with specific workload John Stultz
2026-04-01 6:04 ` Xuewen Yan
2026-04-01 10:05 ` Vincent Guittot
2026-04-01 10:48 ` Xuewen Yan
2026-04-01 13:00 ` Dietmar Eggemann
2026-04-02 5:16 ` Xuewen Yan
2026-04-02 14:58 ` Dietmar Eggemann
2026-04-08 2:50 ` Xuewen Yan
2026-04-10 11:13 ` Dietmar Eggemann [this message]
2026-04-14 5:18 ` Xuewen Yan
2026-04-14 15:49 ` Dietmar Eggemann
2026-04-01 14:01 ` Vincent Guittot
2026-04-02 5:11 ` Xuewen Yan
2026-04-02 5:24 ` Xuewen Yan
2026-04-08 12:19 ` David Laight
2026-04-09 21:39 ` John Stultz
2026-04-10 3:31 ` Xuewen Yan
2026-04-10 4:01 ` John Stultz
2026-04-10 12:24 ` Dietmar Eggemann
2026-04-13 20:44 ` John Stultz
2026-04-14 15:43 ` Dietmar Eggemann
2026-04-14 19:21 ` John Stultz
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=3ed0139b-9e34-491d-80cf-e818fadadd06@arm.com \
--to=dietmar.eggemann@arm.com \
--cc=Ke.Wang@unisoc.com \
--cc=bsegall@google.com \
--cc=guohua.yan@unisoc.com \
--cc=hongyu.jin@unisoc.com \
--cc=jstultz@google.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=xuewen.yan94@gmail.com \
--cc=xuewen.yan@unisoc.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 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.