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

From: Christoph Lameter <>
Date: 2005-07-17 16:00:12
On Sat, 16 Jul 2005, Paul Jackson wrote:

> Christoph wrote:
> > Here is one approach to locking using xchg.
> What I see here doesn't change the behaviour of the
> kernel any - just adds some locked exchanges, right?

> I thought the hard part was having some other task
> change the current tasks mempolicy.  For example,
> how does one task sync another tasks mempolicy up
> with its cpuset, or synchronously get the policies
> zonelist or preferred node set correctly?

Could you give me some more detail on how this should integrate with 
cpusets? I am not aware of any thing that I would call "hard".

What do you mean by synchronously? The proc changes do best effort 
modifications. There is no transactional behavior that allows the changes 
of multiple items at once, nor is there any guarantee that the vma you are 
changing is still there after you have read /proc/<pid>/numa_maps. Why 
would such synchronicity be necessary?

> I guess that this approach is intended to show how
> to make it easy to add that hard part, right?

This is intended to provide race free update of the memory policy.
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Sun Jul 17 02:00:25 2005

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