From: "Jean-Michel Hemstedt" <jean-michel.hemstedt@alcatel.be>
To: "Don Cohen" <don-nf@isis.cs3-inc.com>, <netfilter-devel@lists.samba.org>
Subject: Re: performance issues (nat / conntrack)
Date: Sun, 23 Jun 2002 11:14:45 +0200 [thread overview]
Message-ID: <008101c21a96$6feec210$0489cb8a@etbx180> (raw)
In-Reply-To: 15635.25545.469973.950625@isis.cs3-inc.com
> > I'm doing some tcp benches on a netfilter enabled box and noticed
> > huge and surprising perf decrease when loading iptable_nat module.
> Rather similar to the results I posted about a week ago.
yes, i noticed it after my tests, sorry for this new thread. ;o)
>
> > - Another (old) question: why are conntrack or nat active when there are
> > no rules configured (using them or not)?
> I noticed this too. After a test using conntrack the next test
> without "using" conntrack would perfom poorly unless I did rmmod.
yes, minor issue if documented... but serious risk.
>
> > Since in my test, each connection is ephemeral (<10ms) ...
> When all works correctly, the end of each connection should be noticed
> by conntrack and the connection removed from the table, right?
yep
> In which case the table should never get very full.
ideally yes, but from the conntrack machine perspective, the rest of
the world should not be considered reliable... and in fact it is not.
So, timouts should be reviewed, especially if we know that the average
tcp connection duration on the www is about 20 seconds.
Generic timeouts are not suited to real world traffic.
> So I'm guessing that large number of entries in conntrack table is
> evidence that packets are being lost.
not only: a crashed endpoint breaking the tcp sequence causes also
garbage entries in conntrack (known issue).
> In particular, if the syn
> packet arrives but is never forwarded, you get one of those conntrack
> entries where conntrack thinks (incorrectly) the syn has been
> forwarded so it's waiting for the reply. Ideally the entry should
> not be added to the table until the packet goes out.
??? or is served locally ???
>
> Just wondering, how did you measure cpu load?
>
procinfo -n10 ; [d] for showing differences, which in fact, computes
the differences of cumulated cpu time (got from
/proc/stat) on the given period: (tsys1-tsys0)/T
(I was too lazy to write a script...)
--
Maybe my mail was not clear... I've been surprised by 2 issues:
1) conntrack timeout garbages (which was addressed by you mail)
2) nat performance killing: I really don't understand it, especially
when there's no rule active on it, and thus no translation active.
I can admit the overhead of conntrack because of the number of
entries and criteria it has to manage, but this one can be
dimensionned and understood.
But what about NAT??? In my opinion, the NAT overhead should only
be a delta against the conntrack overhead. But what I noticed is
an overhead as big as the conntrack overhead! why?
_______________________________________________________________________
-jmhe- He who expects nothing shall never be disappointed
next prev parent reply other threads:[~2002-06-23 9:14 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020621132640.2C326472B@lists.samba.org>
2002-06-21 17:35 ` performance issues (nat / conntrack) Don Cohen
2002-06-21 18:26 ` Jean-Michel Hemstedt
2002-06-23 9:14 ` Jean-Michel Hemstedt [this message]
2002-06-25 10:38 ` Jozsef Kadlecsik
2002-06-25 11:11 ` Jean-Michel Hemstedt
2002-06-25 11:48 ` Jozsef Kadlecsik
[not found] <20020625151007.980D14140@lists.samba.org>
2002-06-25 17:00 ` Don Cohen
2002-06-25 21:47 ` Jean-Michel Hemstedt
2002-06-26 14:50 ` Harald Welte
2002-06-26 18:04 ` Jean-Michel Hemstedt
[not found] <20020623132739.12D52455E@lists.samba.org>
2002-06-24 4:46 ` Don Cohen
2002-06-24 6:06 ` Patrick Schaaf
[not found] ` <15638.48245.84830.480715@isis.cs3-inc.com>
2002-06-24 6:48 ` Patrick Schaaf
2002-06-24 6:54 ` Don Cohen
2002-06-24 7:13 ` Patrick Schaaf
2002-06-24 15:18 ` Don Cohen
2002-06-25 2:44 ` Harald Welte
2002-06-20 19:48 Jean-Michel Hemstedt
2002-06-22 16:51 ` Harald Welte
2002-06-23 9:15 ` Jean-Michel Hemstedt
2002-06-25 11:33 ` Jozsef Kadlecsik
2002-06-25 12:47 ` Harald Welte
2002-06-25 14:23 ` Jozsef Kadlecsik
[not found] ` <025001c21c50$763fa880$0489cb8a@etbx180>
2002-06-25 16:07 ` Harald Welte
2002-06-25 21:08 ` Jozsef Kadlecsik
2002-06-25 13:21 ` Jean-Michel Hemstedt
2002-06-25 13:51 ` Harald Welte
2002-06-25 14:33 ` Jozsef Kadlecsik
2002-06-25 14:51 ` Jean-Michel Hemstedt
2002-06-25 16:11 ` Harald Welte
2002-06-25 13:52 ` Patrick Schaaf
2002-06-25 14:53 ` Jozsef Kadlecsik
2002-06-25 15:22 ` Balazs Scheidler
2002-06-25 10:35 ` Jozsef Kadlecsik
2002-06-25 12:42 ` Jean-Michel Hemstedt
2002-06-25 13:50 ` Patrick Schaaf
2002-06-25 19:03 ` Harald Welte
2002-06-25 13:56 ` Alex Bennee
2002-06-25 14:17 ` Jozsef Kadlecsik
2002-06-25 15:13 ` Balazs Scheidler
2002-06-25 19:06 ` Harald Welte
2002-06-26 8:18 ` Balazs Scheidler
2002-06-27 2:21 ` Andrew Smith
2002-06-27 11:24 ` Harald Welte
2002-06-29 5:25 ` Andrew Smith
2002-06-25 19:01 ` Harald Welte
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='008101c21a96$6feec210$0489cb8a@etbx180' \
--to=jean-michel.hemstedt@alcatel.be \
--cc=don-nf@isis.cs3-inc.com \
--cc=netfilter-devel@lists.samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.