LEMPer icon indicating copy to clipboard operation
LEMPer copied to clipboard

MongoDB warns to Disable Transparent Huge Pages (THP)

Open joglomedia opened this issue 3 years ago • 0 comments

Describe the Issue / Bug

MongoDB Transparent Huge Pages (THP) warning

------
   The server generated these startup warnings when booting:
   2021-12-18T16:50:42.028+00:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
   2021-12-18T16:50:42.779+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
   2021-12-18T16:50:42.779+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
------

To Reproduce Steps to reproduce the behavior:

  • Install MongoDB
  • Run MongoDB shell (mongosh)

Expected Behavior No warning about THP

Screenshots / Screen Cast If applicable, add screenshots / screen cast to help explain your problem.

Config File (.env) If applicable, add part of your non-sensitive data from configuration file (.env).

System Information (please complete the following information):

  • OS: Ubuntu 20,04 x86_64
  • Shell: bash 4.4.20
  • Version 2.4.3

Additional Context

Solution for MongoDB THP issue found here https://docs.mongodb.com/upcoming/tutorial/transparent-huge-pages/

joglomedia avatar Dec 23 '21 23:12 joglomedia