emmericp / ixy

A simple yet fast user space network driver for Intel 10 Gbit/s NICs written from scratch
BSD 3-Clause "New" or "Revised" License
1.2k stars 125 forks source link

Support more numa nodes in setup-hugetlbfs.sh. #24

Closed werekraken closed 4 years ago

werekraken commented 4 years ago

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.

emmericp commented 4 years ago

thank you!