Skip to content

Commit

Permalink
Ensure THP disabled on RHEL/CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ggear committed Apr 11, 2014
1 parent 2ba42bd commit cb834b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/functions/install_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ EOF
service ntpd start
setenforce Permissive
sed -i -e "s|SELINUX=enforcing|SELINUX=permissive|" /etc/sysconfig/selinux
echo "echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag" >> /etc/rc.local
echo "echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled" >> /etc/rc.local
fi
echo -e "$(host -t a $(hostname) | awk '{print $4}')\t$(host -t a $(hostname) | awk '{print $1}')\t$(hostname)" >> /etc/hosts
}

0 comments on commit cb834b5

Please sign in to comment.