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

Make /proc/diskstats compatible with Kernel 4.18+ #39

Merged
merged 1 commit into from
May 20, 2019

Conversation

matsimitsu
Copy link
Member

@matsimitsu matsimitsu commented May 7, 2019

Kernel 4.18+ appends four more fields for discard
tracking putting the total at 18:

15 - discards completed successfully
16 - discards merged
17 - sectors discarded
18 - time spent discarding

This commit makes the readout compatible with these new fields, but does not read them.

Fixes https://github.com/appsignal/support/issues/10

Kernel 4.18+ appends four more fields for discard
tracking putting the total at 18:

15 - discards completed successfully
16 - discards merged
17 - sectors discarded
18 - time spent discarding

This commit makes the readout compatible with these new fields.
@matsimitsu matsimitsu self-assigned this May 7, 2019
@matsimitsu matsimitsu requested review from thijsc and tombruijn May 7, 2019 09:22
@matsimitsu matsimitsu merged commit 7bf150a into master May 20, 2019
@tombruijn tombruijn deleted the diskstats_4_18 branch July 22, 2019 12:38
tombruijn added a commit to appsignal/appsignal-ruby that referenced this pull request Jul 22, 2019
- Fix container CPU runtime metrics.
  See appsignal/probes-rs#38 for more
  information.
- Improve host metrics calculations accuracy for counter metrics.
  See appsignal/probes-rs#40 for more
  information.
- Support Kernel 4.18+ format of /proc/diskstats file parsing.
  See appsignal/probes-rs#39 for more
  information.
tombruijn added a commit to appsignal/appsignal-elixir that referenced this pull request Jul 22, 2019
- Fix container CPU runtime metrics.
  See appsignal/probes-rs#38 for more
  information.
- Improve host metrics calculations accuracy for counter metrics.
  See appsignal/probes-rs#40 for more
  information.
- Support Kernel 4.18+ format of /proc/diskstats file parsing.
  See appsignal/probes-rs#39 for more
  information.
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.

3 participants