Re: __vmalloc and alloc_page
From: William Lee Irwin III <hidden>
Date: 2003-09-17 19:32:02
On Wed, Sep 17, 2003 at 01:26:11PM -0300, Leandro Motta Barros wrote:
Thanks for the feedback on the previous email. Well, there is another thing we thought that could be done. '__vmalloc()' allocates its memory by calling 'alloc_page()' for every necessary page. Wouldn't it be better calling 'alloc_pages()' to allocate more pages at once whenever possible? We would need more bookeepping, and sometimes it could be necessary to actually allocate the memory page per page, but we think this approach could be a way to use memory blocks of higher order. Do you think this is feasible or useful? Also, we would like to know if you have suggestions on topics that we could explore and implement.
Higher-order would probably not be as useful as you'd suspect; try looking at the distribution of available pages of given sizes in /proc/. OTOH, just being able to get more than one page in one call (not relying on physically contiguous memory) would be a simple and useful optimization. -- 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>