Re: [RFC PATCH] kernfs: release kernfs_mutex before the inode allocation
From: Tejun Heo
Date: Tue Jun 30 2026 - 09:51:32 EST
Hello,
On Tue, Jun 30, 2026 at 11:26:31AM +0800, Wenwu Hou wrote:
...
> In our real-world case, thousands of nodejs processes hit the cgroup memory
> limit and sleep on the OOM path, runc gets blocked, and consequently the node
> remains in an unschedulable state for many hours.
I don't think we can work around thousands of processes stalling in OOM path
with kernfs locking changes. There are better ways to manage memory
pressure. Please look into memory.high and PSI driven userspace OOM
handling.
Thanks.
--
tejun