From: Gang Li <ligang.bdlg@bytedance.com>
To: Michal Hocko <mhocko@suse.com>
Cc: rientjes@google.com, linux-kernel@vger.kernel.org,
Waiman Long <longman@redhat.com>,
Zefan Li <lizefan.x@bytedance.com>,
cgroups@vger.kernel.org
Subject: Re: Re: [PATCH v2] mm: oom: introduce cpuset oom
Date: Thu, 6 Apr 2023 11:22:16 +0800 [thread overview]
Message-ID: <e444e0ca-a2ff-37f2-1f1a-032b9fd63235@bytedance.com> (raw)
In-Reply-To: <ZCw0sR6IqYa5Es7Q@dhcp22.suse.cz>
On 2023/4/4 22:31, Michal Hocko wrote:
> [CC cpuset people]
>
> The oom report should be explicit about this being CPUSET specific oom
> handling so unexpected behavior could be nailed down to this change so I
Yes, the oom message looks like this:
```
[ 65.470256]
oom-kill:constraint=CONSTRAINT_CPUSET,nodemask=(null),cpuset=test,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-4.scope,task=memkiller,pid=1968,uid=0
Apr 4 09:08:53 debian kernel: [ 65.481992] Out of memory: Killed
process 1968 (memkiller) total-vm:2099436kB, anon-rss:1971712kB,
file-rss:1024kB, shmem-rss:0kB, UID:0 pgtables:3904kB oom_score_adj:0
```
> do not see a major concern from the oom POV. Nevertheless it would be
> still good to consider whether this should be an opt-in behavior. I
> personally do not see a major problem because most cpuset deployments I
> have seen tend to be well partitioned so the new behavior makes more
> sense.
>
Since memcgroup oom is mandatory, cpuset oom should preferably be
mandatory as well. But we can still consider adding an option to user.
How about introduce `/proc/sys/vm/oom_in_cpuset`?
next prev parent reply other threads:[~2023-04-06 3:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-04 11:55 Gang Li
2023-04-04 14:31 ` Michal Hocko
2023-04-04 17:24 ` Waiman Long
2023-04-06 3:04 ` Gang Li
2023-04-06 13:02 ` Gang Li
2023-04-06 15:53 ` Waiman Long
2023-04-06 3:22 ` Gang Li [this message]
2023-04-06 8:30 ` Michal Hocko
2023-04-06 8:33 ` Gang Li
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=e444e0ca-a2ff-37f2-1f1a-032b9fd63235@bytedance.com \
--to=ligang.bdlg@bytedance.com \
--cc=cgroups@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=longman@redhat.com \
--cc=mhocko@suse.com \
--cc=rientjes@google.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
all inboxes | Powered by JetHome®