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

2020-12-07 Thread Oscar Salvador
On Fri, Dec 04, 2020 at 11:51:09PM +0800, 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 espec

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

2020-12-07 Thread David Hildenbrand
On 04.12.20 16:51, 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 is

[PATCH v3] 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. We also sh