-
Notifications
You must be signed in to change notification settings - Fork 43
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
oom detection #365
oom detection #365
Conversation
Codecov Report
@@ Coverage Diff @@
## main #365 +/- ##
=====================================
Coverage 6.89% 6.89%
=====================================
Files 2 2
Lines 29 29
Branches 17 17
=====================================
Hits 2 2
Misses 27 27 |
4203d05
to
86dd940
Compare
2910d88
to
8e5391e
Compare
going to fix the cgroup v1 flake. |
410ebb7
to
736a291
Compare
Fixed... I had to import the tokio-eventfd library to work with cgroupv1 events. |
736a291
to
5c11719
Compare
Going to integrate a test and figure out cgroup v1... Something is still wrong. |
5c11719
to
99240e0
Compare
9e39623
to
a81b77a
Compare
I added all the requested fixes. We will need much more scaffolding to test OOMs within conmon-rs. I think we should rely on crio's test for now and add a TODO to natively test OOMs with this repo. |
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.
Just two nits, otherwise LGTM :)
95b2413
to
6d42b79
Compare
@saschagrunert can you try this on a cgroupv1 machine and see if it fails for you? |
pkg/client/client_test.go
Outdated
@@ -58,6 +58,7 @@ var _ = Describe("ConmonClient", func() { | |||
}) | |||
|
|||
It(testName("should write exit file", terminal), func() { | |||
Skip("") |
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.
I think this should be removed, right? :)
If I re-enable the test then the Expect(fileContents(tr.exitPath())).To(Equal("0"))
does fail below.
Hm, on Ubuntu 18.04 the setup seems to work:
|
b85b0b5
to
4c4798a
Compare
This is ready now... phew. |
@@ -7,7 +7,7 @@ on: | |||
env: | |||
CARGO_TERM_COLOR: always | |||
GO_VERSION: '1.18' | |||
ACTION_MSRV_TOOLCHAIN: 1.59.0 | |||
ACTION_MSRV_TOOLCHAIN: 1.60.0 |
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.
is this toolchain available on rhcos?
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.
cc @cgwalters if you know
@@ -143,7 +143,7 @@ impl ChildReaper { | |||
|
|||
pub fn kill_grandchildren(&self, s: Signal) -> Result<()> { | |||
for (_, grandchild) in self.grandchildren.lock().unwrap().iter() { | |||
debug!("{}: killing grandchild", grandchild.pid); | |||
debug!(grandchild.pid, "killing grandchild"); |
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.
I think this work got mixed with the toolchain bump, can we separate?
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.
I would even prefer we just merge this stuff with the original commit, as the git tree will look as though span support was added before this anyway
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.
fixed that up.
one small nit, otherwise LGTM what about 1.60 helped us? great work on this, it's been a long haul! |
Signed-off-by: Ryan Phillips <rphillips@redhat.com>
Signed-off-by: Ryan Phillips <rphillips@redhat.com>
Signed-off-by: Ryan Phillips <rphillips@redhat.com>
Signed-off-by: Ryan Phillips <rphillips@redhat.com>
@haircommander We hit this problem with the PR: rust-lang/cargo#10623. The only thing I could find to do is bump the version. |
LGTM, summoning @saschagrunert for the merge |
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.
LGTM, I just see some unwraps and can follow-up on them. Great work @rphillips!
Added support for OOM detection. Need to figure out how to test it.
Fixes #297