Skip to content

Commit fd5ab37

Browse files
authored
DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes (#5604) (#5873)
* DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes * ES suggestions * note placement
1 parent f751c7f commit fd5ab37

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
@@ -800,6 +800,14 @@ MongoDB performs best where swapping can be avoided or kept to a
800800
minimum. As such you should set ``vm.swappiness`` to either ``1`` or
801801
``0`` depending on your application needs and cluster configuration.
802802

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

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

0 commit comments

Comments
 (0)