summaryrefslogtreecommitdiffstats
path: root/demo/nginx_proxy/demo-2/adjust_hugepage.sh
diff options
context:
space:
mode:
authorcharan makkina <charan795m@gmail.com>2019-04-30 17:40:53 +0530
committercharan makkina <charan795m@gmail.com>2019-05-20 18:14:40 +0530
commita826fe833d3f2a8fe2673fa05811fe1a22baf045 (patch)
treeda11a17c46ca9b8a002a52a290628574fa3f5eda /demo/nginx_proxy/demo-2/adjust_hugepage.sh
parent3e6bf7b64eea418c59959c18750261b815b2892c (diff)
Feature: 19.04 part 1
Change-Id: Ibba924b8deca1f246b9dcb12d89d085b6fd33046 Signed-off-by: charan makkina <charan795m@gmail.com>
Diffstat (limited to 'demo/nginx_proxy/demo-2/adjust_hugepage.sh')
-rw-r--r--demo/nginx_proxy/demo-2/adjust_hugepage.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/demo/nginx_proxy/demo-2/adjust_hugepage.sh b/demo/nginx_proxy/demo-2/adjust_hugepage.sh
deleted file mode 100644
index 282e3bd..0000000
--- a/demo/nginx_proxy/demo-2/adjust_hugepage.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash -x
-hugepagesize=$(cat /proc/meminfo | grep Hugepagesize | awk -F " " {'print$2'})
-if [ "$hugepagesize" == "2048" ]; then
- pages=3000
-elif [ "$hugepagesize" == "1048576" ]; then
- pages=5
-fi
-sudo sysctl -w vm.nr_hugepages=$pages
-HUGEPAGES=`sysctl -n vm.nr_hugepages`
-echo "Configured hugepages: $HUGEPAGE"
-if [ $HUGEPAGES != $pages ]; then
- echo "Warning: Unable to get $pages hugepages, only got $HUGEPAGES. Cannot finish."
-fi
-