Skip to content

Commit 1bcae53

Browse files
committed
lsm: double sst block size to 8K
This seems to give a cool almost 2x performance gain in the "fillrandom" db bench. I tried 16K and got another nice 25% gain from the 8K number, but decided to just keep it at 8K for now.
1 parent 7e91d8b commit 1bcae53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/v/lsm/core/internal/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct options {
165165
size_t block_cache_size = default_block_cache_size;
166166

167167
// The size of a single block within an SST file.
168-
constexpr static size_t default_sst_block_size = 4_KiB;
168+
constexpr static size_t default_sst_block_size = 8_KiB;
169169
size_t sst_block_size = default_sst_block_size;
170170

171171
// The frequency at which to generate a new bloom filter.

src/v/lsm/lsm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct options {
108108
size_t block_cache_size = default_block_cache_size;
109109

110110
// The size of a single block within an SST file.
111-
constexpr static size_t default_sst_block_size = 4_KiB;
111+
constexpr static size_t default_sst_block_size = 8_KiB;
112112
size_t sst_block_size = default_sst_block_size;
113113

114114
// The frequency at which to generate a new bloom filter.

0 commit comments

Comments
 (0)