You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Add a percentile stat tracking Time-To-Access (TTA) — how long ago items
were last accessed before being looked up from NVM. This helps understand
working set recency: for each NVM cache hit, how stale the item was when
it was re-accessed.
The `lastAccessTimeSecs` is already stored in Navy's `BlockCache::EntryDesc`
on disk (set during DRAM→NVM eviction) and plumbed through the Navy lookup
path all the way to `NvmCache::onGetComplete()`. No new plumbing is needed.
Changes:
- Declare `nvmHitTTASecs_` PercentileStats field in `detail::Stats`
(CacheStatsInternal.h).
- Declare `nvmHitTTASecs` Estimates field in `GlobalCacheStats` (CacheStats.h).
- Populate the estimate in `Stats::populateGlobalCacheStats()` and update the
`EXPECTED_SIZE` compile-time check (CacheStats.cpp).
- Track TTA in `NvmCache::onGetComplete()` after all early-return checks
confirm a genuine NVM hit. Guarded by `lastAccessTimeSecs > 0` since
BigHash items don't store access time (NvmCache.h).
- Export via `visitEstimates()` as `nvm.hit_tta_secs` with standard
percentile suffixes (_p50, _p99, _avg, etc.) (Cache.cpp).
Reviewed By: AlnisM
Differential Revision: D94783700
fbshipit-source-id: 4000027e7c2bd2bfd9eeb448901ddce94a2ffef7
0 commit comments