Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12155

Update application_cache_time more often

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: