A simple change to support any number of numa nodes in setup-hugetlbfs.sh. The glob will expand to only what exists, so the -e test is no longer needed.
It is worth noting that the glob expansion will cause nr_hugepages to be set in filename sort order, not numa node numerical order; i.e. node10 will be set before node2, node100 will be set before node11, etc. I doubt this should matter, but wanted to bring it up just in case there was an assumption elsewhere in the code which relies on behavior caused by the set order.
A simple change to support any number of numa nodes in setup-hugetlbfs.sh. The glob will expand to only what exists, so the
-e
test is no longer needed.It is worth noting that the glob expansion will cause nr_hugepages to be set in filename sort order, not numa node numerical order; i.e. node10 will be set before node2, node100 will be set before node11, etc. I doubt this should matter, but wanted to bring it up just in case there was an assumption elsewhere in the code which relies on behavior caused by the set order.