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

2020-12-04 Thread Muchun Song
On Fri, Dec 4, 2020 at 6:28 PM Vlastimil Babka wrote: > > On 12/4/20 5:03 AM, Muchun Song wrote: > > On Fri, Dec 4, 2020 at 1:37 AM Vlastimil Babka wrote: > >> > >> On 12/2/20 1:18 PM, Muchun Song wrote: > >> > When we free a page whose order is very close to MAX_ORDER and greater > >> > than

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

2020-12-04 Thread Vlastimil Babka
On 12/4/20 5:03 AM, Muchun Song wrote: > On Fri, Dec 4, 2020 at 1:37 AM Vlastimil Babka wrote: >> >> On 12/2/20 1:18 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 >> >

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

2020-12-03 Thread Muchun Song
On Fri, Dec 4, 2020 at 1:37 AM Vlastimil Babka wrote: > > On 12/2/20 1:18 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

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

2020-12-03 Thread Vlastimil Babka
On 12/2/20 1:18 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 But we have to do that. It's not the

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

2020-12-02 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.