linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to make get_mempolicy return a node id list for an address range?
@ 2012-01-09  9:09 Ananya Muddukrishna
  2012-01-10 22:04 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Ananya Muddukrishna @ 2012-01-09  9:09 UTC (permalink / raw)
  To: linux-numa

Hi,

Given a range of virtual addresses (begin and end) which are allocated using 
MPOL_INTERLEAVE, is there a quick way to know how this range is mapped to 
different NUMA nodes? In particular, I would like to have a weighted node-id 
list, where each node id in the list indicates how many address (or pages) are 
mapped to it, similar to what is seen in /proc/<proc_id>/numa_maps.

I am thinking of doing this by using get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) for 
every address in the range. This can be optimized for full correctness if I know 
the starting address of all pages contained in the range. Can you give me some 
tips on how to obtain that?

Thank you!
Best regards,
Ananya






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-10 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09  9:09 How to make get_mempolicy return a node id list for an address range? Ananya Muddukrishna
2012-01-10 22:04 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).