]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched: Use the best-buddy 'ideal cpu' in balancing decisions
authorIngo Molnar <mingo@kernel.org>
Sun, 18 Nov 2012 10:44:50 +0000 (11:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 19 Nov 2012 13:49:48 +0000 (14:49 +0100)
commit01aa90068b125db13187a8b111abca7dfb5e2e80
treea9fe5100fa8114872a9709e59a797bfb5b1b50b9
parent51b1960dd7e52117cf05616d90c920d8abd51141
sched: Use the best-buddy 'ideal cpu' in balancing decisions

Now that we have a notion of (one of the) best CPUs we interrelate
with in terms of memory usage, use that information to improve
can_migrate_task() balancing decisions: allow the migration to
occur even if we locally cache-hot, if we are on another node
and want to migrate towards our best buddy's node.

( Note that this is not hard affinity - if imbalance persists long
  enough then the scheduler will eventually balance tasks anyway,
  to maximize CPU utilization. )

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c
kernel/sched/features.h