mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-26 11:45:19 +00:00
11 lines
403 B
Bash
11 lines
403 B
Bash
#!/usr/bin/env bash
|
|
|
|
if test -f /sys/kernel/mm/transparent_hugepage/khugepaged/defrag; then
|
|
echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
|
|
fi
|
|
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
|
|
echo never > /sys/kernel/mm/transparent_hugepage/defrag
|
|
fi
|
|
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
|
|
echo never > /sys/kernel/mm/transparent_hugepage/enabled
|
|
fi |