Eric Dumazet wrote: > Le mardi 13 avril 2010 à 21:09 +0800, Changli Gao a écrit : >> On Tue, Apr 13, 2010 at 8:44 PM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote: >>> Thats theory. And for sparse arrays, that pro might be true. >>> In your case, you prealloc all the array, using more ram than vmalloc... >>> >> I prealloc all the arrays, because all of them are needed later in any way. >> > > Yes, that is why vmalloc() is perfect for this case. No extra memory for > management, but one pointer for each page of memory. I agree, if it works for conntrack, it certainly also works for nfnetlink_queue. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html