Deshabilitar Transparent Huge Pages (THP) reduce el uso elevado de CPU que causa. Se realiza mediante la gestión del servicio asociado.
1 2 3 4 5 6 7 8 |
# systemctl daemon-reload # systemctl start disable-transparent-huge-pages # cat /sys/kernel/mm/transparent_hugepage/enabled always madvise [never] # cat /sys/kernel/mm/transparent_hugepage/defrag always defer defer+madvise madvise [never] # systemctl enable disable-transparent-huge-pages Created symlink /etc/systemd/system/basic.target.wants/disable-transparent-huge-pages.services.service. /etc/systemd/system/disable-transparent-huge-page |
1 2 3 4 5 6 7 8 9 10 11 12 |
[Unit] Description=Disable Transparent Huge Pages (THP) DefaultDependencies=no After=sysinit.target local-fs.target [Service] Type=oneshot ExecStart=/bin/sh -c 'echo never | tee /sys/kernel/mm/transparent_hugepage/enabled > /dev/null && echo never | tee /sys/kernel/mm/transparent_hugepage/defrag > /dev/null' [Install] WantedBy=basic.target |