Skip to content
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

fix: Fix not reading limits when cgroup v2 used #107

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

funbiscuit
Copy link
Contributor

@funbiscuit funbiscuit commented Sep 14, 2023

Motivation

Docker image was not picking up memory limits when cgroup v2 was used. This lead to incorrect java heap memory limits that lead to crashes due to OOMKilled as described in #106

Modifications

To start.sh script that launches application added extra check for limits in cgroup v2 file.

Result

Docker image works and correctly reads memory limits with both cgroup v1 and v2.

Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @funbiscuit -- The change looks good. Could you please fix the DCO check, sign-off your commits?

https://github.com/kserve/modelmesh/pull/107/checks?check_run_id=17237005674

@funbiscuit
Copy link
Contributor Author

@ckadner I've updated commit message, now DCO passes.

@funbiscuit funbiscuit requested a review from ckadner September 29, 2023 05:52
Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sviatoslav. Your change works well for me.

/lgtm
/approve

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, funbiscuit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ckadner ckadner merged commit 757b91e into kserve:main Sep 29, 2023
3 checks passed
@ckadner ckadner added this to the v0.11.1 milestone Oct 2, 2023
@ckadner ckadner linked an issue Oct 2, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Incorrect limits in dockerfile when cgroup v2 is used
3 participants