netdev
[Top] [All Lists]

Re: 2.2 performance on high network load much much better than 2.4(fwd)

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: 2.2 performance on high network load much much better than 2.4(fwd)
From: Andrew Morton <akpm@xxxxxxxxxx>
Date: Mon, 08 Oct 2001 21:48:41 -0700
Cc: Martin Josefsson <gandalf@xxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, manty@xxxxxxxxx
References: <Pine.LNX.4.21.0110080515440.6277-100000@xxxxxxxxxxxxxx> <Pine.GSO.4.30.0110081004320.5473-100000@xxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
jamal wrote:
> 
> ...
>
> >
> > Behaviour under 2.2.19 kernel:
> >
> > Time: 1 minute 8 seconds
> > RX packets (aprox): 3 million overruns: 81000
> >
> > Interrupts as mesured by vmstat 1: from 35000 to 40000 (38500 average)
> >
> 
> Big difference from 6500 ;-> This is over 6 times more.
> 

And the userspace throughput was an order of magnitude better.  Fascinating.

One could envisage one scenario where a less efficient interrupt
routine results in more throughput:  suppose the ISR takes 9 usecs
and frames are arriving at 10 usec intervals.  That's one interrupt per
frame and userspace starvation.  If you slow the ISR down a bit then
it will end up handling two packets per interrupt and, assuming that
the entry and exit is the majority of the cost, you'll end up actually
yielding more time for userspace processing.  But the most this can
possibly account for is a factor of two, not a factor of ten.

The 2.2 and 2.4 drivers aren't significantly different.  2.4 has
max_interrupt_work of 32, whereas it's only 20 in 2.2.  But that
doesn't explain much.

Weird stuff.  Martin, do you have a URL for udpspam?

<Prev in Thread] Current Thread [Next in Thread>