summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/.ci/linux-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/dpdk/.ci/linux-setup.sh')
-rwxr-xr-xsrc/spdk/dpdk/.ci/linux-setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/spdk/dpdk/.ci/linux-setup.sh b/src/spdk/dpdk/.ci/linux-setup.sh
new file mode 100755
index 000000000..5d3089cad
--- /dev/null
+++ b/src/spdk/dpdk/.ci/linux-setup.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -xe
+
+# need to install as 'root' since some of the unit tests won't run without it
+sudo python3 -m pip install --upgrade 'meson==0.47.1'
+
+# setup hugepages. error ignored because having hugepage is not mandatory.
+cat /proc/meminfo
+sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' || true
+cat /proc/meminfo