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

Docker client hardcodes --oom-score-adj=0 by default, while the expected default would be to *NOT* change oom score adj #4846

Open
Romain-Geissler-1A opened this issue Feb 2, 2024 · 0 comments

Comments

@Romain-Geissler-1A
Copy link

Description

Hi,

As described in containers/podman#19930 (comment) it seems that currently in the docker client code, the default value of oomScoreAdj

oomScoreAdj int
is zero, which is unexpected. The right default value for this value should be nil (ie explicitly not provided by the user, so the container engine shall not try to set the oom score adjutement). When docker is used as a client to target podman, podman thinks the user explicitly provided 0 while most of the time people don't even set this.

Would it be possible to change the type of this oomScoreAdj to some "optional int" (I don't know how this is best written in go, as I am not myself a go developer) ?

Reproduce

Given the description, I don't think reproduction steps are needed.

Expected behavior

0 shouldn't be the default behavior of oomScoreAdj, it should be nil and no value passed to the docker deamon.

docker version

Any docker version

docker info

Not needed

Additional Info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant