-
Type: Improvement
-
Resolution: Unresolved
-
Priority: 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));