netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.7 tulip performance (with NAPI)
@ 2004-10-05 23:42 Ben Greear
  2004-10-06 19:21 ` Robert Olsson
  0 siblings, 1 reply; 13+ messages in thread
From: Ben Greear @ 2004-10-05 23:42 UTC (permalink / raw)
  To: 'netdev@oss.sgi.com'

Hello!

NOTE:  This test machine is running a P-IV 2.8Ghz processor, 32/33 PCI
bus, 512MB RAM, and kernels compiled for the P-IV processor.  I
am using a modified pktgen that can receive as well as transmit
packets, so I can get pkt-drop stats, etc.  User-space is FC2,
and X is running during these tests.


I just started doing some performance comparisons of
pktgen with a 4-port NIC (p430tx) that uses the tulip driver.  On 2.4.27
I can drive two ports at 95+Mbps, full duplex and the system is
very responsive.  If I try this on 2.6.7 (with tulip compiled to use
NAPI), I can still get the speed on the two ports, but the deskop
is very jittery.

If I try to start another pktgen test between the second two ports
on 2.4.27 I start seeing a reasonable number of packet drops, and the
bandwidth drops to about 55Mbps bi-directional.  The desktop is still
responsive.

If I try this on 2.6.7 the desktop jitter gets even worse.  The pktgen
tests start sending at about 7kpps (I'm using 1514 byte packets) but
I only receive about 1kpps.  My assumption is that the pktgen thread is
getting all the cpu and starving the NAPI receive thread.

I tried setting the NICE level of pktgen to -10 and softirq to -18.  I
still see way more packets transmitted than received.

I tried compiling the tulip driver to not use NAPI in 2.6.7.  This
achieved similar throughput (55Mbps on each NIC, full duplex) as the 2.4.27
kernel, and slowed down the pktgen transmitter so that fewer packets
were actually dropped.  The responsiveness is not good, but it is not
any worse than when using NAPI.

So, for my testing with send+receive traffic, it appears that tulip+NAPI
is actually not a good option.

If anyone has other performance comparisons with tulip on modern kernels,
please share!

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-10-11  4:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05 23:42 2.6.7 tulip performance (with NAPI) Ben Greear
2004-10-06 19:21 ` Robert Olsson
2004-10-06 21:37   ` Ben Greear
2004-10-07  0:56     ` Ben Greear
2004-10-07  1:08       ` David S. Miller
2004-10-07 18:09         ` Ben Greear
2004-10-11  4:07           ` David S. Miller
2004-10-07 21:11       ` Robert Olsson
2004-10-07 21:47         ` Ben Greear
2004-10-07 22:13           ` Robert Olsson
2004-10-07 23:44         ` Lennert Buytenhek
2004-10-08  9:25           ` P
2004-10-08  9:28             ` Lennert Buytenhek

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).