[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Free list initialization



On Wed, Aug 06, 2003 at 04:12:46PM -0700, Martin J. Bligh wrote:
> Suggest you start at free_all_bootmem. IIRC, basically we just call a 
> free on every page we have, and the normal buddy free routines populate
> the lists. Not very efficient, but who cares? ... it's boottime! ;-)

If it ever turns out that someone does care, I've gone through and done
useful things like freeing higher-order pages at a time for both
bootmem.c and highmem (as isolated patches) I could resurrect if the
issue ever arises in the field.

The whole affair is still asymptotically O(pages) since the coremap
initialization still touches every struct page, so there aren't large
amounts of improvement that can be made without dynamically allocating
coremap elements (which raises more issues than it resolves, though
there are valid reasons to want to do it beyond this).


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