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: [PATCH 0/10] updates for ctnetlink and conntrack core
Date: Mon, 10 Jul 2006 06:42:52 +0200 [thread overview]
Message-ID: <44B1DACC.5030309@trash.net> (raw)
In-Reply-To: <44AE65C0.8030209@netfilter.org>
Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>
>> Patrick McHardy wrote:
>>
>>> [...]
>
> 4% is not too much but it is something, anyway it is true that my
> argument of bandwidth consumption is weak.
>
> But I still like patch 8, if the event cache works fine, I can't see why
> we should force the dumping of all fields. BTW, patch 7 is a new feature
> that I think that we need.
Patch 7 is something we definitely want. For patch 8 we need to come
to a conclusion on how ctnetlink should work first, I prefer to keep
it similar to other network netlink protocols and have it send full
update notifications, containing the entire current state. I also
fail to see the difference it makes, of the four things that are
dumped conditionally (status, refresh, protoinfo, helpinfo) the
first three are always set for new conntracks. The last one only
if we have a helper, but if we don't nothing is dumped anyway.
>> Some more unscientific tests: saving the netlink_trim call by using
>> an allocation size of 200 reduces overhead for the entire notification
>> function (including broadcasting) by about 13% (and also reduces
>> the overruns experienced by conntrack -E for ~390000 packets with
>> 65536 new connections from 17 to 7, which I don't really understand
>> since it shouldn't save any netlink bandwidth and this is a SMP system).
>
>
> Who ever said that benchmarking can be scientific? :) I usually have to
> redo my tests several times. These results are interesting but, in
> previous discussions, I thought that we could not change current
> allocation size because of memory fragmentation issues?
I _decreased_ the size, the messages sent are about 150-200 bytes, yet
we're allocating an entire page, which makes netlink clone the skb
and shrink it to its actual size. We should just to it right ourselves.
next prev parent reply other threads:[~2006-07-10 4:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 2:11 [PATCH 0/10] updates for ctnetlink and conntrack core Pablo Neira Ayuso
2006-07-07 5:13 ` Patrick McHardy
2006-07-07 5:58 ` Patrick McHardy
2006-07-07 6:20 ` Patrick McHardy
2006-07-07 13:46 ` Pablo Neira Ayuso
2006-07-10 4:42 ` Patrick McHardy [this message]
2006-07-13 20:01 ` Pablo Neira Ayuso
2006-07-19 16:39 ` 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=44B1DACC.5030309@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.