Repository navigation
Closed
Labels
kind/performanceseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Milestone
Description
Is there an existing issue for performance?
- I have checked the existing issues.
Environment
- Version or commit-id:
4.0-dev, observed on nightly imagecommit-e941462e2 - Namespace:
mo-branch-commit-e941462e2-20260526 - Cluster:
nightly-regression-dis - Workload:
sysbench_delete_pk_10_10000000,vuser=1000 - Window:
2026-05-26 21:43:02to21:48:02UTC - Memory config:
- CN cgroup memory limit:
55GiB - SHARED memory cache capacity:
12GiB - objectio meta cache capacity:
2GiB
- CN cgroup memory limit:
Details of Performance
sysbench_delete_pk_10_10000000 / vuser=1000 dropped from the previous baseline:
- 2026-05-24: TPS
9692 - 2026-05-25: TPS
6513 - 2026-05-26: TPS
6480
During the affected 2026-05-26 window, tp-cn-2zhp6 hit RSS cache pressure:
- RSS reached
48.13GiB, above the soft threshold55GiB * 85% = 46.75GiB. - SHARED memory cache was reduced from about
11.66GiBto9.60GiB. - objectio meta cache was reduced from about
1.63GiBto1.60GiB, saving only about29MiB. - The following 5 minute window had about
3.23Mmemory admission skips and about0.85Mmeta admission skips. dedup load did not completeexploded on one CN, with slow events aroundS3FS.Read, disk cache fill, andioMerger.Merge wait/end.
The evidence points to repeated objectio meta/dedup load penetration caused by RSS pressure admission, not the meta eviction cost itself.
Additional information
Optimization plan:
-
Keep objectio meta cache out of RSS forced eviction and RSS pressure admission.
- RSS pressure should use SHARED data memory cache as the main elastic memory source.
- Objectio meta cache should keep its normal capacity-based eviction.
- Implemented by fix: keep meta cache out of rss pressure eviction #24648.
-
Improve data cache admission under pressure.
- The previous
MemCache.Updatepath rejected writes before they reached the lower-level cache whenused + newEntry > target. - fix: keep meta cache out of rss pressure eviction #24648 moves pressure admission into
DataCache/FifoCache, keeps cold one-shot data rejected, and allows ghost-hit data to evict cold data and re-enter cache while keeping usage near the target. - fix: keep meta cache out of rss pressure eviction #24648 includes MemCache-level coverage for the real SHARED memory cache write path.
- The previous
-
Replace fixed pressure TTL with RSS hysteresis.
- Current pressure admission TTL is 2 minutes.
- Suggested thresholds: enter soft at 85%, exit soft at 80%, enter hard at 92%, exit hard at 87%.
- Not implemented by fix: keep meta cache out of rss pressure eviction #24648. This remains a follow-up because it changes RSS pressure state-machine semantics and OOM risk handling.
Validation:
mo_fs_cache_pressure_total{component="meta",event="evict"}stays at 0 for RSS pressure events.mo_fs_cache_pressure_total{component="meta",event="admission-skip"}stays at 0 for RSS pressure events.- SHARED data memory cache still evicts under RSS pressure.
- Cold one-shot data remains rejected under pressure to avoid scan pollution.
- Ghost-hit data can evict cold data and re-enter data cache under pressure through the MemCache update path.
dedup load did not completeno longer explodes during sysbench delete pk.- RSS remains controlled without OOM.
Step 1 and Step 2 PR: #24648
Metadata
Metadata
Assignees
Labels
kind/performanceseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Activity
LeftHandCold commentedon May 27, 2026
Step 1 PR: #24648 keeps objectio meta cache out of RSS forced eviction/admission pressure. Step 2 and Step 3 remain tracked here.
fix: keep meta cache out of rss pressure eviction (#24648)
fix: keep meta cache out of rss pressure eviction (matrixorigin#24648)
fix: keep meta cache out of rss pressure eviction (#24648) (#24662)
fix: keep meta cache out of rss pressure eviction (matrixorigin#24648) (
fix: keep meta cache out of rss pressure eviction (matrixorigin#24648) (
fix: keep meta cache out of rss pressure eviction (matrixorigin#24648) (