From d0a6c99c7cf54a772a4a33ed4b0d32ff8296dba4 Mon Sep 17 00:00:00 2001 From: Sun Austin Date: Fri, 22 Mar 2019 11:59:01 +0800 Subject: [PATCH] Remove auto-allocation 1G hugepage from ks for vswitch Story: 2004763 Task: 28881 Signed-off-by: Sun Austin Change-Id: I9754ad5fb918f1b3162e90045ec88f83feeaddab --- bsp-files/kickstarts/post_kernel_aio_and_worker.cfg | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bsp-files/kickstarts/post_kernel_aio_and_worker.cfg b/bsp-files/kickstarts/post_kernel_aio_and_worker.cfg index 14a89d53..f2281101 100644 --- a/bsp-files/kickstarts/post_kernel_aio_and_worker.cfg +++ b/bsp-files/kickstarts/post_kernel_aio_and_worker.cfg @@ -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 +KERN_OPTS="${KERN_OPTS} hugepagesz=2M hugepages=0 default_hugepagesz=2M" # 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