summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorMathew Robinson <mathew.robinson@10gen.com>2017-09-12 13:14:39 -0400
committerMathew Robinson <mathew.robinson@10gen.com>2017-09-13 14:01:49 -0400
commit6c8dc5e004bf2c91df10975adef861bcf00af6cd (patch)
treee34fcd3e0e15477664e4049d678f7f854f116beb /rpm
parentdc22fc57bff9e804ef42fbbf19e8f685a2cb434e (diff)
downloadmongo-6c8dc5e004bf2c91df10975adef861bcf00af6cd.tar.gz
SERVER-30853 Update Mongod init scripts to set unlimited locked memory
Diffstat (limited to 'rpm')
-rwxr-xr-xrpm/init.d-mongod1
-rw-r--r--rpm/init.d-mongod.suse1
-rw-r--r--rpm/mongod.service2
3 files changed, 4 insertions, 0 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 56539ef4d42..4e172b9f15c 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -64,6 +64,7 @@ start()
ulimit -n 64000
ulimit -m unlimited
ulimit -u 64000
+ ulimit -l unlimited
echo -n $"Starting mongod: "
daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS >/dev/null 2>&1"
diff --git a/rpm/init.d-mongod.suse b/rpm/init.d-mongod.suse
index fae1fb8b3f3..2216507a009 100644
--- a/rpm/init.d-mongod.suse
+++ b/rpm/init.d-mongod.suse
@@ -65,6 +65,7 @@ start()
ulimit -n 64000
ulimit -m unlimited
ulimit -u 64000
+ ulimit -l unlimited
echo -n "Starting mongod: "
$NUMACTL /sbin/start_daemon -u "$MONGO_USER" -p "$PIDFILEPATH" $mongod $OPTIONS >/dev/null 2>&1
diff --git a/rpm/mongod.service b/rpm/mongod.service
index 708bf663614..f9244debbd5 100644
--- a/rpm/mongod.service
+++ b/rpm/mongod.service
@@ -23,6 +23,8 @@ LimitAS=infinity
LimitNOFILE=64000
# processes/threads
LimitNPROC=64000
+# locked memory
+LimitMEMLOCK=infinity
# total threads (user+kernel)
TasksMax=infinity
TasksAccounting=false