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

atop writes to corrupted file after system hang #34

Open
arjenlentz opened this issue Aug 21, 2018 · 1 comment
Open

atop writes to corrupted file after system hang #34

arjenlentz opened this issue Aug 21, 2018 · 1 comment

Comments

@arjenlentz
Copy link

After a system hang/crash/whatever, atop just continues writing to file for the current day.
But atop -r bombs out at the point-in-time where the crash happens when browsing with t/T or jumping with b.

So, either atop needs to scan current file on startup and if needed fix it up so that appending more to it is actually readable later, or for instance use magic record headers so that a corrupted file doesn't hinder reading.

@er013
Copy link

er013 commented Mar 11, 2024

Or as a last resort, rename old file and continue with new-current file.
(Just ran into that issue after my swap exhaustion, sent basically same suggestions to author from atoptool.nl contact page)

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

No branches or pull requests

2 participants