Re: [PATCH 7/9] mm, page_alloc: move draining pcplists to page isolation users

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:10, Vlastimil Babka wrote: > Currently, pcplists are drained during set_migratetype_isolate() which means > once per pageblock processed start_isolate_page_range(). This is somewhat > wasteful. Moreover, the callers might need different guarantees, and the > draining is

Re: [PATCH 7/9] mm, page_alloc: move draining pcplists to page isolation users

2020-09-25 Thread David Hildenbrand
On 22.09.20 16:37, Vlastimil Babka wrote: > Currently, pcplists are drained during set_migratetype_isolate() which means > once per pageblock processed start_isolate_page_range(). This is somewhat > wasteful. Moreover, the callers might need different guarantees, and the > draining is currently

[PATCH 7/9] mm, page_alloc: move draining pcplists to page isolation users

2020-09-22 Thread Vlastimil Babka
Currently, pcplists are drained during set_migratetype_isolate() which means once per pageblock processed start_isolate_page_range(). This is somewhat wasteful. Moreover, the callers might need different guarantees, and the draining is currently prone to races and does not guarantee that no page