Set lower-bound on dynamic level sizes #2123
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changed dynamic leveling to stop setting the base level's size bound below
max_bytes_for_level_base
.Behavior for config where
max_bytes_for_level_base == level0_file_num_compaction_trigger * write_buffer_size
and same amount of data in L0 and base-level:max_bytes_for_level_base
.write_buffer_size
can be bigger than the dynamically chosen base-level size. This increased write-amp.level0_file_num_compaction_trigger
files of sizewrite_buffer_size
to trigger L0 compaction by size, fixing the write-amp problem above.Test Plan:
command:
./db_bench -benchmarks=fillrandom -options_file=/home/andrewkr/myrocks-options-modified -statistics -stats_per_interval=1 -stats_interval=10000000 -num=500000000