diff options
author | Wessel Dankers <wsl@fruit.je> | 2022-10-30 20:04:05 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2022-11-04 13:03:23 +0100 |
commit | b7877c45fc7fe47709c963e15214a3dd5fc71e32 (patch) | |
tree | 1c183d0e5870495cdd8777ff0c0f779b2596a0a8 /bin/tar2sqfs/Makemodule.am | |
parent | f3d87d9b78e28e2a6ad2676cce2b064f0bca6bd1 (diff) |
Only use available CPUs
Not all CPUs may be available for the current process. Some CPUs
may be offline, others may not be included in the process affinity
mask. In such cases too many threads will be created, which will
then compete unnecessarily for CPU time.
Use sched_getaffinity() to determine the correct number of threads
to create.
Diffstat (limited to 'bin/tar2sqfs/Makemodule.am')
0 files changed, 0 insertions, 0 deletions