Re: [PATCH v4 2/3] mm/oom_kill: Only delay OOM reaper for processes using robust futexes
From: Davidlohr Bueso
Date: Thu Aug 21 2025 - 15:45:53 EST
On Thu, 21 Aug 2025, Michal Hocko wrote:
On Tue 19-08-25 19:53:08, Davidlohr Bueso wrote:
Yeah, relying on time as a fix is never a good idea. I was going to suggest
skipping the reaping for tasks with a robust list,
let me reiterate that the purpose of the oom reaper is not an oom
killing process optimization. It is crucial to guarantee a forward
progress on the OOM situation by a) async memory reclaim of the oom
victim and b) unblocking oom selection to a different process after a)
is done. That means that the victim cannot block the oom situation for
ever. Therefore we cannot really avoid tasks with robust futex or any
other user processes without achieving b) at the same time.
Yes, which is why I indicated that skipping it was less practical.
In the real world, users that care enough to use robust futexes should
make sure that their application keep the OOM killer away altogether.
Thanks,
Davidlohr