Skip to content

DOCS-6130: THP ktune clarification #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/includes/steps-disable-thp-in-initd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,14 @@ action:
- .. code:: sh

sudo chkconfig --add disable-transparent-hugepages
---
title: "Override tuned and ktune, if applicable"
stepnum: 4
level: 4
ref: override-tuned-ktune
action:
- pre: |
If you are using ``tuned`` or ``ktune`` (for example, if you are running
Red Hat or CentOS 6+) you must now configure them to preserve the above
settings.
...
13 changes: 9 additions & 4 deletions source/tutorial/transparent-huge-pages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,23 @@ with MongoDB.
Init Script
-----------

Procedure
~~~~~~~~~
.. important::

If you are using ``tuned`` or ``ktune`` (for example, if you are running
Red Hat or CentOS 6+), you must additionally configure them so that THP is
not re-enabled. See :ref:`configure-thp-tuned`.

.. include:: /includes/steps/disable-thp-in-initd.rst

.. _configure-thp-tuned:

Using ``tuned`` and ``ktune``
-----------------------------

.. important::

If installed, you must configure ``tuned`` and ``ktune`` to prevent them from
re-enabling THP.
If using ``tuned`` or ``ktune``, you must perform this step in addition
to installing the init script.

``tuned`` and ``ktune`` are dynamic kernel tuning tools available on Red Hat
and CentOS that can disable transparent huge pages.
Expand Down