Menambahkan baris berikut sebelum exit 0 di file /etc/rc.local dengan hak akses root berhasil. Reboot OS setelah menyimpan file. Kemudian peringatan menghilang di mongo shell.
Sumber:Dokumentasi MongoDB(http ://docs.mongodb.org/manual/reference/transparent-huge-pages/#transparent-huge-pages-thp-settings )
if test -f /sys/kernel/mm/transparent_hugepage/khugepaged/defrag; then
echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi