From a818c6c9a9f754ac3cfdee619f1858c2b9d42f21 Mon Sep 17 00:00:00 2001 From: jason-price-mongodb Date: Mon, 11 Oct 2021 16:17:37 -0700 Subject: [PATCH] DOCS-14846 non system user ulimit --- source/reference/ulimit.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/reference/ulimit.txt b/source/reference/ulimit.txt index 591e2c3e872..68c20233b1b 100644 --- a/source/reference/ulimit.txt +++ b/source/reference/ulimit.txt @@ -150,6 +150,27 @@ change to system limits made using ``ulimit`` may revert following a system restart. Check your distribution and operating system documentation for more information. +You should typically start :binary:`~bin.mongod` using ``systemctl``, +which uses the ``ulimit`` settings: + +.. code-block:: bash + + systemctl start mongod.service + +If you *do not* start :binary:`~bin.mongod` using ``systemctl``, +``systemd`` overrides some of the ``ulimit`` settings. For example, if +you start :binary:`~bin.mongod` as shown in the following command, then +a user slice (such as ``user-1000.slice``) ``systemd`` setting is used: + +.. code-block:: bash + + mongod --config ~/mongod.conf + +.. note:: + + A ``systemd`` user slice limits the resources for the user's + processes. + macOS `````