📜  echo never > sys kernel mm transparent_hugepage enabled rclocal - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:26.045000             🧑  作者: Mango

代码示例1
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
   echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
   echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi