Skip to content

[7.x] Add other time accounting in HotThreads(#79392) #79507

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

Merged
merged 4 commits into from
Oct 19, 2021

Conversation

grcevski
Copy link
Contributor

This PR introduces the concept of 'other' time in the HotThreads report. This 'other' time is calculated as the 'unknown' time the Java threads spend running, while they are not in a WAIT/BLOCKED state and are not using the CPU directly. Typically this 'other' time ends up being consumed by I/O or by the JVM itself, e.g. GC.

We are making the HotThreads CPU report sort by default by the 'Total' runnable time, which equals the CPU time + the 'Other' time. The original sort CPU report sort order can still be invoked through the REST API, by specifying &sort=cpu in the _nodes/hot_threads API url parameters. For example: _nodes/hot_threads?type=cpu&threads=1000000&sort=cpu.

Backport of #79392

@grcevski
Copy link
Contributor Author

@elasticmachine update branch

@grcevski
Copy link
Contributor Author

@elasticmachine update branch

@grcevski grcevski removed the v7.16.1 label Oct 19, 2021
@grcevski
Copy link
Contributor Author

@elasticmachine update branch

@grcevski grcevski merged commit 6e44c5e into elastic:7.x Oct 19, 2021
@grcevski grcevski deleted the backport/hot_threads_other branch October 19, 2021 23:27
grcevski pushed a commit to grcevski/elasticsearch that referenced this pull request Oct 20, 2021
The sort by change has been merged in 7.x now and therefore
we should make 8.0 use the same BWC version.

Relates to elastic#79392 and elastic#79507
grcevski added a commit that referenced this pull request Oct 25, 2021
The sort by change has been merged in 7.x now and therefore
we should make 8.0 use the same BWC version.

Relates to #79392 and #79507

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
grcevski added a commit to grcevski/elasticsearch that referenced this pull request Oct 26, 2021
The sort by change has been merged in 7.x now and therefore
we should make 8.0 use the same BWC version.

Relates to elastic#79392 and elastic#79507

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
lockewritesdocs pushed a commit to lockewritesdocs/elasticsearch that referenced this pull request Oct 28, 2021
The sort by change has been merged in 7.x now and therefore
we should make 8.0 use the same BWC version.

Relates to elastic#79392 and elastic#79507

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
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