summaryrefslogtreecommitdiff
path: root/src/conn/conn_cache.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-06-28 14:54:42 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-06-28 14:54:42 +1000
commit65e0e4d1556d0261dbc6e2047d800b3becc10484 (patch)
tree38eb489c43f95d4c1974212d024f4683465c184d /src/conn/conn_cache.c
parent8425aad2e361a79b9be2344e05a05aa018f1a142 (diff)
downloadmongo-65e0e4d1556d0261dbc6e2047d800b3becc10484.tar.gz
WT-2729 Focus eviction on the largest trees in cache. (#2832)
Randomize visits to trees that use a tiny fraction of the cache. Other general eviction optimizations. Now that we are queuing more entries (potentially), make sure enough of them become candidates. Previously, a skewed distribution of read generations could mean that only 10% of queue entries were considered. Improve the efficiency of sorting the queue by calculating the score once when pages are added to the queue. Add a workload to exercise differential eviction from trees. In order to do that, add range partitioning to wtperf. Don't override icount in wtperf workloads with random_range set.
Diffstat (limited to 'src/conn/conn_cache.c')
-rw-r--r--src/conn/conn_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_cache.c b/src/conn/conn_cache.c
index 9f15db5382b..aaed18f0323 100644
--- a/src/conn/conn_cache.c
+++ b/src/conn/conn_cache.c
@@ -235,7 +235,7 @@ __wt_cache_stats_update(WT_SESSION_IMPL *session)
*/
if (conn->evict_session != NULL)
WT_STAT_SET(session, stats, cache_eviction_walks_active,
- conn->evict_session->nhazard);
+ cache->walk_session->nhazard);
}
/*