[DOCS-11334] Update Transparent Huge Pages documentation Created: 19/Feb/18  Updated: 30/Oct/23  Resolved: 31/Oct/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Charles Sarrazin (Inactive) Assignee: Andrew Feierabend (Inactive)
Resolution: Won't Fix Votes: 0
Labels: THP, linux, rhel, tuned
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/index.html


Issue Links:
Related
related to DOCS-12902 Separately disabling THP defrag is no... Closed
is related to SERVER-33886 Ship with a tuned profile for MongoDB... Closed
Participants:
Days since reply: 4 years, 14 weeks, 6 days ago
Epic Link: DOCSP-1769
Story Points: 0.2

 Description   

Documentation for setting Transparent Huge Pages on RHEL-based / tuned-based environments is incomplete. As mentioned in SERVER-16643, simply disabling THP is not enough, and disabling defrag is also needed.

However, tuned do not let the user disable defrag, so the THP disabling configuration file needs to be amended, and used in combination with a script to disable defrag, or THP need to be disabled from the kernel configuration line in the grub config file.

Below are the updated configuration files for the first approach (confirmed to be working), which actually get rid of both startup warnings (defrag and thp).

/etc/tuned/no-thp/tuned.conf

[main]
include=virtual-guest
 
[vm]
transparent_hugepages=never
 
[script]
script=script.sh

/etc/tuned/no-thp/script.sh

#!/bin/sh
 
. /usr/lib/tuned/functions
 
start() {
    echo never > /sys/kernel/mm/transparent_hugepage/defrag
    return 0
}
 
stop() {
    return 0
}
 
process $@



 Comments   
Comment by Andrew Feierabend (Inactive) [ 31/Oct/19 ]

Superseded by DOCS-12902.

Comment by Charles Sarrazin (Inactive) [ 04/Apr/18 ]

Adding link to discussion about shipping a default tuned profile for RHEL-based distros.

Generated at Thu Feb 08 08:02:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.