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: David Rientjes <rientjes@...>
Cc: Paul Jackson <pj@...>, Christoph Lameter <clameter@...>, Andi Kleen <ak@...>, <linux-kernel@...>, Michael Kerrisk <mtk-manpages@...>
Date: Wednesday, February 27, 2008 - 11:37 am

On Tue, 2008-02-26 at 17:17 -0800, David Rientjes wrote:

Nice work.  Would you consider adding this [with the corrections you
note below] to the memory policy doc under the "interaction with
cpusets" section?


Just a note here:  If you had used the same set of "rebind targets" for
_BIND as you did for _INTERLEAVE, I would expect the same results,
because were just remapping bit masks in both cases.  Do you agree?
 

Thoughts:

1) this IS a change in behavior, right?  My first inclination is to shy
away from this.  However, ...

2) the current interaction of mempolicies with cpusets is not well
documented--until Paul's cpuset.4 man page hits the streets, anyway.
That doc does say that mempolicy is not allowed to use a node outside
the cpuset.  It does NOT say how this is enforced--reject vs masking vs
remap.  The set_mempolicy(2) and mbind(2) man pages [in at least 2.70
man pages] says that you get EINVAL if you specify a node outside the
current cpuset constraints.  This was relaxed by the recent patch to
"silently restrict" the nodes to mems allowed.

Since we update the man pages anyway, we COULD change it to say that we
remap policy to allowed nodes.  However, the application may have chosen
the nodes based on some knowledge of hardware topology, such as IO
attachement, interrupt handling cpus, ...  In this case, remapping
doesn't make so much sense to me.  

If you need/want a mode that remaps policy to mems allowed on
installation--e.g., to provide the maximum number of interleave
nodes--how about yet another flag, such as '_REMAP, to effect this
behavior?

Just a thought...


'nil' falls back to local allocation, right?


Here, '-1' means 'local allocation'.  [Note for documentation...]


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