[DOCS-5330] Using /etc/rc.local to disable THP results in spurious startup warning Created: 01/May/15 Updated: 30/Oct/23 Resolved: 31/Jul/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kevin Pulo | Assignee: | Andrew Aldridge |
| Resolution: | Done | Votes: | 5 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Days since reply: | 8 years, 28 weeks ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
http://docs.mongodb.org/manual/reference/transparent-huge-pages/ This page suggests disabling THP in /etc/rc.local. However, when mongod is started from an init service, this will usually be earlier in the boot process than /etc/rc.local. This means that THP will still be active when mongod starts, resulting in startup warnings that will no longer be applicable once /etc/rc.local has run. It would be useful if there was another, more reliable, way of generically disabling THP that doesn't have this problem. |
| Comments |
| Comment by Githook User [ 05/Aug/15 ] | ||||||||||||||||||||
|
Author: {u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}Message: Signed-off-by: kay <kay.kim@10gen.com> | ||||||||||||||||||||
| Comment by Githook User [ 31/Jul/15 ] | ||||||||||||||||||||
|
Author: {u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}Message: Signed-off-by: kay <kay.kim@10gen.com> | ||||||||||||||||||||
| Comment by Ben McCann [ 21/May/15 ] | ||||||||||||||||||||
|
I'd suggested the init script route as well in https://jira.mongodb.org/browse/SERVER-18113 | ||||||||||||||||||||
| Comment by Eric Milligan [ 21/May/15 ] | ||||||||||||||||||||
|
It might actually be nice to put this in the init script for mongod as a possible alternative to a documentation update. | ||||||||||||||||||||
| Comment by Kevin Pulo [ 01/May/15 ] | ||||||||||||||||||||
|
A possible solution for Ubuntu is an init script such as:
|