Skip to content

Commit f510b4a

Browse files
authored
DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes (#5604) (#5872)
* DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes * ES suggestions * note placement
1 parent 5e973ff commit f510b4a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/administration/production-notes.txt

+8
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,14 @@ MongoDB performs best where swapping can be avoided or kept to a
798798
minimum. As such you should set ``vm.swappiness`` to either ``1`` or
799799
``0`` depending on your application needs and cluster configuration.
800800

801+
.. note::
802+
803+
Most system and user processes run within a cgroup, which, by default, sets
804+
the ``vm.swappiness`` to ``60``. If you are running
805+
:abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, set
806+
``vm.force_cgroup_v2_swappiness`` to ``1`` to ensure that the specified
807+
``vm.swappiness`` value overrides any cgroup defaults.
808+
801809
.. [#swappiness-kernel-version]
802810

803811
With Linux kernel versions previous to ``3.5``, or

0 commit comments

Comments
 (0)