0

A default installation of MongoDB on Ubuntu 18.04 gives the following warning about transparent hugepage defrag. How to deal with it?

0

Mongo complains because using transparent hugepage and always defraging it is not optimal for it's performance. Do your research if you need more info.

A clean permanent solution is to install sysfs and add the setting there.

:~# apt install sysfsutils

add these two lines to /etc/sysfs.conf:

kernel/mm/transparent_hugepage/enabled = never  
kernel/mm/transparent_hugepage/defrag = never

reboot

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.