Skip to contentSkip to conversation

NUMA: Memoryless node support V3

PATCH Nishanth Aravamudan 3 participants 7 messages Aug 4, 2007 – Aug 8, 2007 2 messages not in the archive Memory management

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 18 lines · Christoph Lameter

V4->V5
- Split N_MEMORY into N_NORMAL_MEMORY and N_HIGH_MEMORY to support 32 bit NUMA.
- Mel tested it on 32bit NUMA
- !NUMA Fixes
- Tested on SMP and UP.

V3->V4 (by Lee)
- Add fixes and testing.

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

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

Quoted 6 lines

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

Note that this patch is only the beginning. All code portions that assume that an online node has memory must be changed to use either N_NORMAL_MEMORY or N_HIGH_MEMORY.

I believe Andrew should drop the 9 memoryless node patches he had picked up and take these instead. The NORMAL_MEMORY/HIGH_MEMORY distinction is critical for booting 32-bit NUMA. I've rebased my stack of hugetlb related patches on top of these and am testing now.

Thanks,
Nish

Signature · 8 lines
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

maintainer
#3 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

Review

Quoted 12 lines · On Fri, 03 Aug 2007 20:01:02 -0700 Christoph Lameter <[email protected]> wrote:
(quoted diff) +12 -0
+/* Any regular memory on that node ? */
+static void check_for_regular_memory(pg_data_t *pgdat)
+{
+#ifdef CONFIG_HIGHMEM
+	enum zone_type zone;
+
+	for (zone = 0; zone <= ZONE_NORMAL; zone++)
+		if (pgdat->node_zones[zone].present_pages)
+			node_set_state(nid, N_NORMAL_MEMORY);
+	}
+#endif
+}

mm/page_alloc.c: In function 'check_for_regular_memory':
mm/page_alloc.c:2427: error: 'nid' undeclared (first use in this function) mm/page_alloc.c:2427: error: (Each undeclared identifier is reported only once mm/page_alloc.c:2427: error: for each function it appears in.) mm/page_alloc.c: At top level:
mm/page_alloc.c:2430: error: expected identifier or '(' before '}' token

OK, easily fixable with

/* Any regular memory on that node ? */ static void check_for_regular_memory(pg_data_t *pgdat) {

#ifdef CONFIG_HIGHMEM
	enum zone_type zone_type;
	
	for (zone_type = 0; zone_type <= ZONE_NORMAL; zone_type++) {
		struct zone *zone = &pgdat->node_zones[zone_type];
		if (zone->present_pages)
			node_set_state(zone_to_nid(zone), N_NORMAL_MEMORY);
	}

#endif
}

but we continue to have some significant testing issues out there.

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

#4 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

Quoted 36 lines · Andrew Morton

Review

Quoted 12 lines · On Fri, 03 Aug 2007 20:01:02 -0700 Christoph Lameter <[email protected]> wrote:
(quoted diff) +12 -0
+/* Any regular memory on that node ? */
+static void check_for_regular_memory(pg_data_t *pgdat)
+{
+#ifdef CONFIG_HIGHMEM
+	enum zone_type zone;
+
+	for (zone = 0; zone <= ZONE_NORMAL; zone++)
+		if (pgdat->node_zones[zone].present_pages)
+			node_set_state(nid, N_NORMAL_MEMORY);
+	}
+#endif
+}

mm/page_alloc.c: In function 'check_for_regular_memory':
mm/page_alloc.c:2427: error: 'nid' undeclared (first use in this function) mm/page_alloc.c:2427: error: (Each undeclared identifier is reported only once mm/page_alloc.c:2427: error: for each function it appears in.) mm/page_alloc.c: At top level:
mm/page_alloc.c:2430: error: expected identifier or '(' before '}' token

OK, easily fixable with

/* Any regular memory on that node ? */ static void check_for_regular_memory(pg_data_t *pgdat) {

#ifdef CONFIG_HIGHMEM
	enum zone_type zone_type;
	
	for (zone_type = 0; zone_type <= ZONE_NORMAL; zone_type++) {
		struct zone *zone = &pgdat->node_zones[zone_type];
		if (zone->present_pages)
			node_set_state(zone_to_nid(zone), N_NORMAL_MEMORY);
	}
Quoted 4 lines

#endif
}

but we continue to have some significant testing issues out there.

This would be because the patch that Christoph submitted here is not the same as the patch that Mel and I tested...There was no check_for_regular_memory() function in the kernels I was building.

Thanks,
Nish

Signature · 8 lines
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#5 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

Quoted 40 lines · Nishanth Aravamudan
Quoted 39 lines · Andrew Morton

Review

Quoted 12 lines · On Fri, 03 Aug 2007 20:01:02 -0700 Christoph Lameter <[email protected]> wrote:
(quoted diff) +12 -0
+/* Any regular memory on that node ? */
+static void check_for_regular_memory(pg_data_t *pgdat)
+{
+#ifdef CONFIG_HIGHMEM
+	enum zone_type zone;
+
+	for (zone = 0; zone <= ZONE_NORMAL; zone++)
+		if (pgdat->node_zones[zone].present_pages)
+			node_set_state(nid, N_NORMAL_MEMORY);
+	}
+#endif
+}

mm/page_alloc.c: In function 'check_for_regular_memory':
mm/page_alloc.c:2427: error: 'nid' undeclared (first use in this function) mm/page_alloc.c:2427: error: (Each undeclared identifier is reported only once mm/page_alloc.c:2427: error: for each function it appears in.) mm/page_alloc.c: At top level:
mm/page_alloc.c:2430: error: expected identifier or '(' before '}' token

OK, easily fixable with

/* Any regular memory on that node ? */ static void check_for_regular_memory(pg_data_t *pgdat) {

#ifdef CONFIG_HIGHMEM
	enum zone_type zone_type;
	
	for (zone_type = 0; zone_type <= ZONE_NORMAL; zone_type++) {
		struct zone *zone = &pgdat->node_zones[zone_type];
		if (zone->present_pages)
			node_set_state(zone_to_nid(zone), N_NORMAL_MEMORY);
	}

#endif
}

Quoted 5 lines
Quoted 1 line

but we continue to have some significant testing issues out there.

This would be because the patch that Christoph submitted here is not the same as the patch that Mel and I tested...There was no check_for_regular_memory() function in the kernels I was building.

To try and remedy this -- I'll regrab this stack and rebase my patches again. Test everything and resubmit mine.

Thanks,
Nish

Signature · 8 lines
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#6 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

Quoted 2 lines · Nishanth Aravamudan

To try and remedy this -- I'll regrab this stack and rebase my patches again. Test everything and resubmit mine.

Ummmm... These are the patches that you said you would test earlier.

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

#7 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

Quoted 6 lines · Christoph Lameter
Quoted 2 lines · Nishanth Aravamudan

To try and remedy this -- I'll regrab this stack and rebase my patches again. Test everything and resubmit mine.

Ummmm... These are the patches that you said you would test earlier.

Yes, sorry, I had leafed through the patches and didn't see any changes and didn't see any subject changes indicated UPDATED or a new version, so I incorrectly assumed that the patches were the same as before.

This stack has now been successfully compile & boot-tested on:

4-node x86 (NUMAQ), 1-node x86 (NUMAQ), !NUMA x86, 2-node IA64, 4-node ppc64 (2 memoryless nodes).

Thanks,
Nish

Signature · 8 lines
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#8 lore raw

Re: [patch 02/14] Memoryless nodes: introduce mask of nodes with memory

In reply to Nishanth Aravamudan
Quoted 5 lines · Nishanth Aravamudan
Quoted 1 line

but we continue to have some significant testing issues out there.

This would be because the patch that Christoph submitted here is not the same as the patch that Mel and I tested...There was no check_for_regular_memory() function in the kernels I was building.

Right. I added that to #ifdef out the HIGHMEM/NORMAL distinction for regular NUMA boxes. I only tested on regular NUMA and not on NUMAQ.

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