[PATCH 06/27] sched, numa: Mitigate chance that same task always updates PTEs

2013-08-08 Thread Mel Gorman
From: Peter Zijlstra With a trace_printk("working\n"); right after the cmpxchg in task_numa_work() we can see that of a 4 thread process, its always the same task winning the race and doing the protection change. This is a problem since the task doing the protection change has a penalty for

[PATCH 06/27] sched, numa: Mitigate chance that same task always updates PTEs

2013-08-08 Thread Mel Gorman
From: Peter Zijlstra pet...@infradead.org With a trace_printk(working\n); right after the cmpxchg in task_numa_work() we can see that of a 4 thread process, its always the same task winning the race and doing the protection change. This is a problem since the task doing the protection change has