Re: Improve page refcount scalability
From: Kirill A. Shutemov
Date: Wed Oct 14 2026 - 13:52:40 EST
On Wed, Oct 14, 2026, at 17:59, Linus Torvalds wrote:
> That actually makes me think I should go back and clear PG_rcu_free on
> unlink - at that point the folio can no longer be read. I used to
> treat unlink differently from truncate/hole punch because of this, but
> that was in my first version where I marked the pages for freeing when
> removing them from the address space. Now that I mark them at read
> time when they are 'hot', unlink() is still going to pointlessly
> rcu-delay their freeing.
I already have it:
https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=9d731267fdfeceae023449a768884ee8c66f309d
--
Kiryl Shutsemau / Kirill A. Shutemov