Skip to content

Commit 1265f8e

Browse files
committed
storage: set default value separation minimum size to 256 bytes
Lower the default minimum size that will trigger separation of value from 1 KiB to 256 bytes. Benchmarking kv0, kv50 and kv95 workloads showed consistent net benefit with values sized around ~256 bytes. Epic: none Release note: none
1 parent 95e1d21 commit 1265f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage/pebble.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ var (
430430
"storage.value_separation.minimum_size",
431431
"the minimum size of a value that will be separated into a blob file",
432432
int64(metamorphic.ConstantWithTestRange("storage.value_separation.minimum_size",
433-
1<<10 /* 1 KiB (default) */, 25 /* 25 bytes (minimum) */, 1<<20 /* 1 MiB (maximum) */)),
433+
256 /* 256 bytes (default) */, 25 /* 25 bytes (minimum) */, 1<<20 /* 1 MiB (maximum) */)),
434434
settings.IntWithMinimum(1),
435435
)
436436
valueSeparationMaxReferenceDepth = settings.RegisterIntSetting(

0 commit comments

Comments
 (0)