接着上篇写,继续介绍zone allocator.上一篇介绍了周边,现在来看看它的全貌 --- 函数__alloc_pages(). Kernel源代码里是这样注释函数__alloc_pages()的.其重要地位可见一斑. 1451 /* 1452 * This is the 'heart' of the zoned buddy allocator. 1453 */ __alloc_pages()的工作模式很清晰:利用函数get_page_from_freelist()多次遍历zonelis
http://duartes.org/gustavo/blog/post/how-the-kernel-manages-your-memory/ After examining the virtual address layout of a process, we turn to the kernel and its mechanisms for managing user memory. Here is gonzo again: Linux processes are implemented