[PATCH] affinity-inheritance: Overallocate CPU sets

Siddhesh Poyarekar siddhesh@sourceware.org
Tue Jan 14 13:38:59 GMT 2025


On 2025-01-13 08:09, Stefan Liebler wrote:
> the online vs configured CPUs is the solution as sched_getaffinity
> syscall otherwise fails with EINVAL.
> 
> But we also have to adjust the other CPU_ALLOCs in the
> verify_my_affinity functions. Otherwise the getaffinity functions are
> called with size for configured-CPUs but a set only suitable for the
> online-CPUs.
> With the attached diff on top of your patch, both tests are passing on
> my s390x(64bit)/s390(31bit) machines.

Ahh yes, thank you.  I'll test this on my systems and push if it 
continues to work.

Thanks,
Sid


More information about the Libc-alpha mailing list