From a3df103677650d99f7b7668794d2e1082b7067d6 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Fri, 13 May 2022 10:45:10 +0800 Subject: [PATCH] Update the way to keep THP disabled --- .../1.configurations/6.kernel-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/6.kernel-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/6.kernel-config.md index 20d831c9e70..42dcb2cb41f 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/6.kernel-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/6.kernel-config.md @@ -58,7 +58,7 @@ root# echo never > /sys/kernel/mm/transparent_hugepage/enabled root# echo never > /sys/kernel/mm/transparent_hugepage/defrag root# swapoff -a && swapon -a ``` -为了防止系统重启后该配置失效,可以在`/etc/grub.conf`文件添加 `transparent_hugepage=never`,使系统启动时自动关闭 THP。 +为了防止系统重启后该配置失效,可以在GRUB配置文件或`/etc/rc.local`中添加相关配置,使系统启动时自动关闭 THP。 ## 网络