Author: admin

Disable Transparent Huge Pages [THP] in CentOS 8

On CentOS 8, In file editor open /etc/default/grub file, and add “transparent_hugepage=never” kernel parameter on the GRUB_CMDLINE_LINUX in options as shown below;

GRUB_CMDLINE_LINUX="options transparent_hugepage=never"

On command line execute grub2-mkconfig to build /boot/grub2/grub.cfg

grub2-mkconfig -o /boot/grub2/grub.cfg [System with BIOS]
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg [System with UEFI]

Reboot Server to apply changes. If THP is still not disabled, stop tuned with

tuned-adm off

Add “transparent_hugepage=never” kernel parameter in /etc/default/grub file and reboot server.

How to configure a SSH tunnel?

On the client machine perform the following step:

[root@host]# ssh -N -L :: user@remote-machine-ip

From a new console/terminal execute the telnet command as follows:

[root@host]# telnet localhost

This kb is relevant to the following;

  • Encrypt the traffic by SSH tunneling the connection to remote host.
  • Encrypt unencrypted network traffic