diff options
author | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-09-14 10:24:04 -0700 |
---|---|---|
committer | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-09-14 10:24:04 -0700 |
commit | 8c52a2b08de17fd2bf20abaefca11251592d9ec0 (patch) | |
tree | d63899232886424285c399c94bf89e9592efb87d | |
parent | 28ee80d6dbac39da2e49956109791af330f810af (diff) |
Write vm.nr_hugepages to persistent media
Contrary to the comment, the code did not persist the vm.nr_hugepages
value across reboots
Change-Id: I34739800ccb525d725f0a936975a283886969936
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
-rw-r--r-- | vagrant/lib/bootstrap-functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |