Remove auto-allocation 1G hugepage from ks for vswitch

Story: 2004763
Task: 28881

Signed-off-by: Sun Austin <austin.sun@intel.com>
Change-Id: I9754ad5fb918f1b3162e90045ec88f83feeaddab
This commit is contained in:
Sun Austin 2019-03-22 11:59:01 +08:00
parent 21d2970da3
commit d0a6c99c7c

View File

@ -13,14 +13,7 @@ n_cpus=$(cat /proc/cpuinfo 2>/dev/null | \
n_numa=$(ls -d /sys/devices/system/node/node* 2>/dev/null | wc -l)
KERN_OPTS=" iommu=pt usbcore.autosuspend=-1"
# Add kernel options for hugepages
if grep -q pdpe1gb /proc/cpuinfo
then
KERN_OPTS="${KERN_OPTS} hugepagesz=1G hugepages=${n_numa}"
KERN_OPTS="${KERN_OPTS} hugepagesz=2M hugepages=0 default_hugepagesz=2M"
else
KERN_OPTS="${KERN_OPTS} hugepagesz=2M hugepages=0 default_hugepagesz=2M"
fi
# If this is an all-in-one system, we need at least 4 CPUs
if [ "$system_type" = "All-in-one" -a ${n_cpus} -lt 4 ]; then