-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable cpu limiting using cgroup v2 #8471
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8471 +/- ##
===========================================
+ Coverage 12.31% 28.93% +16.61%
===========================================
Files 20 150 +130
Lines 1161 23097 +21936
===========================================
+ Hits 143 6683 +6540
- Misses 1014 15799 +14785
- Partials 4 615 +611
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
1f532ba
to
1c78a42
Compare
9991c07
to
5c28118
Compare
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 left some comments, but I like these codes!
return 0, 0, xerrors.Errorf("cpu.max did not have expected number of fields: %s", parts) | ||
} | ||
|
||
var quota int64 |
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 quota
is always a positive value, right?
var quota int64 | |
var quota uint64 |
This PR is quite a great feature for users. I would love to see you write a release note. |
Wasn't sure if we already want to announce it to users 😉 . Added release note. |
/werft run 👍 started the job as gitpod-build-fo-v2cpulimit.13 |
@utam0k @csweichel PTAL |
return Unknown, err | ||
} | ||
|
||
func IsUnifiedCgroupSetup() (bool, error) { |
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.
Thanks for reflecting my opinion❤️
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 like these codes! LGTM
Description
Enable cpu limiting using cgroup v2.
Related Issue(s)
#8498
How to test
Notes for reviewers
Considered using containerd cgroups library but
Release Notes