Commit d74aad9
feat(hotblocks): expose the LSM base level size
Raising write_buffer_size 8x without touching this left L0 arriving larger
than the level it merges into: four 512 MB memtables flush ~512 MB of
compressed L0 into a 256 MB L1, so every L0 compaction rewrites all of L1 and
immediately pushes it down. The canonical pairing is base >=
level0_file_num_compaction_trigger x the compressed flush size.
It is also the lever the memtable change could not reach. A byte is rewritten
once per level, and memtable size only addresses the L0->L1 hop; at ~60 GB
live the ladder runs several levels deeper and that work is untouched. The
production numbers show it: the bench predicted 2.4x fewer device writes at
~130 MB live, internal delivered 1.67x at ~60 GB.
Default stays RocksDB's 256 MB, so this is inert until a deployment sets it.
Deliberately unmeasured: the bench cannot price it at 130 MB live, where there
is barely a ladder to shorten.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Codex <[email protected]>1 parent fb6cbbd commit d74aad9
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| |||
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| 177 | + | |
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
| |||
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| |||
0 commit comments