-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slow partial block writes caused by addition of the zero_cache (#185
). Before the zero_cache was added, the block_cache efficiently absorbed partial block writes. When the zero_cache was added, it was given the standard dumb read/patch/write algorithm for partial block writes. This resulted in heavy write amplification when large s3backer block sizes were being used. Restore the partial read/write hooks but make them optional. Reimplement them in the zero_cache and block_cache layers only (reverting part of d1bce95), and fix the zero_cache implementation so it forwards partial read and write requests to the block_cache (after first checking them) instead of trying to handle them itself, less efficiently.
- Loading branch information
1 parent
3e83d48
commit d949846
Showing
4 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters