Re: [PATCH 18/19] sched, numa: Per task memory placement for big processes

2012-08-09 Thread Andrea Arcangeli
On Tue, Jul 31, 2012 at 09:12:22PM +0200, Peter Zijlstra wrote: > Implement a per-task memory placement scheme for 'big' tasks (as per > the last patch). It relies on a regular PROT_NONE 'migration' fault to > scan the memory space of the procress and uses a two stage migration > scheme to reduce t

Re: [PATCH 18/19] sched, numa: Per task memory placement for big processes

2012-08-08 Thread Peter Zijlstra
On Tue, 2012-07-31 at 21:12 +0200, Peter Zijlstra wrote: > +#ifdef CONFIG_NUMA > + /* > +* XXX fold this into flags for 64bit or so... > +*/ > + int nid_last; > +#endif Something like the below? I still ought to update all the various comments about page flag layout et

Re: [PATCH 18/19] sched, numa: Per task memory placement for big processes

2012-07-31 Thread Rik van Riel
On 07/31/2012 03:12 PM, Peter Zijlstra wrote: Probability says that the task faulting on a page after we protect it, is most likely to be the task that uses that page most. To decrease the likelyhood of acting on a false relation, we only migrate a page when two consecutive samples are from the