public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: danial_thom@yahoo.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Dropping Packets in 2.6.17
Date: Thu, 22 Jun 2006 14:27:56 +0100	[thread overview]
Message-ID: <449A9ADC.9070800@draigBrady.com> (raw)
In-Reply-To: <20060622113147.3496.qmail@web33304.mail.mud.yahoo.com>

Danial Thom wrote:
> I'm trying to make a case for using linux as a
> network appliance, but I can't find any
> combination of settings that will keep it from
> dropping packets at an unacceptably high rate.
> The test system is a 1.8Ghz Opteron with intel
> gigE cards running 2.6.17. I'm passing about 70K
> pps through the box, which is a light load, but
> userland activities (such as building a kernel)
> cause it to lose packets, even with backlog set
> to 20000. I had the same problem with 2.6.12 and
> abandoned the effort. Has anything been done
> since to give priority to networking? You can't
> have a network appliance drop packets when some
> application is gathering stats or a user is
> looking at a graph. What tunings are available?

For reference with 2.4.20 on a dual 3.4GHz xeon
and 2 x e1000 cards, I was able to capture, classify
and do sophisticated statistical calculations on
625Kpps per interface (1.3 million packets per second).
The bottleneck at this point was memory bandwidth.
Allowing some drops the average rate went up to the
PCI bottleneck of about 850kpps/port.
Classification and Computation was done in userspace.

Note there is a max interrupt rate of around 80K/s
on x86 at least (not sure about opteron), so make
sure you're using NAPI. /proc/interrupts will
show your interrupt rate.

If the packets go to userspace, make sure you're using
CONFIG_PACKET_MMAP

Pádraig.

  parent reply	other threads:[~2006-06-22 13:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 11:31 Dropping Packets in 2.6.17 Danial Thom
2006-06-22 11:55 ` Arjan van de Ven
2006-06-22 12:47   ` Danial Thom
2006-06-22 13:27 ` Pádraig Brady [this message]
2006-06-22 14:01   ` Miquel van Smoorenburg
2006-06-22 14:15     ` Pádraig Brady
2006-06-22 15:03   ` Danial Thom
2006-06-22 15:26     ` Pádraig Brady
2006-06-22 17:10       ` Danial Thom
     [not found] <fa.zPWsMAz4l0d9j5Voaw6Pdkcf//M@ifi.uio.no>
     [not found] ` <fa.Ze3oSnDYEMz3/ITqeLQ2m0GF5wk@ifi.uio.no>
2006-06-23  1:13   ` Robert Hancock
2006-06-23  7:31     ` Brian F. G. Bidulock
2006-06-23 19:48     ` Danial Thom

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=449A9ADC.9070800@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=danial_thom@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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