Re: [NUMA] Display and modify the memory policy of a process through /proc/<pid>/numa_policy

From: Andi Kleen <>
Date: 2005-07-16 07:47:01
> It is very useful to a batch scheduler that can dynamically move memory 
> between nodes. It needs to know exactly where the pages are including the 
> vma information. 

You mean for relative placement in node groups? 
Ray's code was supposed to handle that in the kernel.
You pass an mapping array to the syscall and it does the rest.

We had a big discussion about that some months ago; I suggest
you review it.

So for what does that batch monstrosity need to know 
about the VMAs? 

> It is also of utmost importance to a sysadmin that wants 
> to control the memory placement of an important application to have 
> information about the process and be able to influence future allocations 
> as well as to move existing pages.

I don't believe any admin will mess with virtual addresses.

I added the capability to numactl for shared memory
areas because I first thought it would be useful, but as far
as I know nobody was interested in it. (will probably remove
it again) 

But for "uncooperative" programs working on bigger objects
like threads/files/shm areas/processes makes much more sense. And gives
much cleaner interfaces too.

Now I can see some people being interested in more fine grained
policy, but the only sane way to do that is to change the source
code and use libnuma.

Basically to mess with finegrained virtual addresses you need code access,
and when you have that you can as well do it well and add 
libnuma and recompile.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Fri Jul 15 17:50:40 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST