On Mon, 2016-11-21 at 05:51 -0800, Eric Dumazet wrote: > + while (chunk_order) { > + if (node == NUMA_NO_NODE) > + page = alloc_pages(multi_alloc_mask, > chunk_order); > + else > + page = alloc_pages_node(node, multi_alloc_mask, > chunk_order); > + if (page) { > + split_page(page, chunk_order); > + break; > + } > + chunk_order--; > + }
We also could remember the page order with set_page_private() and speedup show_numa_info() I wonder if we could avoid the split_page() and speedup vfree().