From: K Prateek Nayak <kprateek.nayak@amd.com>
To: Peter Zijlstra <peterz@infradead.org>, Phil Auld <pauld@redhat.com>
Cc: mingo@redhat.com, juri.lelli@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
vschneid@redhat.com, clm@meta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 12/12] sched: Add ttwu_queue support for delayed tasks
Date: Fri, 4 Jul 2025 11:43:43 +0530 [thread overview]
Message-ID: <0672c7df-543c-4f3e-829a-46969fad6b34@amd.com> (raw)
In-Reply-To: <20250703164708.GZ1613200@noisy.programming.kicks-ass.net>
Hello Peter,
On 7/3/2025 10:17 PM, Peter Zijlstra wrote:
> Also, I updated the git tree today, fixing a silly mistake. But I don't
> remember build failures here.
Running HammerDB + MySQL on baremetal results in a splats from
assert_clock_updated() ~10min into the run on peterz:sched/core at
commit 098ac7dd8a57 ("sched: Add ttwu_queue support for delayed
tasks") which I hope is the updated one.
I'm running with the following diff and haven't seen a splat yet
(slightly longer than 10min into HammerDB; still testing):
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 9855121c2440..71ac0e7effeb 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3871,7 +3871,7 @@ static int ttwu_delayed(struct rq *rq, struct task_struct *p, int wake_flags,
if (unlikely(rq != p_rq)) {
__task_rq_unlock(p_rq, rf);
rq_lock(rq, rf);
- update_rq_clock(p_rq);
+ update_rq_clock(rq);
}
p->sched_remote_wakeup = !!(wake_flags & WF_MIGRATED);
---
P.S. The full set of splats are as follows:
------------[ cut here ]------------
WARNING: CPU: 141 PID: 8164 at kernel/sched/sched.h:1643 update_curr_se+0x5c/0x60
Modules linked in: ...
CPU: 141 UID: 1000 PID: 8164 Comm: mysqld Tainted: G U 6.16.0-rc1-peterz-queue-098ac7+ #869 PREEMPT(voluntary)
Tainted: [U]=USER
Hardware name: Dell Inc. PowerEdge R6525/024PW1, BIOS 2.7.3 03/30/2022
RIP: 0010:update_curr_se+0x5c/0x60
Code: be a8 00 00 00 00 48 8d 96 80 02 00 00 74 07 48 8d 96 00 01 00 00 48 8b 4a 60 48 39 c1 48 0f 4c c8 48 89 4a 60 e9 1f af d5 ff <0f> 0b eb ae 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f
RSP: 0000:ffffd162151ffd30 EFLAGS: 00010097
RAX: 0000000000000001 RBX: ffff8bb25c903500 RCX: ffffffff8afb3ca0
RDX: 0000000000000009 RSI: ffff8bb25c903500 RDI: ffff8bf07e571b00
RBP: ffff8bb25ea94400 R08: 0000014f849737b3 R09: 0000000000000009
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8bf07e571b00
R13: ffff8bf07e571b00 R14: ffff8bb25c903500 R15: ffff8bb25ea94400
FS: 00007fcd9e01f640(0000) GS:ffff8bf0f0858000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf3990c004 CR3: 0000000147f9900b CR4: 0000000000f70ef0
PKRU: 55555554
Call Trace:
<TASK>
update_curr+0x31/0x240
enqueue_entity+0x2e/0x470
enqueue_task_fair+0x122/0x850
enqueue_task+0x88/0x1c0
ttwu_do_activate+0x75/0x230
sched_ttwu_pending+0x2b9/0x430
__flush_smp_call_function_queue+0x140/0x420
__sysvec_call_function_single+0x1c/0xb0
sysvec_call_function_single+0x43/0xb0
asm_sysvec_call_function_single+0x1a/0x20
RIP: 0033:0x202a6de
Code: 89 f1 4d 89 c4 4d 8d 44 24 01 41 0f b6 50 ff 49 8d 71 01 44 0f b6 5e ff 89 d0 44 29 d8 0f 85 01 02 00 00 48 89 ca 48 83 ea 01 <0f> 84 0c 02 00 00 4c 39 c7 75 c7 48 89 4d 80 4c 89 55 88 4c 89 4d
RSP: 002b:00007fcd9e01a1f0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000003
RDX: 0000000000000002 RSI: 00007fc2684926c2 RDI: 00007fb96fe862b7
RBP: 00007fcd9e01a270 R08: 00007fb96fe862b5 R09: 00007fc2684926c1
R10: 0000000000000000 R11: 0000000000000000 R12: 00007fb96fe862b4
R13: 0000000000000000 R14: 00000000ffffffff R15: 00007fcd9e01a310
</TASK>
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 141 PID: 8164 at kernel/sched/sched.h:1643 update_load_avg+0x6f7/0x780
Modules linked in: ...
CPU: 141 UID: 1000 PID: 8164 Comm: mysqld Tainted: G U W 6.16.0-rc1-peterz-queue-098ac7+ #869 PREEMPT(voluntary)
Tainted: [U]=USER, [W]=WARN
Hardware name: Dell Inc. PowerEdge R6525/024PW1, BIOS 2.7.3 03/30/2022
RIP: 0010:update_load_avg+0x6f7/0x780
Code: 42 f8 e9 c8 fa ff ff 39 c1 0f 42 c8 e9 4a fb ff ff 31 c0 45 31 c9 e9 cf fb ff ff 4c 8b a7 80 01 00 00 49 29 d4 e9 5a f9 ff ff <0f> 0b e9 42 f9 ff ff 69 d0 7e b6 00 00 e9 f4 fb ff ff 39 c2 0f 42
RSP: 0000:ffffd162151ffd20 EFLAGS: 00010097
RAX: ffff8bf07e571b00 RBX: ffff8bb25ea94400 RCX: 0000000000000041
RDX: 0000000000000000 RSI: ffff8bb237533500 RDI: ffff8bb25ea94400
RBP: ffff8bb237533500 R08: 000000000000132d R09: 0000000000000009
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8bf07e571b00
R13: 0000000000000005 R14: ffff8bb25c903500 R15: ffff8bb25ea94400
FS: 00007fcd9e01f640(0000) GS:ffff8bf0f0858000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf3990c004 CR3: 0000000147f9900b CR4: 0000000000f70ef0
PKRU: 55555554
Call Trace:
<TASK>
? srso_alias_return_thunk+0x5/0xfbef5
? update_curr+0x1bd/0x240
enqueue_entity+0x3e/0x470
enqueue_task_fair+0x122/0x850
enqueue_task+0x88/0x1c0
ttwu_do_activate+0x75/0x230
sched_ttwu_pending+0x2b9/0x430
__flush_smp_call_function_queue+0x140/0x420
__sysvec_call_function_single+0x1c/0xb0
sysvec_call_function_single+0x43/0xb0
asm_sysvec_call_function_single+0x1a/0x20
RIP: 0033:0x202a6de
Code: 89 f1 4d 89 c4 4d 8d 44 24 01 41 0f b6 50 ff 49 8d 71 01 44 0f b6 5e ff 89 d0 44 29 d8 0f 85 01 02 00 00 48 89 ca 48 83 ea 01 <0f> 84 0c 02 00 00 4c 39 c7 75 c7 48 89 4d 80 4c 89 55 88 4c 89 4d
RSP: 002b:00007fcd9e01a1f0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000003
RDX: 0000000000000002 RSI: 00007fc2684926c2 RDI: 00007fb96fe862b7
RBP: 00007fcd9e01a270 R08: 00007fb96fe862b5 R09: 00007fc2684926c1
R10: 0000000000000000 R11: 0000000000000000 R12: 00007fb96fe862b4
R13: 0000000000000000 R14: 00000000ffffffff R15: 00007fcd9e01a310
</TASK>
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 141 PID: 8164 at kernel/sched/sched.h:1643 enqueue_task+0x168/0x1c0
Modules linked in: ...
CPU: 141 UID: 1000 PID: 8164 Comm: mysqld Tainted: G U W 6.16.0-rc1-peterz-queue-098ac7+ #869 PREEMPT(voluntary)
Tainted: [U]=USER, [W]=WARN
Hardware name: Dell Inc. PowerEdge R6525/024PW1, BIOS 2.7.3 03/30/2022
RIP: 0010:enqueue_task+0x168/0x1c0
Code: ee 4c 89 e7 5d 41 5c 41 5d e9 24 d0 ff ff 41 f7 c5 00 02 00 00 0f 85 e4 fe ff ff e9 18 ff ff ff e8 3d f0 ff ff e9 b9 fe ff ff <0f> 0b eb ab 85 c0 74 10 80 fa 01 19 d2 83 e2 f6 83 c2 0e e9 7a ff
RSP: 0000:ffffd162151ffe00 EFLAGS: 00010097
RAX: 000000003cc00001 RBX: ffff8bf07e571b00 RCX: 0000000000000000
RDX: 000000002721340a RSI: 0000014fabb84509 RDI: ffff8bf07e55cd80
RBP: ffff8bb237533480 R08: 0000014fabb84509 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8bf07e571b00
R13: 0000000000000009 R14: ffffd162151ffe90 R15: 0000000000000008
FS: 00007fcd9e01f640(0000) GS:ffff8bf0f0858000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf3990c004 CR3: 0000000147f9900b CR4: 0000000000f70ef0
PKRU: 55555554
Call Trace:
<TASK>
ttwu_do_activate+0x75/0x230
sched_ttwu_pending+0x2b9/0x430
__flush_smp_call_function_queue+0x140/0x420
__sysvec_call_function_single+0x1c/0xb0
sysvec_call_function_single+0x43/0xb0
asm_sysvec_call_function_single+0x1a/0x20
RIP: 0033:0x202a6de
Code: 89 f1 4d 89 c4 4d 8d 44 24 01 41 0f b6 50 ff 49 8d 71 01 44 0f b6 5e ff 89 d0 44 29 d8 0f 85 01 02 00 00 48 89 ca 48 83 ea 01 <0f> 84 0c 02 00 00 4c 39 c7 75 c7 48 89 4d 80 4c 89 55 88 4c 89 4d
RSP: 002b:00007fcd9e01a1f0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000003
RDX: 0000000000000002 RSI: 00007fc2684926c2 RDI: 00007fb96fe862b7
RBP: 00007fcd9e01a270 R08: 00007fb96fe862b5 R09: 00007fc2684926c1
R10: 0000000000000000 R11: 0000000000000000 R12: 00007fb96fe862b4
R13: 0000000000000000 R14: 00000000ffffffff R15: 00007fcd9e01a310
</TASK>
---[ end trace 0000000000000000 ]---
--
Thanks and Regards,
Prateek
next prev parent reply other threads:[~2025-07-04 6:13 UTC|newest]
Thread overview: 101+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 11:49 [PATCH v2 00/12] sched: Address schbench regression Peter Zijlstra
2025-07-02 11:49 ` [PATCH v2 01/12] sched/psi: Optimize psi_group_change() cpu_clock() usage Peter Zijlstra
2025-07-15 19:11 ` Chris Mason
2025-07-16 6:06 ` K Prateek Nayak
2025-07-16 6:53 ` Beata Michalska
2025-07-16 10:40 ` Peter Zijlstra
2025-07-16 14:54 ` Johannes Weiner
2025-07-16 16:27 ` Chris Mason
2025-07-23 4:16 ` Aithal, Srikanth
2025-07-25 5:13 ` K Prateek Nayak
2025-07-02 11:49 ` [PATCH v2 02/12] sched/deadline: Less agressive dl_server handling Peter Zijlstra
2025-07-02 16:12 ` Juri Lelli
2025-07-10 12:46 ` [tip: sched/core] " tip-bot2 for Peter Zijlstra
2025-07-14 22:56 ` [PATCH v2 02/12] " Mel Gorman
2025-07-15 14:55 ` Chris Mason
2025-07-16 18:19 ` Mel Gorman
2025-07-30 9:34 ` Geert Uytterhoeven
2025-07-30 9:46 ` Juri Lelli
2025-07-30 10:05 ` Geert Uytterhoeven
2025-08-05 22:03 ` Chris Bainbridge
2025-08-05 23:04 ` Chris Bainbridge
2025-09-15 22:29 ` John Stultz
2025-09-16 4:18 ` John Stultz
2025-09-16 5:28 ` [RFC][PATCH] sched/deadline: Fix dl_server getting stuck, allowing cpu starvation John Stultz
2025-09-16 8:51 ` Juri Lelli
2025-09-16 11:01 ` Peter Zijlstra
2025-09-16 12:52 ` Juri Lelli
2025-09-16 14:30 ` Peter Zijlstra
2025-09-16 17:35 ` John Stultz
2025-09-16 21:30 ` Peter Zijlstra
2025-09-17 3:29 ` John Stultz
2025-09-17 9:34 ` Peter Zijlstra
2025-09-17 12:26 ` Peter Zijlstra
2025-09-17 13:56 ` Juri Lelli
2025-09-17 17:30 ` Peter Zijlstra
2025-09-18 8:37 ` Juri Lelli
2025-09-18 9:04 ` Peter Zijlstra
2025-09-18 9:42 ` Juri Lelli
2025-09-17 19:29 ` John Stultz
2025-09-18 6:56 ` [tip: sched/urgent] sched/deadline: Fix dl_server behaviour tip-bot2 for Peter Zijlstra
2025-09-25 7:55 ` tip-bot2 for Peter Zijlstra
2025-09-18 6:56 ` [tip: sched/urgent] sched/deadline: Fix dl_server getting stuck tip-bot2 for Peter Zijlstra
2025-09-18 14:46 ` Dietmar Eggemann
[not found] ` <CGME20250922215704eucas1p1f53a65a5cd1eafd3e0db006653231efd@eucas1p1.samsung.com>
2025-09-22 21:57 ` Marek Szyprowski
2025-09-22 23:46 ` John Stultz
2025-09-23 6:31 ` Marek Szyprowski
2025-09-23 7:25 ` Peter Zijlstra
2025-09-23 7:52 ` Marek Szyprowski
2025-09-23 22:02 ` Peter Zijlstra
2025-09-29 15:19 ` Marek Szyprowski
[not found] ` <eae77bd0-d874-4ddf-88d7-c1ab75358f91@samsung.com>
2025-10-09 8:35 ` Krzysztof Kozlowski
2025-10-09 9:26 ` Peter Zijlstra
2025-10-09 11:42 ` Marek Szyprowski
2025-09-25 7:55 ` tip-bot2 for Peter Zijlstra
2025-07-02 11:49 ` [PATCH v2 03/12] sched: Optimize ttwu() / select_task_rq() Peter Zijlstra
2025-07-10 16:47 ` Vincent Guittot
2025-07-14 22:59 ` Mel Gorman
2025-07-02 11:49 ` [PATCH v2 04/12] sched: Use lock guard in ttwu_runnable() Peter Zijlstra
2025-07-10 16:48 ` Vincent Guittot
2025-07-14 23:00 ` Mel Gorman
2025-07-02 11:49 ` [PATCH v2 05/12] sched: Add ttwu_queue controls Peter Zijlstra
2025-07-10 16:51 ` Vincent Guittot
2025-07-14 23:14 ` Mel Gorman
2025-07-02 11:49 ` [PATCH v2 06/12] sched: Introduce ttwu_do_migrate() Peter Zijlstra
2025-07-10 16:51 ` Vincent Guittot
2025-07-02 11:49 ` [PATCH v2 07/12] psi: Split psi_ttwu_dequeue() Peter Zijlstra
2025-07-17 23:59 ` Chris Mason
2025-07-18 18:02 ` Steven Rostedt
2025-07-02 11:49 ` [PATCH v2 08/12] sched: Re-arrange __ttwu_queue_wakelist() Peter Zijlstra
2025-07-02 11:49 ` [PATCH v2 09/12] sched: Clean up ttwu comments Peter Zijlstra
2025-07-02 11:49 ` [PATCH v2 10/12] sched: Use lock guard in sched_ttwu_pending() Peter Zijlstra
2025-07-10 16:51 ` Vincent Guittot
2025-07-02 11:49 ` [PATCH v2 11/12] sched: Change ttwu_runnable() vs sched_delayed Peter Zijlstra
2025-07-02 11:49 ` [PATCH v2 12/12] sched: Add ttwu_queue support for delayed tasks Peter Zijlstra
2025-07-03 16:00 ` Phil Auld
2025-07-03 16:47 ` Peter Zijlstra
2025-07-03 17:11 ` Phil Auld
2025-07-14 13:57 ` Phil Auld
2025-07-04 6:13 ` K Prateek Nayak [this message]
2025-07-04 7:59 ` Peter Zijlstra
2025-07-08 12:44 ` Dietmar Eggemann
2025-07-08 18:57 ` Peter Zijlstra
2025-07-08 21:02 ` Peter Zijlstra
2025-07-23 5:42 ` Shrikanth Hegde
2025-07-02 15:27 ` [PATCH v2 00/12] sched: Address schbench regression Chris Mason
2025-07-07 9:05 ` Shrikanth Hegde
2025-07-07 9:11 ` Peter Zijlstra
2025-07-07 9:38 ` Shrikanth Hegde
2025-07-16 13:46 ` Phil Auld
2025-07-17 17:25 ` Phil Auld
2025-07-07 18:19 ` Shrikanth Hegde
2025-07-08 19:02 ` Peter Zijlstra
2025-07-09 16:46 ` Shrikanth Hegde
2025-07-14 17:54 ` Shrikanth Hegde
2025-07-21 19:37 ` Shrikanth Hegde
2025-07-22 20:20 ` Chris Mason
2025-07-24 18:23 ` Chris Mason
2025-07-08 15:09 ` Chris Mason
2025-07-08 17:29 ` Shrikanth Hegde
2025-07-17 13:04 ` Beata Michalska
2025-07-17 16:57 ` Beata Michalska
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=0672c7df-543c-4f3e-829a-46969fad6b34@amd.com \
--to=kprateek.nayak@amd.com \
--cc=bsegall@google.com \
--cc=clm@meta.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=pauld@redhat.com \
--cc=peterz@infradead.org \
--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®