Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
42bac42 to
9d65499
Compare
There was a problem hiding this comment.
Pull request overview
Removes objectio meta cache from RSS pressure-driven forced eviction and admission-skip paths in both the CN service and the disttae workspace engine, addressing observed dedup load penetration during sysbench regression. RSS pressure now elastically targets only the fileservice memory (data) cache, while meta cache retains its normal capacity-based eviction.
Changes:
- In
makeRSSCacheEvictor(CN) andmakeWorkspaceRSSCacheEvictor(disttae), stop callingobjectio.SetMetaCachePressureTargetPercent/objectio.EvictCacheToCapacityPercent; drop the goroutine fan-out/sync.WaitGroupand theobjectioimport; only the memory cache is evicted. - Rename and trim the related CN test to
TestMakeRSSCacheEvictorEvictsMemoryCacheOnly, removing the meta evictor stub. - Add
docs/rfcs/rss-cache-pressure-optimization.mddocumenting the regression and the 3-step optimization plan.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/cnservice/server.go | Strip meta cache pressure target + eviction from RSS evictor; remove objectio import and evictMetaCacheToCapacityPercent var. |
| pkg/cnservice/server_test.go | Rename test; remove meta evictor stubbing and the meta-started assertion. |
| pkg/vm/engine/disttae/engine.go | Same trimming in the workspace RSS evictor; remove objectio import. |
| docs/rfcs/rss-cache-pressure-optimization.md | New RFC describing the regression context and 3-step plan. |
68c1e59 to
3594605
Compare
3594605 to
19b5de0
Compare
Co-authored-by: Copilot <[email protected]>
|
|
What type of PR is this?
Which issue(s) this PR fixes:
Refs #24644
What this PR does / why we need it:
This PR implements Step 1 and Step 2 of the RSS cache pressure optimization plan:
The meta cache still keeps its normal configured capacity and normal eviction. This change only removes meta cache from the RSS pressure eviction/admission path.
For data cache pressure, the old behavior rejected a write in
MemCache.Updatewhenused + newEntry > target. That controlled memory, but it also prevented the lower-level cache from recognizing ghost hits. The new behavior letsDataCache/FifoCachedecide admission: cold entries are still rejected under pressure, while ghost-hit entries can evict cold data first and then be admitted while keeping usage near the target.This PR intentionally does not include Step 3. RSS pressure state-machine changes, TTL removal, and RSS hysteresis should be handled in a separate PR because they affect pressure enter/exit semantics, eviction cadence, admission target lifetime, and OOM risk handling.
In the 2026-05-26 nightly regression run,
sysbench_delete_pk_10_10000000 / vuser=1000dropped from the previous baseline. During the affected window, RSS pressure reduced:11.66GiBto9.60GiB1.63GiBto1.60GiBThe meta eviction saved only about
29MiB, but pressure admission later caused about0.85Mmeta admission skips and a large number of repeated objectio/dedup load failures. For this workload, meta cache is small but high value, while SHARED data cache is the meaningful RSS elasticity source.Testing:
GOCACHE=/private/tmp/mo-gocache-rss-meta go test ./pkg/fileservice/fifocache -run 'TestCachePressureAdmission|TestEvictToTargetWithWait' -count=1GOCACHE=/private/tmp/mo-gocache-rss-meta go test ./pkg/fileservice -run 'TestMemoryCachePressureAdmission|TestMemoryCacheEvictToCapacityPercent' -count=1GOCACHE=/private/tmp/mo-gocache-rss-meta go test ./pkg/cnservice -run TestMakeRSSCacheEvictorEvictsMemoryCacheOnly -count=1GOCACHE=/private/tmp/mo-gocache-rss-meta go test ./pkg/vm/engine/disttae -run '^$' -count=0git diff --check