Skip to content

runtime: only check killall for init process#3559

Merged
estesp merged 1 commit intocontainerd:masterfrom
fuweid:avoid-read-config
Aug 20, 2019
Merged

runtime: only check killall for init process#3559
estesp merged 1 commit intocontainerd:masterfrom
fuweid:avoid-read-config

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Aug 20, 2019

When containerd-shim does reaper, the most processes are not init
process. Since json.Decode consumes more CPU resource, we should check
killall option for init process only.

Signed-off-by: Wei Fu fuweid89@gmail.com

link to #3540 (comment)

When containerd-shim does reaper, the most processes are not init
process. Since json.Decode consumes more CPU resource, we should check
killall option for init process only.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 20, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 20, 2019

Codecov Report

Merging #3559 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3559   +/-   ##
=======================================
  Coverage   42.19%   42.19%           
=======================================
  Files         127      127           
  Lines       13905    13905           
=======================================
  Hits         5867     5867           
  Misses       7152     7152           
  Partials      886      886
Flag Coverage Δ
#linux 45.65% <ø> (ø) ⬆️
#windows 37.26% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6da899...1073868. Read the comment docs.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 640860a into containerd:master Aug 20, 2019
@Random-Liu
Copy link
Copy Markdown
Member

Random-Liu commented Aug 20, 2019

@fuweid LGTM. Thanks for investigating this! This makes a lot of sense to me. :)

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.

5 participants