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 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 <[EMAIL PROTECTED]> Applied, thanks Eric. It reminds me that flow_hash_shift should at some point be dynamically sized. However, currently the flow cache isn't so heavily used and there are more important fish to fry right now. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html