login
Header Space

 
 

Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lee Schermerhorn <Lee.Schermerhorn@...>
Cc: Paul Jackson <pj@...>, Christoph Lameter <clameter@...>, Andi Kleen <ak@...>, <linux-kernel@...>, Michael Kerrisk <mtk-manpages@...>
Date: Thursday, February 28, 2008 - 5:08 pm

On Wed, 27 Feb 2008, Lee Schermerhorn wrote:


I think it's overly verbose for adding to documentation.  Other than 
describing the effects of MPOL_F_STATIC_NODES and MPOL_F_RELATIVE_NODES, I 
don't think much more in the way of examples need to be provided (they 
were here to show that the patchset actually works on creation and 
rebind).


Yes, the results are the same for both interleave and bind and that's 
actually why I didn't use the same rebind targets.


Yes, it's the current behavior as a result of contextualize_policy() 
before mpol_new() is ever reached.


MPOL_F_RELATIVE_NODES actually does map onto and fold the passed nodemask 
when the mempolicy is created.  That flag specifically refers to relative 
nodes within a task's mems_allowed all the time; MPOL_F_STATIC_NODES 
refers specifically to physical node ids.

So adding MPOL_F_REMAP doesn't make sense for MPOL_F_RELATIVE_NODES since 
its already mapped onto and folded, and doesn't make sense for 
MPOL_F_STATIC_NODES since the nodemask is explicitly never remapped.

It would make sense as an optional third flag that would be disjoint from 
the other two and would only be useful when the mempolicy is created.


Yes, it's an interleave over no nodes and is thus a local allocation 
(current->il_next is numa_node_id()).

		David
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/6] mempolicy: convert MPOL constants to enum, David Rientjes, (Mon Feb 25, 11:35 am)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, Christoph Lameter, (Wed Feb 27, 3:35 pm)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, David Rientjes, (Wed Feb 27, 3:59 pm)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, Paul Jackson, (Mon Feb 25, 11:20 pm)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, David Rientjes, (Mon Feb 25, 11:35 pm)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, Paul Jackson, (Tue Feb 26, 12:02 am)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, David Rientjes, (Tue Feb 26, 12:21 am)
Re: [patch 1/6] mempolicy: convert MPOL constants to enum, Paul Jackson, (Tue Feb 26, 12:46 am)
[patch 2/6] mempolicy: support optional mode flags, David Rientjes, (Mon Feb 25, 11:35 am)
[patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, David Rientjes, (Mon Feb 25, 11:35 am)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, Paul Jackson, (Tue Feb 26, 1:56 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, David Rientjes, (Tue Feb 26, 5:02 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, Paul Jackson, (Tue Feb 26, 5:39 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, Lee Schermerhorn, (Tue Feb 26, 5:32 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, David Rientjes, (Tue Feb 26, 5:54 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, Paul Jackson, (Tue Feb 26, 6:08 pm)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, Paul Jackson, (Tue Feb 26, 1:46 am)
Re: [patch 3/6] mempolicy: add MPOL_F_STATIC_NODES flag, David Rientjes, (Tue Feb 26, 2:53 am)
[patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Mon Feb 25, 11:35 am)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Tue Feb 26, 9:17 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, Lee Schermerhorn, (Wed Feb 27, 11:37 am)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Thu Feb 28, 5:08 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, Paul Jackson, (Tue Feb 26, 10:30 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Tue Feb 26, 9:31 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, Lee Schermerhorn, (Tue Feb 26, 5:27 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Tue Feb 26, 5:17 pm)
Re: [patch 5/6] mempolicy: add MPOL_F_RELATIVE_NODES flag, David Rientjes, (Tue Feb 26, 2:45 am)
speck-geostationary