diff options
| author | Andrew Morton <[email protected]> | 2006-06-25 05:47:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-25 10:01:07 -0700 |
| commit | b61367732fc273977cc3fb85c272ce1a7bb1f533 (patch) | |
| tree | 92aa6fc7f58b65f322f32612741c64347bc57152 /scripts/basic | |
| parent | 232acbcf5304c29f5bb03b0dddeaefd0f98ef45e (diff) | |
[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 <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions