According to RedHat
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/performance_tuning_guide/s-memory-transhuge

I usually use THP and this can be enabled very easily within the running system by issuing

echo always > /sys/kernel/mm/transparent_hugepage/enabled
echo always > /sys/kernel/mm/transparent_hugepage/defrag

With the above I always set the nr_hugepages to 512 or for smaller systems 128.

echo 512 > /proc/sys/vm/nr_hugepages