From: Andrew Morton Date: Sun, 25 Jun 2006 12:47:49 +0000 (-0700) Subject: [PATCH] schedule_on_each_cpu(): reduce kmalloc() size X-Git-Tag: v2.6.18-rc1~989 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b61367732fc273977cc3fb85c272ce1a7bb1f533;p=pandora-kernel.git [PATCH] schedule_on_each_cpu(): reduce kmalloc() size schedule_on_each_cpu() presently does a large kmalloc - 96 kbytes on 1024 CPU 64-bit. Rework it so that we do one 8192-byte allocation and then a pile of tiny ones, via alloc_percpu(). This has a much higher chance of success (100% in the current VM). This also has the effect of reducing the memory requirements from NR_CPUS*n to num_possible_cpus()*n. Cc: Christoph Lameter Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed