From a826fe833d3f2a8fe2673fa05811fe1a22baf045 Mon Sep 17 00:00:00 2001 From: charan makkina Date: Tue, 30 Apr 2019 17:40:53 +0530 Subject: Feature: 19.04 part 1 Change-Id: Ibba924b8deca1f246b9dcb12d89d085b6fd33046 Signed-off-by: charan makkina --- demo/nginx_proxy/demo-1/adjust_hugepage.sh | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 demo/nginx_proxy/demo-1/adjust_hugepage.sh (limited to 'demo/nginx_proxy/demo-1/adjust_hugepage.sh') diff --git a/demo/nginx_proxy/demo-1/adjust_hugepage.sh b/demo/nginx_proxy/demo-1/adjust_hugepage.sh deleted file mode 100644 index 282e3bd..0000000 --- a/demo/nginx_proxy/demo-1/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 - -- cgit 1.2.3-korg