Re: [PATCH 2/9] mm, page_alloc: calculate pageset high and batch once per zone

2020-10-06 Thread Vlastimil Babka
On 10/5/20 2:52 PM, Michal Hocko wrote: On Tue 22-09-20 16:37:05, Vlastimil Babka wrote: We currently call pageset_set_high_and_batch() for each possible cpu, which repeats the same calculations of high and batch values. Instead call the function just once per zone, and make it apply the

Re: [PATCH 2/9] mm, page_alloc: calculate pageset high and batch once per zone

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:05, Vlastimil Babka wrote: > We currently call pageset_set_high_and_batch() for each possible cpu, which > repeats the same calculations of high and batch values. > > Instead call the function just once per zone, and make it apply the calculated > values to all per-cpu

[PATCH 2/9] mm, page_alloc: calculate pageset high and batch once per zone

2020-09-22 Thread Vlastimil Babka
We currently call pageset_set_high_and_batch() for each possible cpu, which repeats the same calculations of high and batch values. Instead call the function just once per zone, and make it apply the calculated values to all per-cpu pagesets of the zone. This also allows removing the