From 5853749ba01173baa096b638e567b5135bba1b6f Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 7 May 2020 10:30:19 +0200 Subject: [PATCH] setup.sh: Check status of all numa nodes Use * instead of ? to match all the potential nodes not only those with a single digit id. The actual node limit is dependent on kernel's CONFIG_NODES_SHIFT hence in theory, the actual number of numa nodes may be far greater than 10. Change-Id: I1d587735b433ed23594725b9d77a44f7cc729494 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2228 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index ef03a3a3c..d97369307 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -578,7 +578,7 @@ function status_linux() { numa_nodes=0 shopt -s nullglob - for path in /sys/devices/system/node/node?/hugepages/hugepages-*/; do + for path in /sys/devices/system/node/node*/hugepages/hugepages-*/; do numa_nodes=$((numa_nodes + 1)) free_pages=$(cat $path/free_hugepages) all_pages=$(cat $path/nr_hugepages)