-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Cache and eviction
-
Labels:
-
StorEng - Defined Pipeline
Currently, the application_cache_time stat is updated at the end of __wt_cache_eviction_worker:
err:
if (time_start != 0) {
time_stop = __wt_clock(session);
elapsed = WT_CLOCKDIFF_US(time_stop, time_start);
WT_STAT_CONN_INCRV(session, application_cache_time, elapsed);
WT_STAT_SESSION_INCRV(session, cache_time, elapsed);
session->cache_wait_us += elapsed;
This means we are only updating the stat once the application threads have exited the loop. It would be better to update that stat more often so we have more feedback over time.