Bug 8462 - notify the victim's memcg's oom event when system OOM occur
Summary: notify the victim's memcg's oom event when system OOM occur
Status: NEW
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: 4.19-024.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wangrongwei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-08 15:36 UTC by lifupan
Modified: 2024-03-08 15:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lifupan 2024-03-08 15:36:07 UTC
Description of problem:

When a system OOM occur, and select a victim to kill,
it's better to notify the victim's memcg's OOM event,
thus, the container's cgroup OOM event watcher would
be notified and mark the container's exit reason as
"OOM".


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create a process in a memory cgroup and let it allocate a larger memory
2. in the root memory cgroup, try to allocate large memory to tigger the system OOM
3. the process in the memory cgroup was selected as an victim

Actual results:

The victim process located cgroup didn't receive the OOM event


Expected results:


The victim process located cgroup should receive the OOM event

Additional info:
Comment 1 小龙 admin 2024-03-08 15:37:15 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2836