storage: configure allocator size class hints #123090
Labels
A-storage
Relating to our storage engine (Pebble) on-disk storage.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-storage
Storage Team
cockroachdb/pebble#3508 added support for a new set of sstable flushing heuristics that can help reduce block cache internal fragmentation and the overall CockroachDB memory footprint. To reap the benefits we need to configure the default Pebble options at the Cockroach layer to specify the size classes supported by jemalloc once the Pebble version has been bumped (https://jemalloc.net/jemalloc.3.html#size_classes). This could look like,
There are many more size classes that could be included, however, sstable blocks have a target block size of 32KiB, a minimum size threshold of ~19.6KiB and are unlikely to exceed 128KiB.
Jira issue: CRDB-38198
The text was updated successfully, but these errors were encountered: