-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: account for garbage in backing files when picking a compaction
When we consider a virtual sst as a candidate for the seed file for a compaction, the size of that sst is adjusted by a fraction of the garbage in the backing sst, where the fraction is the reciprocal of the number of virtual ssts that are referencing this backing sst. The objective is to reduce space amp, by being aware of garbage accumulation, when picking compactions. Fixes #2323
- Loading branch information
1 parent
6566b6b
commit 1ff6ed8
Showing
4 changed files
with
180 additions
and
16 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