Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell: affinity: use cached hwloc XML
Problem: Loading hwloc topology can be very slow, especially on a system with many cores and when possibly many processes are trying to simultaneously call hwloc_topology_load(3). This can occur when many short running jobs are being launched by Flux, since the job shell loads topology by default in the affinity plugin. Since the job shell now caches the hwloc XML in the shell info object, fetch this XML and use it to load topology, avoiding redundant scans of ths sytem. This may greatly improve job throughput on many core systems. Fixes flux-framework#4365
- Loading branch information