Skip to content

Commit 779d5fd

Browse files
authored
DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes (#5604) (#5869)
* DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes * ES suggestions * note placement
1 parent 7d7f536 commit 779d5fd

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

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

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

0 commit comments

Comments
 (0)