-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Take total_inactive_file into consideration for memory usage #3115
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
Take total_inactive_file into consideration for memory usage #3115
Conversation
|
LGTM |
|
LGTM, PTAL @giuseppe |
We should take the `total_inactive_file` into consideration when providing the `WorkingSetBytes` to align with other container runtimes. Signed-off-by: Sascha Grunert <[email protected]>
0d73d3c to
512fdb2
Compare
| if isV2, err := cgroups.IsCgroup2UnifiedMode(); err == nil || isV2 { | ||
| return 0, nil | ||
| } |
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.
@giuseppe is this the right way to use this function? I cannot omit the check for the err because the linter will complain that I not checked that 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.
yeah I think it is fine. Thanks for fixing it so quickly!
giuseppe
left a comment
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, mrunalp, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
We should backport this as well. Thanks! |
|
/retest |
|
@saschagrunert: once the present PR merges, I will cherry-pick it on top of release-1.17 in a new PR and assign it to you. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
@saschagrunert: once the present PR merges, I will cherry-pick it on top of release-1.17 in a new PR and assign it to you. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@saschagrunert: failed to push cherry-picked changes in GitHub: pushing failed, output: "To https://github.com/openshift-cherrypick-robot/cri-o\n ! [remote rejected] cherry-pick-3115-to-release-1.17 -> cherry-pick-3115-to-release-1.17 (cannot lock ref 'refs/heads/cherry-pick-3115-to-release-1.17': reference already exists)\nerror: failed to push some refs to 'https://openshift-cherrypick-robot:[email protected]/openshift-cherrypick-robot/cri-o'\n", error: exit status 1 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@saschagrunert: new pull request created: #3125 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We should take the
total_inactive_fileinto considerationwhen providing the
WorkingSetBytesto align with othercontainer runtimes.
Closes #3106