Update application_cache_time more often

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cache and Eviction
    • Storage Engines, Storage Engines - Transactions
    • StorEng - Defined Pipeline
    • None

      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:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: