From 3a44ec93c9a5e507632c7bd2cea1799c48849192 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Wed, 31 May 2023 10:07:35 +0800 Subject: [PATCH] spdk: reduce hugepage size to 1024MiB and persistent the hugepage setting Signed-off-by: Derek Su --- deploy/prerequisite/longhorn-spdk-setup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/prerequisite/longhorn-spdk-setup.yaml b/deploy/prerequisite/longhorn-spdk-setup.yaml index 7c4b327..95bcba3 100644 --- a/deploy/prerequisite/longhorn-spdk-setup.yaml +++ b/deploy/prerequisite/longhorn-spdk-setup.yaml @@ -5,7 +5,7 @@ metadata: labels: app: longhorn-spdk-setup annotations: - command: &cmd rm -rf ${SPDK_DIR}; git clone -b longhorn https://github.com/longhorn/spdk.git ${SPDK_DIR} && bash ${SPDK_DIR}/scripts/setup.sh ${SPDK_OPTION}; if [ $? -eq 0 ]; then echo "SPDK environment is configured successfully"; else echo "Failed to configure SPDK environment error code $?"; fi; rm -rf ${SPDK_DIR} + command: &cmd rm -rf ${SPDK_DIR}; git clone -b longhorn https://github.com/longhorn/spdk.git ${SPDK_DIR} && bash ${SPDK_DIR}/scripts/setup.sh ${SPDK_OPTION}; if [ $? -eq 0 ]; then echo "vm.nr_hugepages=$((HUGEMEM/2))" >> /etc/sysctl.conf; echo "SPDK environment is configured successfully"; else echo "Failed to configure SPDK environment error code $?"; fi; rm -rf ${SPDK_DIR} spec: selector: matchLabels: