Messages in this thread Patch in this message | | | Subject | [5/9] NUMA-Q: reserve a larger virtual region | From | William Lee Irwin III <> | Date | Mon, 11 Nov 2002 18:20:20 -0800 |
| |
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 */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |