[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 01 Jan 2008 13:44:15 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: [IPSEC] flow : NUMA aware hash table allocation
Using __get_free_pages() has some drawbacks :
1) Not NUMA aware
2) 2^X page granularity :
On arches with big PAGE_SIZE, we waste some ram for each cpu.
(We currently use 1024 pointers, that is at most 8192 bytes, but
PAGE_SIZE can be 65536 for example : With say 64 possible cpus,
thats about 56*64 Kbytes that are wasted)
Using kmalloc_node() can help to solve these two points.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
net/core/flow.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
View attachment "flow.patch" of type "text/plain" (887 bytes)
Powered by blists - more mailing lists