Skip to content

Commit

Permalink
Update the way to keep THP disabled (#1366)
Browse files Browse the repository at this point in the history
* Update the way to keep THP disabled

* Update 6.kernel-config.md
  • Loading branch information
randomJoe211 committed May 13, 2022
1 parent eb3f352 commit eab2154
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ These values control the dirty data cache for the system. For write-intensive sc

### Transparent huge page

For better delay performance, you must disable the transparent huge pages (THP). The command is:
For better delay performance, you must run the following commands to disable the transparent huge pages (THP).

```bash
root# echo never > /sys/kernel/mm/transparent_hugepage/enabled
root# echo never > /sys/kernel/mm/transparent_hugepage/defrag
root# swapoff -a && swapon -a
```

To prevent THP from being enabled again after the system restarts, you can modify the GRUB configuration file or `/etc/rc.local` to disable THP automatically upon system startup.

## Networking

### net.ipv4.tcp_slow_start_after_idle
Expand Down

0 comments on commit eab2154

Please sign in to comment.