X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vagrant%2Flib%2Fbootstrap-functions.sh;h=71fa0625d043f050c8a40508861a5af3ac665166;hb=fb764d5c558945041a034cd4d5d2526ec3ee32af;hp=9a6067818667eb7f25d72142f8f845c97f744205;hpb=d25069df62eed0c7aecb40486797ae14a6ce9006;p=ci-management.git diff --git a/vagrant/lib/bootstrap-functions.sh b/vagrant/lib/bootstrap-functions.sh index 9a6067818..71fa0625d 100644 --- a/vagrant/lib/bootstrap-functions.sh +++ b/vagrant/lib/bootstrap-functions.sh @@ -154,7 +154,9 @@ deb_install_pkgs() { deb_enable_hugepages() { # Setup for hugepages using sysctl so it persists across reboots - sysctl -w vm.nr_hugepages=1024 + AVP="vm.nr_hugepages=1024" + sysctl -w ${AVP} + echo "${AVP}" >> /etc/sysctl.conf mkdir -p /mnt/huge echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab