seapath / meta-seapath

This is the core of the seapath project. The meta-seapath repo contains the yocto Seapath layer, which contains all the code (yocto recipes) needed to build the seapath images used to install seapath (host, guest, flasher, etc.)
Apache License 2.0
6 stars 10 forks source link

irqbalance: fix set_irq_max_core.sh script #168

Closed dupremathieu closed 7 months ago

dupremathieu commented 7 months ago

The set_irq_max_core.sh script is used to set the maximum core for irqbalance to use. The script uses the nproc command to determine the number of cores on the system. However, the nproc without any options only returns the number of cores available to the current process. This means that the script will not work correctly if the number of cores available to the current process is less than the total number of cores on the system for instance if isolcpus is used.

This patch changes the nproc command to use the --all option to return the total number of cores on the system.

fix #167