diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-12-04 16:22:36 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-12-04 16:22:36 +1100 |
commit | 8d27ecbc5c4fd65d8b49810dd06d5bb424a63c3b (patch) | |
tree | c8ad8288a23d509034cb7a5741c7a8c6d8824f85 /src/include/cache.h | |
parent | dca1411e73e7c31f691e5fe59e6adae03b5f52fb (diff) | |
download | mongo-8d27ecbc5c4fd65d8b49810dd06d5bb424a63c3b.tar.gz |
WT-2260 Avoid adding internal pages to the eviction queue.
We added code to make eviction fairer when there are lots of files
open, but it had the effect that when there are only a few files
open eviction could add lots of internal pages to the eviction
queue, since it focused on a small area of the tree.
Diffstat (limited to 'src/include/cache.h')
-rw-r--r-- | src/include/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/cache.h b/src/include/cache.h index d8a3829863f..a0440f23a00 100644 --- a/src/include/cache.h +++ b/src/include/cache.h @@ -14,7 +14,6 @@ pages by this many increments of the read generation. */ #define WT_EVICT_WALK_PER_FILE 10 /* Pages to queue per file */ -#define WT_EVICT_MAX_PER_FILE 100 /* Max pages to visit per file */ #define WT_EVICT_WALK_BASE 300 /* Pages tracked across file visits */ #define WT_EVICT_WALK_INCR 100 /* Pages added each walk */ @@ -107,6 +106,7 @@ struct __wt_cache { uint32_t evict_slots; /* LRU list eviction slots */ WT_DATA_HANDLE *evict_file_next; /* LRU next file to search */ + uint32_t evict_max_refs_per_file;/* LRU pages per file per pass */ /* * Cache pool information. |