Skip to content

Commit 97d8c26

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

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

792+
.. note::
793+
794+
Most system and user processes run within a cgroup, which, by default, sets
795+
the ``vm.swappiness`` to ``60``. If you are running
796+
:abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, set
797+
``vm.force_cgroup_v2_swappiness`` to ``1`` to ensure that the specified
798+
``vm.swappiness`` value overrides any cgroup defaults.
799+
792800
.. [#swappiness-kernel-version]
793801

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

0 commit comments

Comments
 (0)