01 April,2020 by Rambler
Question: I'm getting these messages as system alerts through the MongoDB Ops Manager.
2020-02-07T21:34:21.241+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2020-02-07T21:34:21.241+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
What do they mean? and how can I stop these warning messages occuring?
Answer: The Transparent Hugepages Linux kernel feature aims to boost performance by by "optimising" the processor's memory mapping. By using larger memory page sizes , the aim is to decrease the Translation Lookaside Buffer(TLB) lookups . By default this feature is enabled in most Linux distributions.
MongoDB recommends to Disable Transparent Huge Pages
Follow the instructions in the link above to stop the system alert happening. The instructions are very clear , which in summary includes creating a service file , start the service , configure to run at restart.
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |