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

plugin/pprof - add option to enable block profiling #2729

Merged
merged 2 commits into from
Mar 29, 2019

Conversation

fturib
Copy link
Contributor

@fturib fturib commented Mar 26, 2019

1. Why is this pull request needed and what does it do?

In order to collect profiling information for blocked routines, we need to set a specific function of runtime.

see changes in the README.

2. Which issues (if any) are related?

This pprof option is useful to investigate the reason of high number of goroutines and associated memory or CPU.

This profiling mode was needed to investigate: #2593
Will allow to investigate the Mem+CPU spike here : #2624

3. Which documentation changes (if any) need to be made?

README is updated

4. Does this introduce a backward incompatible change or deprecation?

no.

@corbot corbot bot requested a review from miekg March 26, 2019 22:03
@corbot
Copy link

corbot bot commented Mar 26, 2019

Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked miekg (via plugin/pprof/OWNERS) for a review.

If you have questions or suggestions for this bot, please file an issue against the miekg/dreck repository.

The bot understands the commands that are listed here.

@codecov-io
Copy link

Codecov Report

Merging #2729 into master will decrease coverage by <.01%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2729      +/-   ##
==========================================
- Coverage   55.15%   55.15%   -0.01%     
==========================================
  Files         199      199              
  Lines       10164    10170       +6     
==========================================
+ Hits         5606     5609       +3     
- Misses       4141     4143       +2     
- Partials      417      418       +1
Impacted Files Coverage Δ
plugin/pprof/pprof.go 0% <0%> (ø) ⬆️
plugin/pprof/setup.go 87.5% <57.14%> (-5.1%) ⬇️

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 f6eb2a4...6014a05. Read the comment docs.

Copy link
Member

@rajansandeep rajansandeep left a comment

Choose a reason for hiding this comment

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

I have tested this and it works as expected.

plugin/pprof/README.md Outdated Show resolved Hide resolved
@miekg miekg merged commit c144da2 into coredns:master Mar 29, 2019
Jason-ZW pushed a commit to rancher/coredns that referenced this pull request Apr 17, 2019
* - add an option for block profiling to plugin pprof

* - move option block into nested block
dna2github pushed a commit to dna2fork/coredns that referenced this pull request Jul 19, 2019
* - add an option for block profiling to plugin pprof

* - move option block into nested block
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