mirror-linux/include
Florian Westphal 482cfc3185 netfilter: xtables: avoid percpu ruleset duplication
We store the rule blob per (possible) cpu.  Unfortunately this means we can
waste lot of memory on big smp machines. ipt_entry structure ('rule head')
is 112 byte, so e.g. with maxcpu=64 one single rule eats
close to 8k RAM.

Since previous patch made counters percpu it appears there is nothing
left in the rule blob that needs to be percpu.

On my test system (144 possible cpus, 400k dummy rules) this
change saves close to 9 Gigabyte of RAM.

Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2015-06-12 14:27:10 +02:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings net: phy: dp83867: Add TI dp83867 phy 2015-06-03 19:41:04 -07:00
keys
kvm
linux netfilter: xtables: avoid percpu ruleset duplication 2015-06-12 14:27:10 +02:00
math-emu
media
memory
misc
net tcp: fill shinfo->gso_size at last moment 2015-06-11 16:33:11 -07:00
pcmcia
ras
rdma
rxrpc
scsi
soc
sound
target target: Use a PASSTHROUGH flag instead of transport_types 2015-05-30 19:58:11 -07:00
trace Merge branch 'for-linus' of git://git.kernel.dk/linux-block 2015-06-03 16:35:00 -07:00
uapi net/ethtool: Add current supported tunable options 2015-06-11 00:36:37 -07:00
video
xen xen/events: don't bind non-percpu VIRQs with percpu chip 2015-05-19 19:55:36 +01:00
Kbuild