leil-io / saunafs

SaunaFS is a free-and open source, distributed POSIX file system inspired by Google File System.
https://saunafs.com
GNU General Public License v3.0
62 stars 5 forks source link

fix(mount): Fix read cache max size as percentage #202

Closed rolysr closed 1 month ago

rolysr commented 2 months ago

Summary

This PR introduces several enhancements and fixes to the read cache mechanism, particularly focusing on handling corrupted files and optimizing read cache memory usage. The changes aim to improve the reliability and efficiency of read operations under various conditions, including low read cache memory scenarios and when encountering corrupted file segments.

Changes

Impact

These changes significantly improve the system's ability to handle read operations under adverse conditions, such as when dealing with corrupted files or when operating with limited read cache memory. By ensuring that the read cache can efficiently manage and recover from failures, these updates enhance the overall stability and performance of the system.

Testing

Comprehensive tests have been added to cover the new functionality and fixes, ensuring that the system behaves as expected in scenarios involving corrupted files and low read cache memory. These tests validate the robustness of the read cache mechanism and its ability to adapt to different system conditions.

Documentation

Updates to the documentation and help text have been made to reflect the changes in read cache configuration options, providing clearer guidance for users on how to optimize read cache settings for their specific system configurations.