Files
greptimedb/src/partition
Weny Xu 180dfc68f7 perf(mito): reduce SST metadata memory overhead (#10356)
* perf(mito): reduce SST metadata memory overhead

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat(cache): add a sharded weak interner

Share equal live allocations without exposing lock guards or retaining payloads. Sweep candidate buckets incrementally and cover concurrent publication and weak-reference churn.

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(mito): share SST metadata through the sharded interner

Require shared metadata wiring for manifests, canonicalize checkpoint entries without cloning their payloads, and centralize runtime registration. Keep live content variants distinct and verify runtime and recovered allocation identity.

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix: compile SST metadata consumers across feature sets

Wrap fixture manifest metadata in Arc explicitly and gate the test-only HashMap import with its consuming feature. Validate default mito tests and all cmd targets and features with Clippy warnings denied.

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(mito): reclaim retired metadata while idle

Run bounded interner maintenance on the shared blocking runtime without retaining its owner between passes. Shrink sparse indexes and release empty backing storage, preserving live readers and reclaiming their metadata after delayed release.

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(mito): use intern-arc for shared SST metadata

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat(mito): expose interner counts and decouple manifest setup

Signed-off-by: WenyXu <wenymedia@gmail.com>

* feat(partition): support hashing partition expressions

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(mito): hash intern SST metadata without ordering values

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
2026-11-13 06:57:23 +00:00
..