Skip to content

Commit

Permalink
Activate THP settings on el7 during install.
Browse files Browse the repository at this point in the history
  • Loading branch information
razorsedge committed Apr 24, 2019
1 parent ef4ee4d commit 244952a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions disable_thp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ if [ "$OS" == RedHatEnterpriseServer ] || [ "$OS" == CentOS ]; then
echo 'echo never >/sys/kernel/mm/transparent_hugepage/enabled' >>/etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
systemctl start rc-local
sleep 2
systemctl restart rc-local
fi
elif [ "$OS" == Debian ] || [ "$OS" == Ubuntu ]; then
echo never >/sys/kernel/mm/transparent_hugepage/defrag
Expand Down

0 comments on commit 244952a

Please sign in to comment.