Skip to content

Commit

Permalink
[NETFILTER] ip_tables: NUMA-aware allocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 3, 2006
1 parent df3271f commit 3183606
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 182 deletions.
Loading

0 comments on commit 3183606

Please sign in to comment.