* Re: [Ksummit-2008-discuss] Delayed interrupt work, thread pools
[not found] ` <87zlp0sg4l.fsf@basil.nowhere.org>
@ 2008-07-02 11:19 ` Leon Woestenberg
2008-07-02 11:24 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Leon Woestenberg @ 2008-07-02 11:19 UTC (permalink / raw)
To: Andi Kleen
Cc: benh, Arjan van de Ven, ksummit-2008-discuss, Linux Kernel list,
Jeremy Kerr, RT
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Ksummit-2008-discuss] Delayed interrupt work, thread pools
2008-07-02 11:19 ` [Ksummit-2008-discuss] Delayed interrupt work, thread pools Leon Woestenberg
@ 2008-07-02 11:24 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2008-07-02 11:24 UTC (permalink / raw)
To: Leon Woestenberg
Cc: benh, Arjan van de Ven, ksummit-2008-discuss, Linux Kernel list,
Jeremy Kerr, RT
Leon Woestenberg wrote:
> Hello,
>
> (including linux-rt-users in the CC:, irqthreads are on-topic there)
Actually it's probably not interesting for this case.
>
> 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
I described this case. If the interrupt handler blocks for a long
time (as Ben asked for) then the interrupts will not be handled
for a long time. Probably not what you want.
BTW this was not a criticsm of rt linux (in whose context
irqthreads make sense as I explained) , just an explanation why they
imho don't make sense (IMHO) in a non hard rt interruptible kernel
and especially not to solve Ben's issue.
>
>> 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.
It was a general description of all possible irqthreads.
-Andi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-02 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 ` [Ksummit-2008-discuss] Delayed interrupt work, thread pools Leon Woestenberg
2008-07-02 11:24 ` Andi Kleen
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).