public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: NAPI and tg3
@ 2003-01-07 22:21 Robert Olsson
  2003-01-08  0:07 ` Steffen Persvold
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Olsson @ 2003-01-07 22:21 UTC (permalink / raw)
  To: Steffen Persvold
  Cc: Robert Olsson, Alan Cox, David S. Miller, Jeff Garzik,
	Linux Kernel Mailing List


Steffen Persvold writes:

 > True, but it doesn't say that if you have two applications loaded on 
 > a SMP box, one which is for example constantly receiving and sending data 
 > from/to the network and doing computations on the data (100 % CPU) while 
 > some other app is only doing computations (also 100 % CPU), the ksoftirqd 
 > which should receive packets and refill the TX and RX rings will be put 
 > last in the queue because of its low nice level (19), thus the network 
 > dependent application has very much lower performance than what could be 
 > achieved with a nice level of 0 or even running the interrupt based 
 > mechanism. A nice level of 0 on ksoftirqd is still a heck of a lot better 
 > than interrupt context isn't it ?


 Yes my scripts test/production has even been setting -19 to ksoftirq just
 for that reason so I almost forgot this issue so I'm happy you brought
 this up. But dev->poll is not the only user of ksoftirq but for heavy
 networking it's gets pretty dominant. So we add something to NAPI_HOWTO 
 and pass the question about ksoftirq default priority to others.

>From a GIGE router in production.

USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
root         3  0.2  0.0     0     0  ?  RWN Aug 15 602:00 (ksoftirqd_CPU0)
root       232  0.0  7.9 41400 40884  ?  S   Aug 15  74:12 gated 

Cheers.
						--ro

^ permalink raw reply	[flat|nested] 12+ messages in thread
* NAPI and tg3
@ 2003-01-04 15:23 Steffen Persvold
  2003-01-06 15:00 ` Steffen Persvold
  0 siblings, 1 reply; 12+ messages in thread
From: Steffen Persvold @ 2003-01-04 15:23 UTC (permalink / raw)
  To: David S. Miller, Jeff Garzik, linux-kernel

Hi guys,

I have access to 8 Dell 2650s with onboard Broadcom BCM5701 chips. They 
are quipped with Dual 2.4 GHz Xeon processors and 1GB of RAM. I'm running 
RedHat 7.3, but with a stock 2.4.20 kernel.

As I understand it the tg3 driver is using NAPI on the 2.4.20 kernel 
(dev->poll). I've been experiencing bad performance (low bandwidth) on 
cluster applications running with LAM for example, but the problem 
manifest itself if you run two bandwidth needy applications in parallel 
on two machines (i.e two processes on each machine, one per processor) 
using Gbe. 

I've disabled the NAPI mode and went back to the old interrupt method and 
this works much better (i.e the bandwidth is now evenly distributed 
between the two applications).

What could be the cause of this problem ? Is it NAPI itself (doing RX 
under scheduler control) or is it something else (for example lock 
contetion).

Any ideas ?

Thanks,
-- 
  Steffen Persvold   |       Scali AS      
 mailto:sp@scali.com |  http://www.scali.com
Tel: (+47) 2262 8950 |   Olaf Helsets vei 6
Fax: (+47) 2262 8951 |   N0621 Oslo, NORWAY



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

end of thread, other threads:[~2003-01-10  9:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-07 22:21 NAPI and tg3 Robert Olsson
2003-01-08  0:07 ` Steffen Persvold
2003-01-09 17:21   ` Robert Olsson
2003-01-10  9:00     ` David S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2003-01-04 15:23 Steffen Persvold
2003-01-06 15:00 ` Steffen Persvold
2003-01-06 16:36   ` Alan Cox
2003-01-06 16:12     ` Steffen Persvold
2003-01-06 17:58       ` Alan Cox
2003-01-07 15:24         ` Steffen Persvold
2003-01-07 18:51           ` Robert Olsson
2003-01-07 20:54             ` Steffen Persvold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox