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

From: Christoph Lameter <>
Date: 2005-07-16 07:20:12
On Fri, 15 Jul 2005, Andi Kleen wrote:

> > These questions of interface style (filesys or syscall) probably don't
> > matter, however. at least not yet.  First we need to make sense of
> > the larger issues that Ken and Andi raise, of whether this is a good
> > thing to do.
> In my opinion detailed reporting of node affinity to external
> processes of specific memory areas is a mistake. It's too finegrained and 
> not useful outside the process itself (external users don't or shouldn't
> know anything about process virtual addresses). The information
> is too volatile and can change every time without nice 
> ways to lock (no SIGSTOP is not a acceptable way) 

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. 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.

The volatility has to be taken into account by the batch scheduler or by 
the sysadmin manipulating the program. Typically both know much more about 
the expected and future behavior of the application than the kernel.

And yes SIGSTOP is acceptable if the application behavior on STOP -> 
Continue is know by the administrator or the batch scheduler. I do not 
think that this is required though.

Image an important batch data run that has been running for 2 days and 
will run 3 more days. Now some nodes are running out of memory and the 
performance suffers. The batch scheduler / or sysadmin will be able to 
inspect the situation and improve the performance by changing memory 
policies and/or moving pages. The batch scheduler / admin knows about 
which processes are important and may stop other processes in order for 
the critical process to finish in time.

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:21:04 2005

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