From: Darren Hart <dvhltc@us.ibm.com>
To: "Robert de Vries" <robert.h.de.vries@gmail.com>
Cc: "Steven Rostedt" <rostedt@goodmis.org>,
"Ingo Molnar" <mingo@elte.hu>,
RT <linux-rt-users@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"john stultz" <johnstul@us.ibm.com>
Subject: Re: [PATCH RT] Only run softirqs from the irq thread if the irq affinity is set to 1 CPU
Date: Thu, 9 Aug 2007 11:20:42 -0700 [thread overview]
Message-ID: <200708091120.42281.dvhltc@us.ibm.com> (raw)
In-Reply-To: <47db5b910708090249k2c80e3e8tdc062d89ed4359fc@mail.gmail.com>
On Thursday 09 August 2007 02:49:27 Robert de Vries wrote:
> On 8/8/07, Steven Rostedt <rostedt@goodmis.org> wrote:
> > On Wed, 2007-08-08 at 14:16 -0700, Darren Hart wrote:
> > > It seems to me that this patch will reduce the frequency of
> > > irqd/softirqd starvation, but the core problem still exists: softirq
> > > tasks can't migrate to other CPUs to perform their work if a higher
> > > priority task preempts them. I'm wondering if we want to keep special
> > > casing things to minimize the problem or not - seems to me the worst
> > > case is still the same - and isn't the worst case the only case that
> > > matters (for -rt)?
> >
> > softirq tasks should never migrate to other CPUs. A softirq exists in
> > every CPU. So if you trigger a softirq on CPU1 it will only run on CPU1.
> > If a high priority task preempts it, that same softirq can still run on
> > other CPUS. Only the thread that was preempted wont switch. But that's
> > the characteristic of softirqs, and that's how people who use them in
> > development expect them to work.
>
> Wouldn't a developer of a real-time system configure the system so
> that interrupts do not interfere with the real-time tasks running on a
> specific CPU?
> In other words, is this problem not simply a misconfiguration of the
> system? I personally redirect all interrupts away from the CPU's where my
> real-time tasks run and only allow the interrupts that I want to
> handle in my application on the CPU's where I handle them so as to
> minimize latency.
I think the goal is to try and have a generally robust default setup - but the
interrupt shielding you are suggesting seems like it will become more and
more relevant as the number of CPUs increases.
--
Darren Hart
IBM Linux Technology Center
Realtime Linux Team
prev parent reply other threads:[~2007-08-09 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 20:42 Steven Rostedt
2007-08-08 21:16 ` Darren Hart
2007-08-08 21:45 ` Steven Rostedt
2007-08-09 9:49 ` Robert de Vries
2007-08-09 12:38 ` Steven Rostedt
2007-08-09 18:20 ` Darren Hart [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=200708091120.42281.dvhltc@us.ibm.com \
--to=dvhltc@us.ibm.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=robert.h.de.vries@gmail.com \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/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
Powered by JetHome