]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: ULOG/nfnetlink_log: Use better default value for 'nlbufsiz'
authorHolger Eitzenberger <heitzenberger@astaro.com>
Sat, 4 Feb 2006 10:13:14 +0000 (02:13 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 5 Feb 2006 07:51:18 +0000 (23:51 -0800)
commit1175bd0d7ca64467a02e0a979f74d239f5c908d0
tree775c7aa2e2e6069cb238833e5328a7b42b23041a
parent49e648b0a94c8b2740446b3959bb636e12cafd1c
[NETFILTER]: ULOG/nfnetlink_log: Use better default value for 'nlbufsiz'

Performance tests showed that ULOG may fail on heavy loaded systems
because of failed order-N allocations (N >= 1).

The default value of 4096 is not optimal in the sense that it actually
allocates _two_ contigous physical pages.  Reasoning: ULOG uses
alloc_skb(), which adds another ~300 bytes for skb_shared_info.

This patch sets the default value to NLMSG_GOODSIZE and adds some
documentation at the top.

Signed-off-by: Holger Eitzenberger <heitzenberger@astaro.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebt_ulog.c
net/ipv4/netfilter/ipt_ULOG.c
net/netfilter/nfnetlink_log.c