summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/support/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/support/stat.c')
-rw-r--r--src/third_party/wiredtiger/src/support/stat.c70
1 files changed, 47 insertions, 23 deletions
diff --git a/src/third_party/wiredtiger/src/support/stat.c b/src/third_party/wiredtiger/src/support/stat.c
index e76930c3b38..95e04dd7d7c 100644
--- a/src/third_party/wiredtiger/src/support/stat.c
+++ b/src/third_party/wiredtiger/src/support/stat.c
@@ -827,6 +827,9 @@ static const char * const __stats_connection_desc[] = {
"cache: eviction server evicting pages",
"cache: eviction server slept, because we did not make progress with eviction",
"cache: eviction server unable to reach eviction goal",
+ "cache: eviction server waiting for a leaf page",
+ "cache: eviction server waiting for an internal page sleep (usec)",
+ "cache: eviction server waiting for an internal page yields",
"cache: eviction state",
"cache: eviction walk target pages histogram - 0-9",
"cache: eviction walk target pages histogram - 10-31",
@@ -845,11 +848,17 @@ static const char * const __stats_connection_desc[] = {
"cache: eviction worker thread evicting pages",
"cache: eviction worker thread removed",
"cache: eviction worker thread stable number",
- "cache: failed eviction of pages that exceeded the in-memory maximum count",
- "cache: failed eviction of pages that exceeded the in-memory maximum time (usecs)",
"cache: files with active eviction walks",
"cache: files with new eviction walks started",
"cache: force re-tuning of eviction workers once in a while",
+ "cache: forced eviction - pages evicted that were clean count",
+ "cache: forced eviction - pages evicted that were clean time (usecs)",
+ "cache: forced eviction - pages evicted that were dirty count",
+ "cache: forced eviction - pages evicted that were dirty time (usecs)",
+ "cache: forced eviction - pages selected because of too many deleted items count",
+ "cache: forced eviction - pages selected count",
+ "cache: forced eviction - pages selected unable to be evicted count",
+ "cache: forced eviction - pages selected unable to be evicted time",
"cache: hazard pointer blocked page eviction",
"cache: hazard pointer check calls",
"cache: hazard pointer check entries walked",
@@ -868,12 +877,9 @@ static const char * const __stats_connection_desc[] = {
"cache: page split during eviction deepened the tree",
"cache: page written requiring cache overflow records",
"cache: pages currently held in the cache",
- "cache: pages evicted because they exceeded the in-memory maximum count",
- "cache: pages evicted because they exceeded the in-memory maximum time (usecs)",
- "cache: pages evicted because they had chains of deleted items count",
- "cache: pages evicted because they had chains of deleted items time (usecs)",
"cache: pages evicted by application threads",
"cache: pages queued for eviction",
+ "cache: pages queued for eviction post lru sorting",
"cache: pages queued for urgent eviction",
"cache: pages queued for urgent eviction during walk",
"cache: pages read into cache",
@@ -1264,6 +1270,9 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats)
stats->cache_eviction_server_evicting = 0;
stats->cache_eviction_server_slept = 0;
stats->cache_eviction_slow = 0;
+ stats->cache_eviction_walk_leaf_notfound = 0;
+ stats->cache_eviction_walk_internal_wait = 0;
+ stats->cache_eviction_walk_internal_yield = 0;
/* not clearing cache_eviction_state */
stats->cache_eviction_target_page_lt10 = 0;
stats->cache_eviction_target_page_lt32 = 0;
@@ -1282,11 +1291,17 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats)
stats->cache_eviction_worker_evicting = 0;
stats->cache_eviction_worker_removed = 0;
/* not clearing cache_eviction_stable_state_workers */
- stats->cache_eviction_force_fail = 0;
- stats->cache_eviction_force_fail_time = 0;
/* not clearing cache_eviction_walks_active */
stats->cache_eviction_walks_started = 0;
stats->cache_eviction_force_retune = 0;
+ stats->cache_eviction_force_clean = 0;
+ stats->cache_eviction_force_clean_time = 0;
+ stats->cache_eviction_force_dirty = 0;
+ stats->cache_eviction_force_dirty_time = 0;
+ stats->cache_eviction_force_delete = 0;
+ stats->cache_eviction_force = 0;
+ stats->cache_eviction_force_fail = 0;
+ stats->cache_eviction_force_fail_time = 0;
stats->cache_eviction_hazard = 0;
stats->cache_hazard_checks = 0;
stats->cache_hazard_walks = 0;
@@ -1305,12 +1320,9 @@ __wt_stat_connection_clear_single(WT_CONNECTION_STATS *stats)
stats->cache_eviction_deepen = 0;
stats->cache_write_lookaside = 0;
/* not clearing cache_pages_inuse */
- stats->cache_eviction_force = 0;
- stats->cache_eviction_force_time = 0;
- stats->cache_eviction_force_delete = 0;
- stats->cache_eviction_force_delete_time = 0;
stats->cache_eviction_app = 0;
stats->cache_eviction_pages_queued = 0;
+ stats->cache_eviction_pages_queued_post_lru = 0;
stats->cache_eviction_pages_queued_urgent = 0;
stats->cache_eviction_pages_queued_oldest = 0;
stats->cache_read = 0;
@@ -1704,6 +1716,12 @@ __wt_stat_connection_aggregate(
to->cache_eviction_server_slept +=
WT_STAT_READ(from, cache_eviction_server_slept);
to->cache_eviction_slow += WT_STAT_READ(from, cache_eviction_slow);
+ to->cache_eviction_walk_leaf_notfound +=
+ WT_STAT_READ(from, cache_eviction_walk_leaf_notfound);
+ to->cache_eviction_walk_internal_wait +=
+ WT_STAT_READ(from, cache_eviction_walk_internal_wait);
+ to->cache_eviction_walk_internal_yield +=
+ WT_STAT_READ(from, cache_eviction_walk_internal_yield);
to->cache_eviction_state += WT_STAT_READ(from, cache_eviction_state);
to->cache_eviction_target_page_lt10 +=
WT_STAT_READ(from, cache_eviction_target_page_lt10);
@@ -1739,16 +1757,27 @@ __wt_stat_connection_aggregate(
WT_STAT_READ(from, cache_eviction_worker_removed);
to->cache_eviction_stable_state_workers +=
WT_STAT_READ(from, cache_eviction_stable_state_workers);
- to->cache_eviction_force_fail +=
- WT_STAT_READ(from, cache_eviction_force_fail);
- to->cache_eviction_force_fail_time +=
- WT_STAT_READ(from, cache_eviction_force_fail_time);
to->cache_eviction_walks_active +=
WT_STAT_READ(from, cache_eviction_walks_active);
to->cache_eviction_walks_started +=
WT_STAT_READ(from, cache_eviction_walks_started);
to->cache_eviction_force_retune +=
WT_STAT_READ(from, cache_eviction_force_retune);
+ to->cache_eviction_force_clean +=
+ WT_STAT_READ(from, cache_eviction_force_clean);
+ to->cache_eviction_force_clean_time +=
+ WT_STAT_READ(from, cache_eviction_force_clean_time);
+ to->cache_eviction_force_dirty +=
+ WT_STAT_READ(from, cache_eviction_force_dirty);
+ to->cache_eviction_force_dirty_time +=
+ WT_STAT_READ(from, cache_eviction_force_dirty_time);
+ to->cache_eviction_force_delete +=
+ WT_STAT_READ(from, cache_eviction_force_delete);
+ to->cache_eviction_force += WT_STAT_READ(from, cache_eviction_force);
+ to->cache_eviction_force_fail +=
+ WT_STAT_READ(from, cache_eviction_force_fail);
+ to->cache_eviction_force_fail_time +=
+ WT_STAT_READ(from, cache_eviction_force_fail_time);
to->cache_eviction_hazard +=
WT_STAT_READ(from, cache_eviction_hazard);
to->cache_hazard_checks += WT_STAT_READ(from, cache_hazard_checks);
@@ -1777,16 +1806,11 @@ __wt_stat_connection_aggregate(
to->cache_write_lookaside +=
WT_STAT_READ(from, cache_write_lookaside);
to->cache_pages_inuse += WT_STAT_READ(from, cache_pages_inuse);
- to->cache_eviction_force += WT_STAT_READ(from, cache_eviction_force);
- to->cache_eviction_force_time +=
- WT_STAT_READ(from, cache_eviction_force_time);
- to->cache_eviction_force_delete +=
- WT_STAT_READ(from, cache_eviction_force_delete);
- to->cache_eviction_force_delete_time +=
- WT_STAT_READ(from, cache_eviction_force_delete_time);
to->cache_eviction_app += WT_STAT_READ(from, cache_eviction_app);
to->cache_eviction_pages_queued +=
WT_STAT_READ(from, cache_eviction_pages_queued);
+ to->cache_eviction_pages_queued_post_lru +=
+ WT_STAT_READ(from, cache_eviction_pages_queued_post_lru);
to->cache_eviction_pages_queued_urgent +=
WT_STAT_READ(from, cache_eviction_pages_queued_urgent);
to->cache_eviction_pages_queued_oldest +=