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 <riel@redhat.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Mel Gorman <mgorman@suse.de> Reviewed-by: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/1381141781-10992-47-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
7851a45cd3
commit
6688cc0547
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user