aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-08-09 11:30:12 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-08-09 11:30:12 -0400
commitec749b1bcdf2483b642fb51d635800e272c68ba6 (patch)
treef8cdc77167be86194f98d0412baf4b89d3d5abe6
parent835a21b42402d546bd72f8a3f452f0c743fefe82 (diff)
Squashed 'src/leveldb/' changes from 64052c76c5..524b7e36a8
524b7e36a8 Merge #19: Increase maximum read-only mmap()s used from 1000 to 4096 on 64-bit systems 4874cb8d3e Increase maximum number of read-only mmap()s used from 1000 to 4096 on 64 bit systems. git-subtree-dir: src/leveldb git-subtree-split: 524b7e36a8e3bce6fcbcd1b5df09024283f325ba
-rw-r--r--util/env_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/env_posix.cc b/util/env_posix.cc
index 4676bc2240..f77918313e 100644
--- a/util/env_posix.cc
+++ b/util/env_posix.cc
@@ -585,8 +585,8 @@ static int MaxMmaps() {
if (mmap_limit >= 0) {
return mmap_limit;
}
- // Up to 1000 mmaps for 64-bit binaries; none for smaller pointer sizes.
- mmap_limit = sizeof(void*) >= 8 ? 1000 : 0;
+ // Up to 4096 mmaps for 64-bit binaries; none for smaller pointer sizes.
+ mmap_limit = sizeof(void*) >= 8 ? 4096 : 0;
return mmap_limit;
}