Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] Memory affinity
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-02-28 15:31:40

Le 28/02/2011 21:18, Jeff Squyres a écrit :
> On Feb 28, 2011, at 2:02 PM, Samuel Thibault wrote:
>>> That would seem to imply that I should always hwloc_set_area_membind() if I want it to persist beyond any potential future swapping.
>> I guess that could be right, but it definitely deserves testing before
>> trusting potentially-outdated documentation :)
> Brice - did you see anything about this when reading the kernel code?

The kernel only looks at the current virtual memory area policy. If you
didn't call set_area_membind, the default policy is used. It doesn't
care about the location of the old page before swap-out. It's similar to
first-touch: use a local page as long as some pages are available there.