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 <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2228 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
c8c4f71efe
commit
5853749ba0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user