mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Add the permanent approach for setting THP
This commit is contained in:
parent
07c828ece9
commit
16a9a8cdf1
@ -111,6 +111,14 @@ On newer Linux kernels transparent huge pages are alright.
|
|||||||
$ echo 'madvise' | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
|
$ echo 'madvise' | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you want to modify the transparent huge pages setting permanently, editing the `/etc/default/grub` to add the `transparent_hugepage=never` to the `GRUB_CMDLINE_LINUX_DEFAULT` option:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ GRUB_CMDLINE_LINUX_DEFAULT="transparent_hugepage=madvise ..."
|
||||||
|
```
|
||||||
|
|
||||||
|
After that, run the `sudo update-grub` command then reboot to take effect.
|
||||||
|
|
||||||
## Hypervisor configuration
|
## Hypervisor configuration
|
||||||
|
|
||||||
If you are using OpenStack, set
|
If you are using OpenStack, set
|
||||||
|
Loading…
Reference in New Issue
Block a user