[DOCS-5487] Comment on: "manual/tutorial/transparent-huge-pages.txt" Created: 22/May/15  Updated: 03/Nov/17  Resolved: 04/Aug/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Laurence Moughan Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/tutorial/transparent-huge-pages/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Referrer: http://www.google.ie/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0CC0QFjAC&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Ftutorial%2Ftransparent-huge-pages&ei=Fg5fVdzHBMSt7gaV6IDYAw&usg=AFQjCNHB9Sk-LG_ffxTXoorsi5IKjpdKPA&sig2=-nZlj0rZEP9D_KQeFR54WA&bvm=bv.93990622,d.ZGU
Screen Resolution: 1920 x 1080
repo: docs
source: tutorial/transparent-huge-pages


Issue Links:
Related
is related to DOCS-5330 Using /etc/rc.local to disable THP re... Closed
Participants:
Days since reply: 7 years, 27 weeks, 6 days ago

 Description   

Hi Guys,

Im currently cleaning up my kernal setting due my recent upgrades to 302 - and this manual page is useless.

1. if you use the kernal parameter at boot time - this does not remove the defrag warning.

2., if you use the rc.local script this also fails as rc.local runs AFTER the mongo script.

I have found two ways to resolve

eikther add this to /etc/init.d/mongod

echo never >/sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag

OR

reorder the scripts numbers in /etc/rc3.d

set S895mongod to S100mongod, so it runs AFTER S99local



 Comments   
Comment by Andrew Aldridge [ 04/Aug/16 ]

This applies to the old pre-initd script we used to have on this page.

Generated at Thu Feb 08 07:50:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.