linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Leon Woestenberg" <leon.woestenberg@gmail.com>
To: "Andi Kleen" <andi@firstfloor.org>
Cc: benh@kernel.crashing.org,
	"Arjan van de Ven" <arjan@linux.intel.com>,
	ksummit-2008-discuss@lists.linux-foundation.org,
	"Linux Kernel list" <linux-kernel@vger.kernel.org>,
	"Jeremy Kerr" <jk@ozlabs.org>,
	RT <linux-rt-users@vger.kernel.org>
Subject: Re: [Ksummit-2008-discuss] Delayed interrupt work, thread pools
Date: Wed, 2 Jul 2008 13:19:39 +0200	[thread overview]
Message-ID: <c384c5ea0807020419o4d5b9ff1j34d4dc11a41dd2@mail.gmail.com> (raw)
In-Reply-To: <87zlp0sg4l.fsf@basil.nowhere.org>

Hello,

(including linux-rt-users in the CC:, irqthreads are on-topic there)

On Wed, Jul 2, 2008 at 1:02 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
>
>>> how much of this would be obsoleted if we had irqthreads ?
>>
>> I'm not sure irqthreads is what I want...
>>
> I also think interrupts threads are a bad idea in many cases because
> their whole "advantage" over classical interrupts is that they can
> block. Now blocking can be usually take a unbounded potentially long
> time.
>
> What do you do when there are more interrupts in that unbounded time?
>
If by irqthreads the -rt implementation is meant, isn't this what happens:

irq kernel handler masks the source interrupt
irq handler awakes the matching irqthread (they always are present)
irqthread is scheduled, does work and returns
irq kernel unmasks the source interrupt

> Create more interrupt threads?  At some point you'll have hundreds
> of threads doing nothing when you're unlucky.
>
Each irqthread handles one irq.
So now new irq thread would spawn for any interrupt.

Regards,
-- 
Leon

       reply	other threads:[~2008-07-02 11:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1214916335.20711.141.camel@pasglop>
     [not found] ` <486B0298.5030508@linux.intel.com>
     [not found]   ` <1214977447.21182.33.camel@pasglop>
     [not found]     ` <87zlp0sg4l.fsf@basil.nowhere.org>
2008-07-02 11:19       ` Leon Woestenberg [this message]
2008-07-02 11:24         ` [Ksummit-2008-discuss] Delayed interrupt work, thread pools Andi Kleen

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=c384c5ea0807020419o4d5b9ff1j34d4dc11a41dd2@mail.gmail.com \
    --to=leon.woestenberg@gmail.com \
    --cc=andi@firstfloor.org \
    --cc=arjan@linux.intel.com \
    --cc=benh@kernel.crashing.org \
    --cc=jk@ozlabs.org \
    --cc=ksummit-2008-discuss@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).