Skip to content

Commit

Permalink
Update the way to keep THP disabled (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomJoe211 authored May 13, 2022
1 parent edf34fa commit 491d6c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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。

## 网络

Expand Down

0 comments on commit 491d6c8

Please sign in to comment.