diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2005-12-14 10:13:48 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-04 00:10:29 +0300 |
commit | 318360646941d6f3d4c6e4ee99107392728a4079 (patch) | |
tree | 26ab4ddc68f917dd4e8813ace504956620eba3a8 /net/ipv4/sysctl_net_ipv4.c | |
parent | df3271f3361b61ce02da0026b4a53e63bc2720cb (diff) | |
download | linux-318360646941d6f3d4c6e4ee99107392728a4079.tar.xz |
[NETFILTER] ip_tables: NUMA-aware allocation
Part of a performance problem with ip_tables is that memory allocation
is not NUMA aware, but 'only' SMP aware (ie each CPU normally touch
separate cache lines)
Even with small iptables rules, the cost of this misplacement can be
high on common workloads. Instead of using one vmalloc() area
(located in the node of the iptables process), we now allocate an area
for each possible CPU, using vmalloc_node() so that memory should be
allocated in the CPU's node if possible.
Port to arp_tables and ip6_tables by Harald Welte.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
0 files changed, 0 insertions, 0 deletions