From: Shakeel Butt <shakeel.butt@linux.dev>
To: zhongjinji@honor.com
Cc: linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@suse.com,
rientjes@google.com, npache@redhat.com, liulu.liu@honor.com,
feng.han@honor.com, jsavitz@redhat.com
Subject: Re: [PATCH] mm: delay oom_reaper only for the process using robust-futex
Date: Thu, 31 Jul 2025 09:54:18 -0700 [thread overview]
Message-ID: <u3mepw3oxj7cywezna4v72y2hvyc7bafkmsbirsbfuf34zpa7c@b23sc3rvp2gp> (raw)
In-Reply-To: <20250731102904.8615-1-zhongjinji@honor.com>
Hi Zhongjinji,
On Thu, Jul 31, 2025 at 06:29:04PM +0800, zhongjinji@honor.com wrote:
> From: zhongjinji <zhongjinji@honor.com>
>
> After the patch here:
> https://lore.kernel.org/all/20220414144042.677008-1-npache@redhat.com/T/#u
> was merged, the oom_reaper almost stops working.
Can you expand on this? How exactly it stopped working? Is this due to
oom-killed processes are exiting in timely fashion or are you seeing the
system remains in memory pressure state longer?
>
> But I noticed that many processes do not use robust-futex, so they don’t
> access user-space memory during do_exit and don’t run into the problem
> mentioned in that patch.
>
> So, this change delays the oom_reaper only when the process uses
> robust-futex, letting the oom_reaper work properly in more cases.
The direction seems reasonable.
>
> +static inline bool exit_may_access_user(struct task_struct *task)
> +{
> + return task->robust_list || task->compat_robust_list;
Here I am not sure. This robust_list seems like a per-task list and we
are making a process level decision based on a given task's usage of
robust list. Can we have a scenario where some tasks/threads of a
process does not have robust list and others have? If yes this can cause
similar similar which the original patch tried to solve, right?
next prev parent reply other threads:[~2025-07-31 16:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 10:29 zhongjinji
2025-07-31 16:54 ` Shakeel Butt [this message]
2025-08-01 13:20 ` zhongjinji
2025-07-31 22:28 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u3mepw3oxj7cywezna4v72y2hvyc7bafkmsbirsbfuf34zpa7c@b23sc3rvp2gp \
--to=shakeel.butt@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=feng.han@honor.com \
--cc=jsavitz@redhat.com \
--cc=linux-mm@kvack.org \
--cc=liulu.liu@honor.com \
--cc=mhocko@suse.com \
--cc=npache@redhat.com \
--cc=rientjes@google.com \
--cc=zhongjinji@honor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox