New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent: Fix an issue reporting OOM events by mistake #8773
Conversation
15de588
to
7e1aeab
Compare
7e1aeab
to
e292ece
Compare
@@ -165,22 +166,17 @@ async fn register_memory_event( | |||
|
|||
tokio::spawn(async move { | |||
loop { | |||
let sender = sender.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the line deleted ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cuz clone()
is unnecessary here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @justxuewei
/test |
ff86888
to
fb3cf6b
Compare
The agent registers an event fd in `memory.oom_control`. An OOM event is forwarded to containerd when the event is emitted, regardless of the content in that file. I observed content indicating that events should not be forwarded, as shown below. When `oom_kill` is set to 0, it means no OOM has occurred. Therefore, it is important to check the content to avoid mistakenly forwarding OOM events. ``` oom_kill_disable 0 under_oom 0 oom_kill 0 ``` Fixes: kata-containers#8715 Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
fb3cf6b
to
0e9d73f
Compare
/test |
The agent registers an event fd in
memory.oom_control
. An OOM event isforwarded to containerd when the event is emitted, regardless of the
content in that file.
I observed content indicating that events should not be forwarded, as shown
below. When
oom_kill
is set to 0, it means no OOM has occurred. Therefore,it is important to check the content to avoid mistakenly forwarding OOM
events.
Fixes: #8715