From 97109732e1e95df21716513256add920fe43d7af Mon Sep 17 00:00:00 2001 From: Vanessa Rene Valderrama Date: Thu, 2 Feb 2017 09:45:16 -0600 Subject: Enable Hugepages TLDK project requires Hugepages to be enabled. This change enables Hugepages and sets the size to 128. Change-Id: Ie582cdf5ab2c766da268c0a39ed47bc45f31058c Signed-off-by: Vanessa Rene Valderrama --- packer/provision/baseline.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh index 87c777699..aaf1fa100 100644 --- a/packer/provision/baseline.sh +++ b/packer/provision/baseline.sh @@ -205,6 +205,13 @@ Defaults:jenkins !requiretty jenkins ALL = NOPASSWD: /usr/bin/update-alternatives EOF + # Enable Hugepages + puppet module install thias-sysctl --version 1.0.6 + puppet apply -e "sysctl {'vm.nr_hugepages': value => '128'}" + puppet apply -e "file { '/mnt/huge': ensure => directory }" + puppet apply -e "mount { '/mnt/huge': ensure => mounted, atboot => true, \ + device => 'none', fstype => 'hugetlbfs', options => 'mode=01777' }" + # Do any Distro specific installations here echo "Checking distribution" FACTER_OS=$(/usr/bin/facter operatingsystem) -- cgit 1.2.3-korg