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

2020-09-10 Thread David Hildenbrand
On 07.09.20 18:36, 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 it once per zone, and it applies the calculated values > to all per-cpu pagesets of the zone. > >

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

2020-09-10 Thread Oscar Salvador
On Mon, Sep 07, 2020 at 06:36:25PM +0200, 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 it once per zone, and it applies the calculated values > to all per-cpu

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

2020-09-07 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 it once per zone, and it applies the calculated values to all per-cpu pagesets of the zone. This also allows removing zone_pageset_init() and