The script in /etc/init.d/mongod should disable transparent hugepages. WiredTiger is complaining on startup because this isn't being done.
Here's a patch:
if [ -f /sys/kernel/mm/transparent_hugepage/enabled ]; then |
if grep -q "\[always\]" /sys/kernel/mm/transparent_hugepage/enabled; then |
echo never > /sys/kernel/mm/transparent_hugepage/enabled |
if [ "$?" != 0 ]; then |
echo "Error disabling transparent_hugepages, are you running in a linux container?" >&2 |
echo "If the server fails to start, check that transparent hugepages are disabled." >&2 |
fi |
fi |
fi |
- related to
-
SERVER-17522 THP startup warnings can become stale
-
- Open
-
-
DOCS-5330 Using /etc/rc.local to disable THP results in spurious startup warning
-
- Closed
-