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

Implement fix for missing i/o values #174

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Implement fix for missing i/o values #174

merged 1 commit into from
Oct 27, 2020

Conversation

graeme-a-stewart
Copy link
Member

Under some circumstances that are not very well
understood the process tree chain loses i/o values
(which would normally always be "inherited" by
parent processes as children exit).

To compensate for this the iomon module will now
record maximum i/o stats, and if the polled values
are below these it will replace the stats with the
previous maximums. A warning is also printed.

To test this logic there is a defined variable in
iomon.cpp that switches on code that artificially
provokes the problem, exercising the recovery
logic.

Closes #173

Under some circumstances that are not very well
understood the process tree chain loses i/o values
(which would normally always be "inherited" by
parent processes as children exit).

To compensate for this the iomon module will now
record maximum i/o stats, and if the polled values
are below these it will replace the stats with the
previous maximums. A warning is also printed.

To test this logic there is a defined variable in
iomon.cpp that switches on code that artificially
provokes the problem, exercising the recovery
logic.
@graeme-a-stewart graeme-a-stewart added the bug Something isn't working label Oct 27, 2020
Copy link
Collaborator

@amete amete left a comment

Choose a reason for hiding this comment

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

Thanks a lot @graeme-a-stewart. I don't see any issue with this patch as the disk I/O metrics should really be monotonically increasing. It's technically working as expected, too. Having said that, the cause of the issue in #173 is still not clear to me. In any case, this is a fair workaround.

@amete amete merged commit c1c65de into master Oct 27, 2020
@amete amete deleted the io-fix branch October 27, 2020 16:55
@amete amete restored the io-fix branch January 27, 2022 15:51
@amete amete deleted the io-fix branch January 27, 2022 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Final values with 0 -> no IO values
2 participants