Skip to content

fix: io stalls query #240

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

Conversation

rahulreddy15
Copy link
Contributor

This PR corrects the IO stall calculation in the database performance query.
The previous implementation incorrectly added io_stall_write_ms (milliseconds) and num_of_writes (count), which mixed incompatible units and produced meaningless results.
The fix uses SUM(io_stall) instead, which properly measures total I/O wait time in consistent millisecond units. The io_stall column already aggregates all I/O stall time (reads and writes) and provides an accurate measure of I/O performance impact

@rahulreddy15 rahulreddy15 requested a review from a team as a code owner July 1, 2025 03:21
@rahulreddy15 rahulreddy15 changed the title Fix: IO Stalls Query fix: io stalls query Jul 1, 2025
@rahulreddy15 rahulreddy15 force-pushed the NR-426233-Investigate-and-fix-query-used-to-retrieve-io.stallInMilliseconds branch from 2c97fc1 to 4c7b8d8 Compare July 1, 2025 07:10
Copy link
Contributor

@sairaj18 sairaj18 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this change. I see some of the metrics were removed from testdata files, could you please add those metrics back and fix the regex in unit test such that these metrics get populated correctly?

@rahulreddy15 rahulreddy15 force-pushed the NR-426233-Investigate-and-fix-query-used-to-retrieve-io.stallInMilliseconds branch from 5c434b8 to 55c8b6a Compare July 4, 2025 09:11
@rahulreddy15 rahulreddy15 requested a review from sairaj18 July 4, 2025 09:12
@rahulreddy15 rahulreddy15 requested a review from sairaj18 July 4, 2025 09:57
Copy link
Contributor

@sairaj18 sairaj18 left a comment

Choose a reason for hiding this comment

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

LGTM

@rahulreddy15 rahulreddy15 merged commit 4d5a840 into master Jul 4, 2025
16 checks passed
@rahulreddy15 rahulreddy15 deleted the NR-426233-Investigate-and-fix-query-used-to-retrieve-io.stallInMilliseconds branch July 4, 2025 10:02
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.

2 participants