From: "Jean-Michel Hemstedt" <jean-michel.hemstedt@alcatel.be>
To: "Harald Welte" <laforge@gnumonks.org>
Cc: "Jozsef Kadlecsik" <kadlec@blackhole.kfki.hu>,
<netfilter-devel@lists.samba.org>
Subject: Re: performance issues (nat / conntrack)
Date: Tue, 25 Jun 2002 16:51:37 +0200 [thread overview]
Message-ID: <028101c21c57$cf018130$0489cb8a@etbx180> (raw)
In-Reply-To: 20020625135113.GE7975@naboo.ols.wavesec.org
> > But this raises one additional problem:
> > 1) the hash index size and the hash total size should be configurable
> > separately (get rid of that factor 8, and use a free list for the tuple
> > allocation).
> > 2) NAT hash sizes should also be configurable independently from conntrack.
> > Normally the nat hashes are smaller than conntrack hash, since conntrack
> > is based on ports, while nat is not.
>
> both of this is already true. look at the module loadtime parameters of
> ip_conntrack.o and iptable_nat.o
right for conntrack, but i can't find something similar for nat:
conntrack:
----------
- ip_conntrack_htable_size : load time param
: allocated at init
: 16? bytes per list head
- ip_conntrack_max: /proc setting only after the module is loaded
: tuples allocated on demand (kmem_chache_alloc)
: 392 bytes per tuple.
=> that's why i'm not swapping when my table is not full...
but in ip_conntrack_init():
1093 ip_conntrack_max = 8 * ip_conntrack_htable_size;
=> when the module is loaded, it is loaded with this default value.
could be good to have it as loadable parameter in order to
save it and restore in modules.conf
nat:
----
(from ip_nat_init):
- ip_nat_htable_size = ip_conntrack_htable_size; (not configurable)
: allocated at init twice
(for bysource and byisproto hashes)
- max tuples??? haven't found any value neither any config data.
(is it in patch-o-matic)?
but the tuples are allocated on demand.
PS: the fact that tuples are allocated on demand (392bytes/tuple) and not at
init
explains also why I was not swapping. (just facts ;o))
next prev parent reply other threads:[~2002-06-25 14:51 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-20 19:48 performance issues (nat / conntrack) 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 [this message]
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
2002-06-25 20:53 ` conntrack DoS Henrik Nordstrom
2002-06-25 21:47 ` Jozsef Kadlecsik
2002-06-25 22:42 ` Henrik Nordstrom
2002-06-27 8:26 ` Jozsef Kadlecsik
[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
2002-06-25 10:38 ` Jozsef Kadlecsik
2002-06-25 11:11 ` Jean-Michel Hemstedt
2002-06-25 11:48 ` Jozsef Kadlecsik
[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
[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
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='028101c21c57$cf018130$0489cb8a@etbx180' \
--to=jean-michel.hemstedt@alcatel.be \
--cc=kadlec@blackhole.kfki.hu \
--cc=laforge@gnumonks.org \
--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.