Hello, Tang. On Tue, Aug 13, 2013 at 05:56:46PM +0800, Tang Chen wrote: > 1. Introduce a memblock.current_limit_low to limit the lowest address > that memblock can use. > > 2. Make memblock be able to allocate memory from low to high. > > 3. Get kernel image address on x86, and set memblock.current_limit_low > to it before SRAT is parsed. Then we achieve the goal. > > 4. Reset it to 0, and make memblock allocate memory form high to low. > > How do you think of this, or do you have any better idea ? Yes, something like that. Maybe have something like memblock_set_alloc_range(low, high, low_to_high) in memblock? Once NUMA info is available arch code can call memblock_set_alloc_range(0, 0, false) to reset it to the default behavior. > Thanks for your patient and help. :) Heh, sorry about all the roundabouts. Your persistence is much appreciated. :) -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html