]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: numa: take THP into account when migrating pages for NUMA balancing
authorMel Gorman <mgorman@suse.de>
Thu, 7 Feb 2013 01:26:48 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:39 +0000 (16:46 +1100)
commit294e3f9c699d48d0217f932ee603d9d49c55a9a1
tree051961f17a48ca6acfa349bfdc5e056b3928bf2f
parent937d196ba5c5110ac220bbea23c4ba540d7dc511
mm: numa: take THP into account when migrating pages for NUMA balancing

Wanpeng Li pointed out that numamigrate_isolate_page() assumes that only
one base page is being migrated when in fact it can also be checking THP.
The consequences are that a migration will be attempted when a target node
is nearly full and fail later.  It's unlikely to be user-visible but it
should be fixed.  While we are there, migrate_balanced_pgdat() should
treat nr_migrate_pages as an unsigned long as it is treated as a
watermark.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Suggested-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Simon Jeons <simon.jeons@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c