[lkml]   [2001]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectBen Greear <>
> > (note that in case of shared interrupts, another 'innocent' device might
> > stay disabled for some short amount of time as well - but this is not an
> > issue because this mitigation does not make that device inoperable, it
> > just delays its interrupt by up to 10 msecs. Plus, modern systems have
> > properly distributed interrupts.)
> I'm all for anything that speeds up (and makes more reliable) high network
> speeds, but I often run with 8+ ethernet devices, so IRQs have to be shared,
> and a 10ms lockdown on an interface could lose lots of packets.

Yes, any interrupt mitigation should depend on the interrupt type - and
only the driver knows which interrupts are urgent.
Unconditionally disabling an interrupt for 10 ms is bad.

An idea for a network driver:

Under load TxDone (one packet finished) is unimportant, TxIdle (Tx
process stopped due to out of buffers) while netif_stop_queue() must be
handled ASAP.

I've tried a driver that disabled TxDone and TxIdle entirely while not
netif_stop_queued, only if the queue was stopped it enabled them. A
timer handled TxDone and start_xmit polled for TxDone, too.

Result: the performance for bulk TCP transfers was around 30 % higher.

But the 10ms timer latency killed the performance of 'ping -l'.

bcrl could you try that with ns83820?

* Do not use the interrupt holdoff register - it might hold off urgent
interrupt sources.
* instead disable TxDone and/or RxDone if too many interrupt arrive
* I think the ns83820 has a general purpose timer interrupt, correct?
Set it to 400 us.
* If the timer interrupt occurs and neither TxDone nor RxDone are set,
then disable the timer and switch back to unmitigated TxDone, RxDone

Then you can limit the interrupts without sacrifying immediate response
to TxIdle while in netif_stop_queue() state.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.020 / U:2.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site