Skip to content

Commit 905bdaf

Browse files
authored
DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes (#5604) (#5871)
* DOCSP-35017 Add vm.force_cgroup_v2_swappiness recommendation to Prod Notes * ES suggestions * note placement
1 parent 1469346 commit 905bdaf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/administration/production-notes.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,14 @@ MongoDB performs best where swapping can be avoided or kept to a
779779
minimum. As such you should set ``vm.swappiness`` to either ``1`` or
780780
``0`` depending on your application needs and cluster configuration.
781781

782+
.. note::
783+
784+
Most system and user processes run within a cgroup, which, by default, sets
785+
the ``vm.swappiness`` to ``60``. If you are running
786+
:abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, set
787+
``vm.force_cgroup_v2_swappiness`` to ``1`` to ensure that the specified
788+
``vm.swappiness`` value overrides any cgroup defaults.
789+
782790
.. [#swappiness-kernel-version]
783791

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

0 commit comments

Comments
 (0)