Skip to content

Set oom_score_adj before we send the config to avoid race#668

Merged
mrunalp merged 1 commit into
opencontainers:masterfrom
mrunalp:fix_exec_oom
Mar 22, 2016
Merged

Set oom_score_adj before we send the config to avoid race#668
mrunalp merged 1 commit into
opencontainers:masterfrom
mrunalp:fix_exec_oom

Conversation

@mrunalp

@mrunalp mrunalp commented Mar 21, 2016

Copy link
Copy Markdown
Contributor

Signed-off-by: Mrunal Patel mrunalp@gmail.com

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
@mrunalp

mrunalp commented Mar 21, 2016

Copy link
Copy Markdown
Contributor Author

@mikebrow Can you check if this fixes #662 for you? Thanks!

@mrunalp

mrunalp commented Mar 21, 2016

Copy link
Copy Markdown
Contributor Author

Fix for the broken test is in #669

@mikebrow

Copy link
Copy Markdown
Member

Yes, running with that change, the error is no longer reproducible with runc exec test_busybox echo Hello.

@mrunalp

mrunalp commented Mar 21, 2016

Copy link
Copy Markdown
Contributor Author

@mikebrow Thanks! Basically with this change we are relying on the synchronization for passing down config. We also set the cgroups before passing the config for the same reason. This escaped under the radar during review.

@mikebrow

Copy link
Copy Markdown
Member

Ok! I'll write up some stress test cases to try and catch bootstrap issues for start and exec. Cheers

@hqhq

hqhq commented Mar 22, 2016

Copy link
Copy Markdown
Contributor

Test failed.

@cyphar

cyphar commented Mar 22, 2016

Copy link
Copy Markdown
Member

@hqhq Test failure is fixed in #669. It's not related to this PR.

@hqhq

hqhq commented Mar 22, 2016

Copy link
Copy Markdown
Contributor

All right, I see #669 fixed this.

@hqhq

hqhq commented Mar 22, 2016

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@cyphar

cyphar commented Mar 22, 2016

Copy link
Copy Markdown
Member

LGTM

mrunalp pushed a commit that referenced this pull request Mar 22, 2016
Set oom_score_adj before we send the config to avoid race
@mrunalp mrunalp merged commit a35f907 into opencontainers:master Mar 22, 2016
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Closes opencontainers#668

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants