login
Header Space

 
 

[PATCH 0/3] bootmem2 III

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <linux-mm@...>
Cc: Ingo Molnar <mingo@...>, Andi Kleen <andi@...>, Yinghai Lu <yhlu.kernel@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>
Date: Friday, May 9, 2008 - 11:17 am

Hi,

here is bootmem2, a memory block-oriented boot time allocator.

Recent NUMA topologies broke the current bootmem's assumption that
memory nodes provide non-overlapping and contiguous ranges of pages.

To cope with these configurations, bootmem2 operates on contiguous
memory blocks.

The node model is implemented on top of this scheme, every node
provides zero or more blocks of memory.

The usage of bootmem2 is almost the same as that of the current
allocator. On architectures that allow non-contiguous nodes the arch
code must register memory blocks instead of nodes, right now these
architectures are x86 and ia64.  For all other archs it is enough to
select bootmem2 and stop using pgdat->bdata.

bootmem can be dropped completely when those two architectures have
been migrated to bootmem2.

The first patch in this series makes the maximum number of memory
blocks (and the resulting number of blocks per node) available to
generic code as bootmem2 needs to work with those.

The second patch is bootmem2 itself.  Although the logical complexity
increased, I think the code is quite compact.  Every public interface
has been documented.

The third patch is trivial, it enables bootmem2 for x86_32 machines.

The allocator works on my X86_32 UMA computer, everything else is only
theory, please give it a test.

	Hannes

 arch/x86/Kconfig           |    1
 b/include/linux/bootmem2.h |  174 +++++++++++++
 b/mm/bootmem2.c            |  575 +++++++++++++++++++++++++++++++++++++++++++++
 include/linux/bootmem.h    |    6
 include/linux/numa.h       |   12
 mm/Kconfig                 |    3
 mm/Makefile                |    7
 mm/page_alloc.c            |    4
 8 files changed, 776 insertions(+), 6 deletions(-)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] bootmem2 III, Johannes Weiner, (Fri May 9, 11:17 am)
Re: [PATCH 0/3] bootmem2 III, Andi Kleen, (Fri May 9, 2:40 pm)
Re: [PATCH 0/3] bootmem2 III, Johannes Weiner, (Sun May 11, 3:18 pm)
Re: [PATCH 0/3] bootmem2 III, Andi Kleen, (Sun May 11, 4:18 pm)
Re: [PATCH 0/3] bootmem2 III, Johannes Weiner, (Tue May 13, 8:40 am)
Re: [PATCH 0/3] bootmem2 III, Andy Whitcroft, (Thu May 15, 3:12 pm)
Re: [PATCH 0/3] bootmem2 III, Johannes Weiner, (Fri May 16, 4:42 pm)
Re: [PATCH 0/3] bootmem2 III, Andi Kleen, (Tue May 13, 8:59 am)
Re: [PATCH 0/3] bootmem2 III, Johannes Weiner, (Wed May 14, 3:12 pm)
speck-geostationary