Re: [External] Re: [PATCH v2] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Muchun Song
On Fri, Dec 4, 2020 at 11:28 PM Vlastimil Babka wrote: > > On 12/4/20 1:56 PM, Muchun Song wrote: > > When we free a page whose order is very close to MAX_ORDER and greater > > than pageblock_order, it wastes some CPU cycles to increase max_order > > to MAX_ORDER one by one and check the

Re: [PATCH v2] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Vlastimil Babka
On 12/4/20 1:56 PM, Muchun Song wrote: > When we free a page whose order is very close to MAX_ORDER and greater > than pageblock_order, it wastes some CPU cycles to increase max_order > to MAX_ORDER one by one and check the pageblock migratetype of that page > repeatedly especially when MAX_ORDER

[PATCH v2] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Muchun Song
When we free a page whose order is very close to MAX_ORDER and greater than pageblock_order, it wastes some CPU cycles to increase max_order to MAX_ORDER one by one and check the pageblock migratetype of that page repeatedly especially when MAX_ORDER is much larger than pageblock_order.