From: Xukai Wang <kingxukai@zohomail.com>
To: K Prateek Nayak <kprateek.nayak@amd.com>,
John Stultz <jstultz@google.com>, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Valentin Schneider <vschneid@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] sched/proxy: Defer donor commit until after proxy resolution
Date: Mon, 13 Jul 2026 13:01:07 +0800 [thread overview]
Message-ID: <637f7ce3-e7d4-47d2-9aa8-b3faabdb59e7@zohomail.com> (raw)
In-Reply-To: <30ac52e7-3058-42f4-8f20-ff466716e9a5@amd.com>
Hi Prateek,
On 2026/7/13 12:22, K Prateek Nayak wrote:
> Hello Xukai,
> I've added John on this thread in case he knows of any dependency
> in the find_proxy_task() bits that rely on rq->donor being updated
> with the recent pick (I, personally am not aware of any but there
> might be some dependency that eventually gets added with the full
> proxy series that I haven't yet considered).
Thanks for taking a look and looping John in.
>> In that run, I got:
>> find_call 5407
>> find_success 523
>> find_idle 1660
>> find_null 3224
>>
>> spec_commit_blocked 5407
>> spec_commit_then_null 3224
>> spec_commit_then_idle 1660
>> spec_commit_then_success 523
>>
>> null_deactivate_no_mutex 6
>> null_deactivate_no_owner 125
>> null_deactivate_owner_not_runnable 962
>> null_migrate 2131
> I think the chain-migration bits can bring down some of these
> null_migrate calls substantially.
>
>> null_retry_same_donor 0
>> null_retry_diff_donor 2258
>> null_retry_to_idle 966
> Seems like you mostly have one task that keeps getting migrated to the
> owner's CPU.、
Yes, the workload is intentionally and the waiter/holder placement can
indeed make the test repeatedly migrate a task toward the owner's CPU.
>> Based on your comments, I am thinking of restructuring the patch like this.
>>
>> First, move the final put_prev_set_next_task()/rq_set_donor() out of the
>> proxy/non-proxy branches. I think the common commit target still needs to
>> be the donor rather than next, because after find_proxy_task(), next may be
>> the proxy owner that will actually run, while donor is still the selected
>> scheduling donor/accounting context:
> You are right! I had not booted into a kernel with my suggested changes
> to have realized that mistake :-)
...
> Your suggestions look correct to me. Perhaps you can send a v2 including
> John and we can take a look.
...
> Just the patches should be fine. I can crunch the performance numbers
> from my side with schedstats and update on the threads.
OK, I will prepare a v2 with the structure discussed here.
--
Best regards,
Xukai
prev parent reply other threads:[~2026-07-13 5:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 15:46 [PATCH RFC] sched/proxy: Defer donor commit until " Xukai Wang
2026-07-07 15:46 ` [PATCH RFC] sched/proxy: Defer donor commit until after " Xukai Wang
2026-07-10 7:23 ` K Prateek Nayak
2026-07-10 15:00 ` Xukai Wang
2026-07-10 15:14 ` Xukai Wang
2026-07-13 4:22 ` K Prateek Nayak
2026-07-13 5:01 ` Xukai Wang [this message]
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=637f7ce3-e7d4-47d2-9aa8-b3faabdb59e7@zohomail.com \
--to=kingxukai@zohomail.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=jstultz@google.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.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 \
/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