Re: [PATCH 26/31] sched: numa: Make mempolicy home-node aware

From: Mel Gorman
Date: Wed Nov 14 2012 - 13:50:13 EST


On Wed, Nov 14, 2012 at 01:22:33PM -0500, Rik van Riel wrote:
> On 11/13/2012 06:12 AM, Mel Gorman wrote:
> >From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> >
> >Add another layer of fallback policy to make the home node concept
> >useful from a memory allocation PoV.
> >
> >This changes the mpol order to:
> >
> > - vma->vm_ops->get_policy [if applicable]
> > - vma->vm_policy [if applicable]
> > - task->mempolicy
> > - tsk_home_node() preferred [NEW]
> > - default_policy
>
> Why is the home node policy not the default policy?
>

hmm, it effectively is if there is no other policy set. The changelog is
a bit misleading. In V3, this will be dropped entirely. It was not clear
that doing a remote alloc for home nodes was a good idea. Instead memory
is always allocated locally to the faulting process as normal and
migrated later if necessary.

--
Mel Gorman
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/