From 491d6c8183b9df2192895a78bae2da1af119fb74 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Fri, 13 May 2022 12:41:00 +0800 Subject: [PATCH] Update the way to keep THP disabled (#1798) --- .../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。 ## 网络