mm: numa: Rate limit setting of pte_numa if node is saturated
authorMel Gorman <mgorman@suse.de>
Mon, 19 Nov 2012 10:59:15 +0000 (10:59 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:51 +0000 (14:42 +0000)
commite14808b49f55e0e1135da5e4a154a540dd9f3662
treed66708455dcc1b6e2e15937d732ab12c121e623a
parenta8f6077213d285ca08dbf6d4a67470787388138b
mm: numa: Rate limit setting of pte_numa if node is saturated

If there are a large number of NUMA hinting faults and all of them
are resulting in migrations it may indicate that memory is just
bouncing uselessly around. NUMA balancing cost is likely exceeding
any benefit from locality. Rate limit the PTE updates if the node
is migration rate-limited. As noted in the comments, this distorts
the NUMA faulting statistics.

Signed-off-by: Mel Gorman <mgorman@suse.de>
include/linux/migrate.h
kernel/sched/fair.c
mm/migrate.c