linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* cpusets vs. mempolicy and how to get interleaving
@ 2007-08-18  0:22 Ethan Solomita
  2007-08-18  0:29 ` Ethan Solomita
  2007-08-18  1:07 ` Christoph Lameter
  0 siblings, 2 replies; 16+ messages in thread
From: Ethan Solomita @ 2007-08-18  0:22 UTC (permalink / raw)
  To: Paul Jackson, Christoph Lameter, linux-mm

application to request NUMA interleaving in the face of cpusets and 
modifications to mems_allowed. I'm hoping for some advice.

What we want:

	Ideally, we want a task to express its preference for interleaved 
memory allocations without having to provide a list of nodes. The kernel 
will automatically round-robin amongst the task's mems_allowed.

The problem:

	At least in our environment, an independent "cpuset manager" process 
may choose to rewrite a cpuset's mems file at any time, possibly 
increasing or decreasing the number of available nodes. If 
weight(mems_allowed) is decreased, the task's MPOL_INTERLEAVE policy's 
nodemask will be shrunk to fit the new mems_allowed. If 
weight(mems_allowed) is grown, the policy's nodemask will not gain new 
nodes.

	What we want is for the task to "set it and forget it," i.e. to express 
a preference for interleaving and then never worry about NUMA again. If 
the nodemask sent via sys_mempolicy(MPOL_INTERLEAVE) served as a mask 
against mems_allowed, then we would specify an all-1s nodemask.

	I realize that this doesn't work with backwards compatibility so I'm 
looking for advice. A new policy MPOL_INTERLEAVE_ALL that doesn't take a 
nodemask argument and interleaves within mems_allowed? Any better 
suggestions?

	Thanks!
	-- Ethan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-08-21 14:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-18  0:22 cpusets vs. mempolicy and how to get interleaving Ethan Solomita
2007-08-18  0:29 ` Ethan Solomita
2007-08-19 10:18   ` David Rientjes
2007-08-20  0:53     ` Ethan Solomita
2007-08-20  2:34       ` Paul Jackson
2007-08-20  5:47         ` Ethan Solomita
2007-08-20  5:53           ` Paul Jackson
2007-08-20  8:10             ` David Rientjes
2007-08-20 18:25               ` Paul Jackson
2007-08-20 18:28               ` Ethan Solomita
2007-08-20 18:40                 ` David Rientjes
2007-08-20 19:50                   ` Ethan Solomita
2007-08-20 19:07           ` Christoph Lameter
2007-08-21 14:14             ` Lee Schermerhorn
2007-08-18  1:07 ` Christoph Lameter
2007-08-18  1:51   ` Ethan Solomita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox