From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>,
Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>
Subject: Re: [RFC] ctnetlink events drop benchmark
Date: Wed, 14 Jun 2006 15:55:29 +0200 [thread overview]
Message-ID: <44901551.8080400@trash.net> (raw)
In-Reply-To: <448ED2DD.30100@netfilter.org>
Pablo Neira Ayuso wrote:
> Hi,
>
> Finally, I've got some results in my test enviroment about the ctnetlink
> event drop issue. The machine used as firewall is a PIII 866 256 Mbytes
> RAM, two NIC realtek 8139 100Mbits running debian unstable with linux
> kernel 2.6.16.
>
> I have run the same test with three different socket queue sizes:
> 107.520 (default)
> 215.040 (x2)
> 430.080 (x4)
>
> I used netperf to create the connections with a shell script that loops
> calling netperf -H ip -l 3 &.
>
> To get the number of events dropped I've used the following:
>
> $ conntrackd & (run as daemon)
> $ conntrackd -s (request statistics)
>
> Results are available in:
>
> http://people.netfilter.org/pablo/ctnetlink/events.eps
Does "events" mean events/s?
> Currently nlmsg_seq is not set in ctnetlink events, if we set it, we can
> do some kind of sequence tracking on netlink. If an event gets lost, we
> can request a resync with the conntrack via dump_conntrack.
nlmsg_seq should only (but in that case it really should) be set for
responses to queries, so userspace can associate responses with queries.
Drops are reported as -ENOBUFS socket errors to all multicast listeners.
> Another choice could be relax conntrackd states transitions, currently
> the valid transition sequence is: NEW -> UPDATE -> DESTROY, if an UPDATE
> event is received but no NEW was seen previously, then the event is
> ignored. Maybe this is too tight, but since I'm validating the whole
> thing I prefer remaining "tight" at the moment.
I guess this could be made configurable, but I think for testing
purposes its better to be stricter so it doesn't shadow real
problems.
next prev parent reply other threads:[~2006-06-14 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 14:59 [RFC] ctnetlink events drop benchmark Pablo Neira Ayuso
2006-06-14 7:44 ` Jozsef Kadlecsik
2006-06-14 8:04 ` Jozsef Kadlecsik
2006-06-14 12:24 ` Pablo Neira Ayuso
2006-06-14 11:38 ` Pablo Neira Ayuso
2006-06-14 13:55 ` Patrick McHardy [this message]
2006-06-14 16:39 ` Pablo Neira Ayuso
2006-06-14 18:36 ` Patrick McHardy
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=44901551.8080400@trash.net \
--to=kaber@trash.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pablo@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 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.