Skip to content
Commit b74e6278 authored by Alex Thorlton's avatar Alex Thorlton Committed by Ingo Molnar
Browse files

sched: Fix KMALLOC_MAX_SIZE overflow during cpumask allocation



When allocating space for load_balance_mask, in sched_init, when
CPUMASK_OFFSTACK is set, we've managed to spill over
KMALLOC_MAX_SIZE on our 6144 core machine.  The patch below
breaks up the allocations so that they don't overflow the max
alloc size.  It also allocates the masks on the the node from
which they'll most commonly be accessed, to minimize remote
accesses on NUMA machines.

Suggested-by: default avatarGeorge Beshers <gbeshers@sgi.com>
Signed-off-by: default avatarAlex Thorlton <athorlton@sgi.com>
Cc: George Beshers <gbeshers@sgi.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1418928270-148543-1-git-send-email-athorlton@sgi.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent aa39477b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment