* [5/9] NUMA-Q: reserve a larger virtual region
@ 2002-11-12 2:20 William Lee Irwin III
0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-11-12 2:20 UTC (permalink / raw)
To: linux-kernel
This increases the size of the virtually remapped region so it is large
enough to hold the pg_data_t's in addition to the local memory maps.
discontig.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -urpN 03_late_alloc/arch/i386/mm/discontig.c 04_larger_remap/arch/i386/mm/discontig.c
--- 03_late_alloc/arch/i386/mm/discontig.c 2002-11-11 16:31:27.000000000 -0800
+++ 04_larger_remap/arch/i386/mm/discontig.c 2002-11-11 16:33:57.000000000 -0800
@@ -146,7 +146,7 @@ static unsigned long calculate_numa_rema
for (nid = 1; nid < numnodes; nid++) {
/* calculate the size of the mem_map needed in bytes */
size = (node_end_pfn[nid] - node_start_pfn[nid] + 1)
- * sizeof(struct page);
+ * sizeof(struct page) + sizeof(pg_data_t);
/* convert size to large (pmd size) pages, rounding up */
size = (size + LARGE_PAGE_BYTES - 1) / LARGE_PAGE_BYTES;
/* now the roundup is correct, convert to PAGE_SIZE pages */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-12 2:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-12 2:20 [5/9] NUMA-Q: reserve a larger virtual region William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®