diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-08-26 12:50:11 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-08-26 12:50:11 +1000 |
commit | a48b73bdd3da302262582a04830e981ca60ad1cb (patch) | |
tree | 09035bcdfaf9edeba769ffe6b4fc9270daa2bbca /bench | |
parent | 0cdefa89f437bab5aaf554a2fa211028b674bbd0 (diff) | |
download | mongo-a48b73bdd3da302262582a04830e981ca60ad1cb.tar.gz |
WT-2816 General improvements to WiredTiger eviction performance (#2949)
A set of changes to the eviction algorithm including:
* Fix a bug in how many items can be added to the urgent queue
* Have the eviction server sleep less so it recovers from disruptions faster.
* Only have application threads evict dirty pages if they are blocked on the dirty trigger.
* Swap eviction queues when one becomes empty.
* Have the eviction server populate the "other" queue whenever it notices that it isn't full.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/wtperf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index d969d625b76..d3d54fff6e3 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -1540,8 +1540,7 @@ execute_populate(CONFIG *cfg) print_ops_sec = 0; } else { print_secs = (double)msecs / (double)MSEC_PER_SEC; - print_ops_sec = - (uint64_t)((cfg->icount / msecs) / MSEC_PER_SEC); + print_ops_sec = (uint64_t)(cfg->icount / print_secs); } lprintf(cfg, 0, 1, "Load time: %.2f\n" "load ops/sec: %" PRIu64, |