Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all doesn't works on memoryless node.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Rientjes
Date: Tuesday, February 5, 2008 - 3:44 pm

On Tue, 5 Feb 2008, Lee Schermerhorn wrote:


If the intent of the set_mempolicy() call is going to be preserved in the 
struct mempolicy with Paul's change, then we're going to allow disallowed 
nodes anyway.  So the only nodemask errors that we should return are ones 
that are empty; nodemasks that include offlined nodes should be allowed to 
support node hotplug.  Likewise, memoryless nodes should still be saved as 
the intent of the syscall.

The change to save the intent or silently ignore disallowed nodes would 
also require applications to issue a successive get_mempolicy() call to 
know what their current mempolicy is, since it will be able to change with 
a cpusets change or node hotplug event.  There is no longer this assurance 
that if set_mempolicy() returns without an error that the memory policy is 
effected.  But in the presence of subsystems such as cpusets that allow 
those mempolicies to change from beneath the application, there is no way 
around that: the nodemask that the mempolicy acts on can dynamically 
change at any time.

So I don't see any problem with silently ignoring disallowed nodes and 
encourage it so that the kernel accomodates the intent of the mempolicy in 
the future if and when it can be effected.

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

Messages in current thread:
Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all ..., Christoph Lameter, (Mon Feb 4, 12:03 pm)
Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all ..., Christoph Lameter, (Tue Feb 5, 11:12 am)
Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all ..., Christoph Lameter, (Tue Feb 5, 12:04 pm)
Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all ..., David Rientjes, (Tue Feb 5, 3:44 pm)
[PATCH 2.6.24-mm1] Mempolicy: silently restrict nodemask ..., Lee Schermerhorn, (Fri Feb 8, 12:45 pm)
Re: [PATCH 2.6.24-mm1] Mempolicy: silently restrict node ..., KOSAKI Motohiro, (Sat Feb 9, 10:29 pm)
Re: [PATCH 2.6.24-mm1] Mempolicy: silently restrict node ..., Linus Torvalds, (Sun Feb 10, 12:42 am)
Re: [PATCH 2.6.24-mm1] Mempolicy: silently restrict node ..., Lee Schermerhorn, (Mon Feb 11, 9:47 am)