From a9616e84979d1eb361912236917a85bd82b7665e Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 14 Dec 2016 08:10:12 -0700 Subject: [PATCH] setup.sh: allow overriding of NRHUGE Default is still 1024 2MB huge pages, but user can override this by setting a different value in the environment. Signed-off-by: Jim Harris Change-Id: I8d189d3a71f474469a44b6eb41b4443591863f3c --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index fb25932d0..802ee8105 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -163,7 +163,7 @@ function reset_freebsd { kldunload nic_uio.ko || true } -NRHUGE=1024 +: ${NRHUGE:=1024} username=$1 mode=$2