mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm: numa: Do not group on RO pages
And here's a little something to make sure not the whole world ends up in a single group. As while we don't migrate shared executable pages, we do scan/fault on them. And since everybody links to libc, everybody ends up in the same group. Suggested-by: Rik van Riel <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Mel Gorman <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Srikar Dronamraju <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
7851a45cd3
commit
6688cc0547
4 changed files with 47 additions and 10 deletions
|
|
@ -1361,9 +1361,10 @@ void task_numa_free(struct task_struct *p)
|
|||
/*
|
||||
* Got a PROT_NONE fault for a page on @node.
|
||||
*/
|
||||
void task_numa_fault(int last_cpupid, int node, int pages, bool migrated)
|
||||
void task_numa_fault(int last_cpupid, int node, int pages, int flags)
|
||||
{
|
||||
struct task_struct *p = current;
|
||||
bool migrated = flags & TNF_MIGRATED;
|
||||
int priv;
|
||||
|
||||
if (!numabalancing_enabled)
|
||||
|
|
@ -1394,7 +1395,7 @@ void task_numa_fault(int last_cpupid, int node, int pages, bool migrated)
|
|||
priv = 1;
|
||||
} else {
|
||||
priv = cpupid_match_pid(p, last_cpupid);
|
||||
if (!priv)
|
||||
if (!priv && !(flags & TNF_NO_GROUP))
|
||||
task_numa_group(p, last_cpupid);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue