netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Robert Olsson <Robert.Olsson@data.slu.se>
Cc: Greg Banks <gnb@melbourne.sgi.com>,
	"David S. Miller" <davem@redhat.com>,
	Linux Network Development list <netdev@oss.sgi.com>
Subject: Re: [PATCH] make tg3 NAPI support configurable
Date: Sat, 10 Jan 2004 20:49:46 -0500	[thread overview]
Message-ID: <4000ABBA.50601@pobox.com> (raw)
In-Reply-To: <16354.64258.364153.488309@robur.slu.se>

Robert Olsson wrote:
> Greg Banks writes:
> 
>  > I've been having some issues with irq rates and cpu usage in the
>  > tg3 driver.  In short, on Altix machines they're far too high.
>  > It turned out that reverting the driver to its pre-NAPI interrupt
>  > coalescing scheme made the situation a lot better.
>  > 
>  > How much better?  Running 8192 byte UDP packets across gige
>  > with NAPI takes 99.5% of a CPU to service 29,100 irqs per second.
>  > With the pre-NAPI code the figures are 36.0% CPU and 4880 irq/sec.
>  > Similar improvements are seen for non-fragmented UDP and for TCP.
> 
>  Hello!
> 
>  You can use coalescing with NAPI as well, e1000 and other drivers
>  are doing this. This will give you same interrupt rates as non-
>  NAPI at low load and "polling" without any interrupts at high load.

Yes, this is something I've been meaning to add to tg3 for months now. 
Adding some about of hardware intr mitigation -in addition to- NAPI will 
not only help on the NAPI "hard case" of moderate load and a super-fast 
CPU, but also help avoid certain silicon bugs...


>  Furthermore NAPI can be extended to schedule dev->poll even for TX-
>  interrupts. There is pacth for e1000 doing this. We see about 5-8% 
>  overall system packet improvement with this.

tg3 already schedules for TX, so we've got that part covered :)

	Jeff

  reply	other threads:[~2004-01-11  1:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19 12:48 [PATCH] make tg3 NAPI support configurable Greg Banks
2003-12-19 13:20 ` Robert Olsson
2004-01-11  1:49   ` Jeff Garzik [this message]
2004-01-12  0:12     ` Greg Banks
2004-01-13 19:09     ` Robert Olsson
  -- strict thread matches above, loose matches on Subject: below --
2004-01-14  0:23 Feldman, Scott
2004-01-15  8:01 jc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4000ABBA.50601@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=Robert.Olsson@data.slu.se \
    --cc=davem@redhat.com \
    --cc=gnb@melbourne.sgi.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).