summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2015-03-24 16:53:28 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2015-03-24 16:53:28 +1100
commit065a435f6b1d1b3fcb640d59c3109d0c2e24d308 (patch)
tree42afc56044124d804a9d482297ff9e240c542164 /dist
parent62ece8e80b452b2b19db718505b22488d9b7639b (diff)
downloadmongo-065a435f6b1d1b3fcb640d59c3109d0c2e24d308.tar.gz
Add statistics to track internal/overflow/leaf pages in cache.
It is often useful to know if a cache is full of internal pages. I could have added page count tracking, but byte count tracking seems more useful (enough to justify the extra performance overhead).
Diffstat (limited to 'dist')
-rw-r--r--dist/stat_data.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/stat_data.py b/dist/stat_data.py
index 8768a24700b..f133ab899ea 100644
--- a/dist/stat_data.py
+++ b/dist/stat_data.py
@@ -148,8 +148,17 @@ connection_stats = [
'tracked dirty bytes in the cache', 'no_clear,no_scale'),
CacheStat('cache_bytes_inuse',
'bytes currently in the cache', 'no_clear,no_scale'),
+ CacheStat('cache_bytes_internal',
+ 'tracked bytes belonging to internal pages in the cache',
+ 'no_clear,no_scale'),
+ CacheStat('cache_bytes_leaf',
+ 'tracked bytes belonging to leaf pages in the cache',
+ 'no_clear,no_scale'),
CacheStat('cache_bytes_max',
'maximum bytes configured', 'no_clear,no_scale'),
+ CacheStat('cache_bytes_overflow',
+ 'tracked bytes belonging to overflow pages in the cache',
+ 'no_clear,no_scale'),
CacheStat('cache_bytes_read', 'bytes read into cache'),
CacheStat('cache_bytes_write', 'bytes written from cache'),
CacheStat('cache_eviction_app', 'pages evicted by application threads'),