mm: numa: Change page last {nid,pid} into {cpu,pid}
Change the per page last fault tracking to use cpu,pid instead of nid,pid. This will allow us to try and lookup the alternate task more easily. Note that even though it is the cpu that is store in the page flags that the mpol_misplaced decision is still based on the node. 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-43-git-send-email-mgorman@suse.de [ Fixed build failure on 32-bit systems. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

کامیت شده توسط
Ingo Molnar

والد
e1dda8a797
کامیت
90572890d2
@@ -1210,7 +1210,7 @@ static void task_numa_placement(struct task_struct *p)
|
||||
/*
|
||||
* Got a PROT_NONE fault for a page on @node.
|
||||
*/
|
||||
void task_numa_fault(int last_nidpid, int node, int pages, bool migrated)
|
||||
void task_numa_fault(int last_cpupid, int node, int pages, bool migrated)
|
||||
{
|
||||
struct task_struct *p = current;
|
||||
int priv;
|
||||
@@ -1226,8 +1226,8 @@ void task_numa_fault(int last_nidpid, int node, int pages, bool migrated)
|
||||
* First accesses are treated as private, otherwise consider accesses
|
||||
* to be private if the accessing pid has not changed
|
||||
*/
|
||||
if (!nidpid_pid_unset(last_nidpid))
|
||||
priv = ((p->pid & LAST__PID_MASK) == nidpid_to_pid(last_nidpid));
|
||||
if (!cpupid_pid_unset(last_cpupid))
|
||||
priv = ((p->pid & LAST__PID_MASK) == cpupid_to_pid(last_cpupid));
|
||||
else
|
||||
priv = 1;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user