Re: [PATCH 8/9] mm, page_alloc: drain all pcplists during memory offline

2020-10-05 Thread Michal Hocko
On Fri 25-09-20 12:46:27, David Hildenbrand wrote: > On 22.09.20 16:37, Vlastimil Babka wrote: [...] > > +/* > > + * Spill all the per-cpu pages from all CPUs back into the buddy allocator. > > + * > > + * When zone parameter is non-NULL, spill just the single zone's pages. > > + * > > + * Note

Re: [PATCH 8/9] mm, page_alloc: drain all pcplists during memory offline

2020-09-25 Thread David Hildenbrand
On 22.09.20 16:37, Vlastimil Babka wrote: > drain_all_pages() is optimized to only execute on cpus where pcplists are not > empty. The check can however race with a free to pcplist that has not yet > increased the pcp->count from 0 to 1. Make the drain optionally skip the racy > check and drain on

[PATCH 8/9] mm, page_alloc: drain all pcplists during memory offline

2020-09-22 Thread Vlastimil Babka
drain_all_pages() is optimized to only execute on cpus where pcplists are not empty. The check can however race with a free to pcplist that has not yet increased the pcp->count from 0 to 1. Make the drain optionally skip the racy check and drain on all cpus, and use it in memory offline context,