diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-11-26 15:26:45 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-11-26 15:26:45 +1100 |
commit | 3b70b692f08d1bba1317d08f7f43f9b7a91ab9e2 (patch) | |
tree | 5861ca8cacd63f4a5f9fd2a179d1ae0346021b29 /src/btree/bt_handle.c | |
parent | 890ee3447449fc72d5247035334f28c9f50bb100 (diff) | |
download | mongo-3b70b692f08d1bba1317d08f7f43f9b7a91ab9e2.tar.gz |
WT-2244 - Trigger in-memory splits sooner.
Specifically, do an in-memory split when we hit 80% of memory_page_max.
Diffstat (limited to 'src/btree/bt_handle.c')
-rw-r--r-- | src/btree/bt_handle.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c index dbdf94fc1b6..294cc399d65 100644 --- a/src/btree/bt_handle.c +++ b/src/btree/bt_handle.c @@ -697,6 +697,13 @@ __btree_page_sizes(WT_SESSION_IMPL *session) } /* + * Try in-memory splits once we hit 80% of the maximum in-memory page + * size. This gives multi-threaded append workloads a better chance of + * not stalling. + */ + btree->splitmempage = 8 * btree->maxmempage / 10; + + /* * Get the split percentage (reconciliation splits pages into smaller * than the maximum page size chunks so we don't split every time a * new entry is added). Determine how large newly split pages will be. |