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

Use one tree walk instead of two for stats

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cache and Eviction
    • None
    • Storage Engines

      Investigate the possibility to do everything in one tree walk instead of two to save CPU: https://github.com/wiredtiger/wiredtiger/blob/be613c0bf5c4466152fb9bc46c47f4c1c621a425/src/btree/bt_stat.c#L57-L61

      btstats.c:

          if (F_ISSET(cst, WT_STAT_TYPE_CACHE_WALK))
              __wt_evict_cache_stat_walk(session);
      
          if (F_ISSET(cst, WT_STAT_TYPE_TREE_WALK))
              WT_RET(__stat_tree_walk(session));
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            y.ershov@mongodb.com Yury Ershov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: