[RFC PATCH 9/9] mm: page_alloc: merge before sending pages to global pool

2018-09-10 Thread Aaron Lu
Now that we have mergable pages in Buddy unmerged, this is a step to reduce such things from happening to some extent. Suppose two buddy pages are on the list to be freed in free_pcppages_bulk(), the first page goes to merge but its buddy is not in Buddy yet so we hold it locally as an order0

[RFC PATCH 9/9] mm: page_alloc: merge before sending pages to global pool

2018-09-10 Thread Aaron Lu
Now that we have mergable pages in Buddy unmerged, this is a step to reduce such things from happening to some extent. Suppose two buddy pages are on the list to be freed in free_pcppages_bulk(), the first page goes to merge but its buddy is not in Buddy yet so we hold it locally as an order0