Re: [RFC 0/6] mm: improve page allocator scalability via splitting zones

From: Arjan van de Ven
Date: Thu May 11 2023 - 09:07:17 EST


On 5/11/2023 3:30 AM, Jonathan Cameron wrote:

Hi,

Interesting idea. I'm curious though on whether this can suffer from
imbalance problems where due to uneven allocations from particular CPUs
you can end up with all page faults happening in one zone and the original
contention problem coming back? Or am I missing some process that will
result in that imbalance being corrected?

Jonathan

Well, the first line of defense is the per cpu page lists...
it can well be that a couple of cpus all in the same zone hit some high frequency
pattern... that by itself isn't the real issue. Note the "a couple".
It gets to be a problem if "a high number" start hitting this...
And by splitting the total into smaller pieces, this is going to be much much
less likely, since the total number per zone is just less.