diff options
author | Levi Tamasi <ltamasi@fb.com> | 2021-11-19 17:52:42 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2021-11-19 17:53:47 -0800 |
commit | dc5de45af8fc1bcc90edea5cd9a5695bd85a8baf (patch) | |
tree | 6f49ac343b9c3b678ebf57e81ecf43e9ef208ed9 /tools/db_bench_tool_test.cc | |
parent | cd4ea675e3d58a2e271c944956d11c8c55bf12df (diff) |
Support readahead during compaction for blob files (#9187)
Summary:
The patch adds a new BlobDB configuration option `blob_compaction_readahead_size`
that can be used to enable prefetching data from blob files during compaction.
This is important when using storage with higher latencies like HDDs or remote filesystems.
If enabled, prefetching is used for all cases when blobs are read during compaction,
namely garbage collection, compaction filters (when the existing value has to be read from
a blob file), and `Merge` (when the value of the base `Put` is stored in a blob file).
Pull Request resolved: https://github.com/facebook/rocksdb/pull/9187
Test Plan: Ran `make check` and the stress/crash test.
Reviewed By: riversand963
Differential Revision: D32565512
Pulled By: ltamasi
fbshipit-source-id: 87be9cebc3aa01cc227bec6b5f64d827b8164f5d
Diffstat (limited to 'tools/db_bench_tool_test.cc')
-rw-r--r-- | tools/db_bench_tool_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/db_bench_tool_test.cc b/tools/db_bench_tool_test.cc index bad4ae5c0..4b4284934 100644 --- a/tools/db_bench_tool_test.cc +++ b/tools/db_bench_tool_test.cc @@ -278,6 +278,7 @@ const std::string options_file_content = R"OPTIONS_FILE( enable_blob_garbage_collection=true blob_garbage_collection_age_cutoff=0.5 blob_garbage_collection_force_threshold=0.75 + blob_compaction_readahead_size=262144 [TableOptions/BlockBasedTable "default"] format_version=0 |