From: Peter Zijlstra <peterz@infradead.org>
To: John Stultz <jstultz@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Pavankumar Kondeti <pkondeti@codeaurora.org>,
John Dias <joaodias@google.com>,
Connor O'Brien <connoro@google.com>,
Rick Yiu <rickyiu@google.com>, John Kacur <jkacur@redhat.com>,
Qais Yousef <qyousef@google.com>,
Chris Redpath <chris.redpath@arm.com>,
Abhijeet Dharmapurikar <adharmap@quicinc.com>,
Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Thomas Gleixner <tglx@linutronix.de>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Joel Fernandes <joel@joelfernandes.org>,
Alexander Gordeev <agordeev@linux.ibm.com>,
kernel-team@android.com,
Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>,
"J . Avila" <elavila@google.com>
Subject: Re: [PATCH v5 3/3] softirq: defer softirq processing to ksoftirqd if CPU is busy with RT
Date: Wed, 16 Nov 2022 11:37:08 +0100 [thread overview]
Message-ID: <Y3S9VH+ThqbUDV4Y@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20221116075929.453876-4-jstultz@google.com>
On Wed, Nov 16, 2022 at 07:59:28AM +0000, John Stultz wrote:
> From: Pavankumar Kondeti <pkondeti@codeaurora.org>
>
> Defer the softirq processing to ksoftirqd if a RT task is
> running or queued on the current CPU. This complements the RT
> task placement algorithm which tries to find a CPU that is not
> currently busy with softirqs.
>
> Currently NET_TX, NET_RX, BLOCK and IRQ_POLL softirqs are only
> deferred as they can potentially run for long time.
>
> Additionally, this patch stubs out ksoftirqd_running() logic,
> in the CONFIG_RT_SOFTIRQ_AWARE_SCHED case, as deferring
> potentially long-running softirqs will cause the logic to not
> process shorter-running softirqs immediately. By stubbing it out
> the potentially long running softirqs are deferred, but the
> shorter running ones can still run immediately.
So I'm hating on the new config space, and dubious of the placement
logic (I'm thinking much the same gain can be had when actual softirq
processing stops quickly when we want to reschedule).
However I still have these here patches (revived from the dead):
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=core/softirq
That fix some of this same... I think the last time this fell on its
face due to regressions and me not having time/energy to chase them down
and the author of the hack-of-the-day solution walking off or something
like that.
I think this aspect of the whole softirq thing really needs fixing first
and not hidden under some obscure CONFIG symbol.
next prev parent reply other threads:[~2022-11-16 10:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 7:59 [PATCH v5 0/3] Softirq aware -rt scheduling John Stultz
2022-11-16 7:59 ` [PATCH v5 1/3] softirq: Add generic accessor to percpu softirq_pending data John Stultz
2022-11-16 7:59 ` [PATCH v5 2/3] sched: Avoid placing RT threads on cores handling long softirqs John Stultz
2022-11-16 7:59 ` [PATCH v5 3/3] softirq: defer softirq processing to ksoftirqd if CPU is busy with RT John Stultz
2022-11-16 10:37 ` Peter Zijlstra [this message]
2022-11-18 8:18 ` John Stultz
2022-12-08 17:15 ` Joel Fernandes
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=Y3S9VH+ThqbUDV4Y@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=adharmap@quicinc.com \
--cc=agordeev@linux.ibm.com \
--cc=chris.redpath@arm.com \
--cc=connoro@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=elavila@google.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=jkacur@redhat.com \
--cc=joaodias@google.com \
--cc=joel@joelfernandes.org \
--cc=jstultz@google.com \
--cc=juri.lelli@redhat.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pkondeti@codeaurora.org \
--cc=qyousef@google.com \
--cc=rickyiu@google.com \
--cc=rostedt@goodmis.org \
--cc=satyap@codeaurora.org \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
/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®