From: Soma Das <somadas1@linux.ibm.com>
To: Li Wang <wangli.ahau@gmail.com>, John Stultz <jstultz@google.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] sched_football: fix false failures on many-CPU systems
Date: Thu, 16 Apr 2026 13:56:17 +0530 [thread overview]
Message-ID: <17da2ea7-b1f8-49ab-95ed-30083592e7fa@linux.ibm.com> (raw)
In-Reply-To: <CANgNiRxV5Kd1Y3hHjM4mXaE2sdjhCQdp4Ff85YdqxL_DOSZdgw@mail.gmail.com>
Hi Li, Jan, John,
Thank you all for the detailed review and discussion.
Based on the feedback, here is what I plan to incorporate in v2:
*
Pin only defense threads (one per CPU), leave offense unpinned
*
Replace |get_numcpus()| with |tst_ncpus_available()| to handle
offline CPUs
*
Drop the RT throttle disabling entirely - unnecessary once defense
is pinned per CPU
*
Remove the |usleep()| / |tst_check_preempt_rt()| block after kickoff
*
Add |join_threads()| before |pthread_barrier_destroy()| for clean
|-i N| reruns (thanks Jan for catching this)
*
Split into separate patches - at minimum fixes #3 and #4 will be
separate
*
Update commit message to clarify the test now verifies per-CPU
SCHED_FIFO priority ordering
Will send v2 soon.
Thanks,
Soma
On 16/04/26 11:23 AM, Li Wang wrote:
>> That's why I tend to believe disabling throttling for this specific test is the
>> wise and practical approach.
> However, back to the original patch, disabling throttling was
> indeed a bit of an overprotection based on the pined method
> (I didn't realize that before).
>
> Once we go with pin 'defense' threads to every CPU, while leaving
> the offense thread unpinned, this throttling can be kept enabled.
>
> Whichever CPU gets unthrottled first will instantly execute its local
> defensetask, completely starving the lower-priority offense task.
>
> It relies on strict local preemption to perfectly mask the SMP sequential
> unthrottling latency, fixing the test without needing to disable
> sched_rt_runtime_us in the kernel.
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-04-16 8:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-12 13:05 [LTP] [PATCH] sched_football: fix false failures on many-CPU systems Soma Das
2026-04-14 15:54 ` Jan Polensky
2026-04-15 9:52 ` Li Wang
2026-04-15 15:20 ` Jan Polensky
2026-04-15 20:21 ` John Stultz via ltp
2026-04-16 3:23 ` Li Wang
2026-04-16 5:53 ` Li Wang
2026-04-16 8:26 ` Soma Das [this message]
2026-04-16 8:40 ` Li Wang
2026-04-14 16:59 ` [LTP] " linuxtestproject.agent
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=17da2ea7-b1f8-49ab-95ed-30083592e7fa@linux.ibm.com \
--to=somadas1@linux.ibm.com \
--cc=jstultz@google.com \
--cc=ltp@lists.linux.it \
--cc=wangli.ahau@gmail.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