From: "Stephen J. Smoogen" <smooge@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: netfilter conntrack performance problems
Date: Mon, 19 Sep 2005 15:10:16 -0600 [thread overview]
Message-ID: <80d7e4090509191410763a5d2f@mail.gmail.com> (raw)
In-Reply-To: <20050919203442.GA4111@hsz.tmp.hu>
On 9/19/05, Horvath Szabolcs <hsz@sth.sze.hu> wrote:
> Hi!
>
> We have a firewalling-only machine, called natbox. Traffic is around
> 20-40 MByte/s, ~400 clients snatted to 4 public IPs, approx. 10000-40000
> parallel connections.
>
>
> from the munin graphics, I see the nic's interrupts generate the machine
> load. What can we tuning to provide better performance?
>
> It is a P4 3.0GHz with 1 GB ram, is this computer enough to do this task?
>
>
This is more dependant on what kind of network cards are on the box,
if they can use NAPI... are they PCI, PCI-X, PCI-Express, and how well
they work. there is also a dependency on the network switches and how
they interact with the network cards. [The SNAT also has an overhead
which probably generates irq's.. not sure how much though.]
A couple of parameters I have seen improve things:
1) use the same network card on both interfaces. and use a network
card that has a good NAPI history. Harald Welt had a couple listed in
his blog a while back.. I think the e1000 came out ok.
2) I think that having the cards on the same PCI-X bus can help... but
could be wrong here.. major allergies and my head isnt too clear. If
you can find a set of cards/motherboard with 2 PCI-Express slots..
that would be best.
3) Make sure that the switches are able to handle the load. We had a
problem where we thought a firewall was crap but it turned out to be
that the switch was the problem causing a lot of resends.. this
generated a lot of load.
4) Try out jumbo frames. I think we found this decreased load.. but
was dependant on the switches/routers handling it correctly.
5) Finally.. does changing this have any effect
irq moderation: disabled
have to take more allergy medicine.. hope this helped.
--
Stephen J Smoogen.
CSIRT/Linux System Administrator
next prev parent reply other threads:[~2005-09-19 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-19 20:34 netfilter conntrack performance problems Horvath Szabolcs
2005-09-19 21:10 ` Stephen J. Smoogen [this message]
2005-09-20 10:38 ` KOVACS Krisztian
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=80d7e4090509191410763a5d2f@mail.gmail.com \
--to=smooge@gmail.com \
--cc=netfilter@lists.netfilter.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