Thread (49 messages) 49 messages, 8 authors, 2026-09-01

Re: [RFC 06/10] Reclaim memory from blocked kernel stacks

flat view

From: Peter Zijlstra <peterz@infradead.org>
Date: 2026-08-29 08:43:46
Also in: linux-mm, linux-rt-devel, lkml

On Sat, Aug 29, 2026 at 10:39:29AM +0200, Peter Zijlstra wrote:
quoted
The optimistic fast path for repopulate_stack() could be modified to
try pulling from a pre-allocated pool of zero'ed pages. That would
reduce the function to a couple of memcg_kmem_charge_page() calls and
Afaict memcg_kmem_charge_page() ends up in a local_lock, which is a
spinlock, so that cannot be.
Perhaps just don't uncharge them on reclaim, then you don't have to
re-charge.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help