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
Improve the "minimize writes" feature #1080
Comments
|
Implementation otoh should be pretty straight forward. A simple if at https://github.com/rpm-software-management/rpm/blob/master/lib/rpmfi.c#L995 that does |
While this is easy to implement this is probably not the right trade off. The regular minimize writes feature already saves a lot. We'd rather not allow rpm to take chances when it comes to correctness of the operation for a relatively little speed up. |
There's a currently inactive feature[1] to minimize writes on SSDs.
I recently realized that it could be extended to even skip computing the checksums.
That would improve speed not only on SSDs, but also rotating SMR[2] drives where the performance temporarily degrades with random writes.
What the change would be all about:
_minimize_writes 0
_minimize_writes 1
_minimize_writes 2
[1] Commit: 29c48e1
[2] https://en.wikipedia.org/wiki/Shingled_magnetic_recording
The text was updated successfully, but these errors were encountered: