Re: [RFC PATCH 0/2] mm: improve folio refcount scalability

From: Gladyshev Ilya

Date: Mon Jan 12 2026 - 09:32:19 EST


On 1/12/2026 2:49 PM, Kiryl Shutsemau wrote:
On Mon, Jan 12, 2026 at 11:30:38AM +0300, Gladyshev Ilya wrote:
Gentle ping on this proposal

I generally like the idea, but I would like to hear from folks who
actually understand serialization.

Also, do you have number for "a full CAS loop when the counter is
approaching overflow" thing?

I am not sure that overflow is a real problem because you need a very specific race condition over a long time to achieve it... But as a safeguard, everything lower than 2^31 - #max concurrent accesses (~#num cpu) should work, so let's say 2^30