Le mercredi 05 mai 2010 à 09:18 +0200, Jiri Slaby a écrit : > On 05/05/2010 12:27 AM, Andrew Morton wrote: > > On Mon, 3 May 2010 03:02:00 +0800 > > Changli Gao <xiaosuo@xxxxxxxxx> wrote: > > > >> use kmalloc() to allocate fdmem if possible. > >> > >> vmalloc() is used as a fallback solution for fdmem allocation. A new helper > >> function __free_fdtable() is introduced to reduce the lines of code. > >> > >> A potential bug, vfree() a memory allocated by kmalloc(), is fixed. > >> > > > > Seems a reasonable thing to do. > > Hi, > > So didn't we converge to something like this: > http://lkml.org/lkml/2010/5/3/53 > instead of this patch? > > This > > > It might also be reasonable to make > > vmalloc() try kmalloc() first, but that's a separate exercise. > > and this > > > This most definitely should have __GFP_NOWARN. > > is discussed there too btw. > > thanks, Its a start, I guess we also need some NUMA capability as well. For example, iptables could use such an allocator only if it is NUMA enabled. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html