implement processor_affinity(2) à la Solaris 11.2
Illumos and Solaris have had processor_bind(2) for quite some time, but this only allows the programmer to bind a process/LWP to a single processor. Several projects (e.g., GCC's libgomp and MPI's hwloc) need more advanced bindings, such as binding a process and all of its LWPs to an arbitrary set of processors. On Linux/FreeBSD, these projects use sched_setaffinity(2) / cpuset_setaffinity(2), but no equivalent functionality is available on Illumos-based systems: lgrps are too coarse-grained, and psets are too heavy and require escalated privileges.
Solaris 11.2 introduces this functionality with a new function, processor_affinity(2):
It would be great if Illumos could implement something compatible or equivalent.
No data to display