mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: numa: Revert temporarily disabling of NUMA migration
With the scan rate code working (at least for multi-instance specjbb), the large hammer that is "sched: Do not migrate memory immediately after switching node" can be replaced with something smarter. Revert temporarily migration disabling and all traces of numa_migrate_seq. Signed-off-by: Rik van Riel <[email protected]> Signed-off-by: Mel Gorman <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Srikar Dronamraju <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
930aa174fc
commit
1e3646ffc6
4 changed files with 1 additions and 39 deletions
|
|
@ -2404,18 +2404,6 @@ int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long
|
|||
last_cpupid = page_cpupid_xchg_last(page, this_cpupid);
|
||||
if (!cpupid_pid_unset(last_cpupid) && cpupid_to_nid(last_cpupid) != thisnid)
|
||||
goto out;
|
||||
|
||||
#ifdef CONFIG_NUMA_BALANCING
|
||||
/*
|
||||
* If the scheduler has just moved us away from our
|
||||
* preferred node, do not bother migrating pages yet.
|
||||
* This way a short and temporary process migration will
|
||||
* not cause excessive memory migration.
|
||||
*/
|
||||
if (thisnid != current->numa_preferred_nid &&
|
||||
!current->numa_migrate_seq)
|
||||
goto out;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (curnid != polnid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue