When running calculations with high rate of memory allocation, khugepaged
can use 100% CPU or even cause CPU lockup messages in the kernel log:
INFO: task khugepaged:212 blocked for more than 120 seconds.
Disable transparent huge pages.
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
This needs to be made persistent across reboots.