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

config-linux: RFC 2119 wording for disableOOMKiller #745

Closed
wants to merge 1 commit into from

Conversation

wking
Copy link
Contributor

@wking wking commented Mar 28, 2017

The previous wording tiptoes between background docs about kernel behavior and runtime requirements, so it's not clear what the runtime is required to do or how you'd compliance-test runtimes. The new wording uses MUST (NOT) wording for the various cases, so the runtime responsibilities are clear.

The implementation-defined case avoids specifying when:

The previous wording tiptoes between background docs about kernel
behavior and runtime requirements, so it's not clear what the runtime
is required to do or how you'd compliance-test runtimes.  The new
wording uses MUST (NOT) wording for the various cases, so the runtime
responsibilities are clear.

The implementation-defined case avoids specifying when:

* The parent memory cgroup may have different values of
  oom_kill_disable, and
* The runtime may or may not create a new memory cgroup for the
  controller (because of the "MAY attach the container process to
  additional cgroup controllers" language).

Signed-off-by: W. Trevor King <wking@tremily.us>
@hqhq
Copy link
Contributor

hqhq commented Apr 5, 2017

LGTM

Approved with PullApprove

@vbatts
Copy link
Member

vbatts commented Apr 5, 2017

while this is more direct, I feel the reason the tip-toeing was accomplishing the ambiguity of whether that means failing the runtime if the feature isn't present.

@wking
Copy link
Contributor Author

wking commented Apr 5, 2017 via email

@tianon
Copy link
Member

tianon commented May 11, 2017

The part of this I find irritating while reading it is that it re-references cgroupsPath over and over again. IMO it's an OK change if we drop the last two lines.

I think if a config.json includes "disableOOMKiller": true and the kernel doesn't support it, that runtime should fail, which is exactly what If disableOOMKilleris set, the runtime MUST setoom_kill_disable to the appropriate value. will ensure (since the kernel will error out, causing the runtime to be unable to fulfill the requirement specified by the config).

I also don't think this is worth holding up 1.0 for -- this seems like a fine clarification to make in 1.1.0.

@wking
Copy link
Contributor Author

wking commented May 11, 2017 via email

@wking
Copy link
Contributor Author

wking commented May 11, 2017 via email

@vbatts
Copy link
Member

vbatts commented May 24, 2017

i'm closing this. we'll follow the discussion of #834

@vbatts vbatts closed this May 24, 2017
@wking
Copy link
Contributor Author

wking commented May 24, 2017 via email

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

Successfully merging this pull request may close these issues.

4 participants