Setting 64 KB Page Table
Purpose
Reduce the translation lookaside buffer (TLB) overhead, memory fragments, and I/Os to improve performance.
Preparations
Obtain the openEuler-22.03-lts-sp3 kernel RPM package that supports 64 KB pages through the link: kernel-64kb-5.10.0-182.0.0.95.oe2203sp3.aarch64.rpm.
Procedure
- Install the RPM package.
rpm -ivh kernel-64kb-5.10.0-182.0.0.95.oe2203sp3.aarch64.rpm --force
- Set the kernel of 64 KB page table to be started by default.
grubby --set-default-index=0
- Stop ClickHouse.
clickhouse stop

- Restart the system.
reboot
- Check the kernel after the restart.
uname -a
- Enable transparent huge pages after the restart.
echo madvise > /sys/kernel/mm/transparent_hugepage/enabled
Parent topic: OS Tuning