From: Ananya Muddukrishna <ananya@kth.se>
To: linux-numa@vger.kernel.org
Subject: Re: MPOL_INTERLEAVE page-wise binding dump
Date: Thu, 22 Dec 2011 20:56:16 +0000 (UTC) [thread overview]
Message-ID: <loom.20111222T215512-903@post.gmane.org> (raw)
In-Reply-To: 20111222195808.GE11715@one.firstfloor.org
> > Is there an inexpensive way to determine
> > which pages (virtual addresses)
> > are bound to which NUMA nodes when
> > using MPOL_INTERLEAVE or MPOL_BIND
> > with a given set of nodes?
>
>
> get_mempolicy MPOL_F_ADDR|MPOL_F_NODE
>
Thanks! I will check this out and get back. I hope this returns the
affinity as a page-to-node map.
> >
> > I want to implement a strict
> > round-robin based interleaving
> > policy based on MPOL_INTERLEAVE.
>
> What's the rationale?
The rationale relates to scheduling tasks (OpenMP and the like) with
page affinity in a user-level runtime system (work-crew threading
model).
The runtime system allocates memory pages in a deterministic way using
mbind and from then on, schedules tasks such that accesses to task
operated pages (affinity) do not incur large NUMA overheads. I am
thinking of using mlock so that swapin_readahead does not affect the
affinity of runtime-allocated pages. The first-touch policy is not of
much help since the allocated memory is initialized before tasks are
scheduled.
-- Ananya
prev parent reply other threads:[~2011-12-22 20:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 17:12 MPOL_INTERLEAVE page-wise binding dump Ananya Muddukrishna
2011-12-22 19:58 ` Andi Kleen
2011-12-22 20:52 ` Ananya Muddukrishna
2011-12-22 20:56 ` Ananya Muddukrishna [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20111222T215512-903@post.gmane.org \
--to=ananya@kth.se \
--cc=linux-numa@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.