-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[memorylimiter] Fix cgroups parsing #7145
[memorylimiter] Fix cgroups parsing #7145
Conversation
@jpkrohling let's continue the conversation from #6825 (comment) here So in this case, unit test fails without the fix for you, as per comment #6825 (comment)
Basically to get it's memory info the program is trying to read So it seems everything is okay and the fix is working? Or do you have any other issues? |
Codecov ReportBase: 90.84% // Head: 90.84% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #7145 +/- ##
=======================================
Coverage 90.84% 90.84%
=======================================
Files 293 293
Lines 14302 14304 +2
=======================================
+ Hits 12993 12995 +2
Misses 1041 1041
Partials 268 268
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Actually, it does not fail with the
|
I re-ran the tests based on #7105, after rebasing on
|
I had the same thing when I rebased to the main branch. I checked and for some reason rebasing got rid of the change in
Maybe the merged commit and reverted commit made git rebase work weirdly? I rebased this #7105 to main and added Could you do another run of #7105? |
Re-running #7105 got me this:
This is how #7105 looks like for me:
|
So fails without fix as expected, and we seem to need to filter only the @jpkrohling do you have any concerns about this change? or something I can take a look / resolve? |
It's not failing on
I guess there's something I'm not fully understanding here? Would you like to do a live session to sort this out? Ping me on Slack and we can find a time that works for both of us. |
@@ -6,3 +6,5 @@ | |||
6 5 0:5 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:6 - cgroup cgroup rw,cpuset | |||
7 5 0:6 /docker /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:7 - cgroup cgroup rw,cpu,cpuacct | |||
8 5 0:7 /docker /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:8 - cgroup cgroup rw,memory | |||
9 1 0:8 / /var/lib/docker/overlay2/9054a95f2cf7296867089e1bd37931742a17eb3308a795d51adb2654ee2276df/merged/sys/fs/cgroup ro,nosuid,nodev,noexec,relatime - tmpfs tmpfs rw,mode=755 |
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.
This is the change I was looking for!
This is probably good to merge, as previous (incidentally merged and reverted) was Approved by three other folks #6825 :) |
@codeboten, would you do the honors? |
Please rebase |
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.
Please rebase to unblock the 1.20 unit test check :)
)" (open-telemetry#7142)" This reverts commit f7af599.
47f73b7
to
16970fa
Compare
Done :) |
#6825 was accidentally merged and reverted, this PR reverts the revert commit -> #7142
There are more discussion in the original PR #6825
Important (read before submitting)
Description:
Fixing Memory limiter bug, when container mount's hosts sys filesystem, cgroups might incorrectly parse current container's memory.
The only way I figure we can fix this is to limit the search to
/sys
? But I'm not sure if there are kernel's that would mount this in a different place?Link to tracking Issue: #6826
and open-telemetry/opentelemetry-helm-charts#543
Testing:
Documentation: < Describe the documentation added.>