Re: [IPSEC] flow : NUMA aware hash table allocation

2008-01-01 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 01 Jan 2008 13:44:15 +0100 > 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 8

[IPSEC] flow : NUMA aware hash table allocation

2008-01-01 Thread Eric Dumazet
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