linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] NUMA: Memoryless node support V4
@ 2007-07-27 19:43 Lee Schermerhorn
  2007-07-27 19:43 ` [PATCH 02/14] Memoryless nodes: introduce mask of nodes with memory Lee Schermerhorn
  0 siblings, 1 reply; 8+ messages in thread
From: Lee Schermerhorn @ 2007-07-27 19:43 UTC (permalink / raw)
  To: linux-mm
  Cc: ak, Lee Schermerhorn, Nishanth Aravamudan, pj, kxr,
	Christoph Lameter, Mel Gorman, akpm, KAMEZAWA Hiroyuki

Changes V3->V4:
- Refresh against 23-rc1-mm1
- teach cpusets about memoryless nodes.

Changes V2->V3:
- Refresh patches (sigh)
- Add comments suggested by Kamezawa Hiroyuki
- Add signoff by Jes Sorensen

Changes V1->V2:
- Add a generic layer that allows the definition of additional node bitmaps

This patchset is implementing additional node bitmaps that allow the system
to track nodes that are online without memory and nodes that have processors.

In various subsystems we can use that information to customize VM behavior.


We define a number of node states that we track in enum node_states

/*
 * Bitmasks that are kept for all the nodes.
 */
enum node_states {
	N_POSSIBLE,     /* The node could become online at some point */
	N_ONLINE,       /* The node is online */
	N_MEMORY,       /* The node has memory */
	N_CPU,          /* The node has cpus */
	NR_NODE_STATES
};

and define operations using the node states:

static inline int node_state(int node, enum node_states state)
{
        return node_isset(node, node_states[state]);
}

static inline void node_set_state(int node, enum node_states state)
{
        __node_set(node, &node_states[state]);
}

static inline void node_clear_state(int node, enum node_states state)
{
        __node_clear(node, &node_states[state]);
}

static inline int num_node_state(enum node_states state)
{
        return nodes_weight(node_states[state]);
}

-- 

--
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] 8+ messages in thread

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070804030100.862311140@sgi.com>
2007-08-04  3:18 ` [patch 00/14] NUMA: Memoryless node support V3 Nishanth Aravamudan
     [not found] ` <20070804030152.843011254@sgi.com>
2007-08-08 19:38   ` [patch 02/14] Memoryless nodes: introduce mask of nodes with memory Andrew Morton
2007-08-08 19:55     ` Nishanth Aravamudan
2007-08-08 20:03       ` Nishanth Aravamudan
2007-08-08 20:05         ` Christoph Lameter
2007-08-08 23:35           ` Nishanth Aravamudan
2007-08-08 20:04       ` Christoph Lameter
2007-07-27 19:43 [PATCH 00/14] NUMA: Memoryless node support V4 Lee Schermerhorn
2007-07-27 19:43 ` [PATCH 02/14] Memoryless nodes: introduce mask of nodes with memory Lee Schermerhorn

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