[PATCH v1.1] tests: Verify inheritance of cpu affinity

Stefan Liebler stli@linux.ibm.com
Mon Jan 13 13:25:53 GMT 2025


On 10.01.25 19:03, Siddhesh Poyarekar wrote:
> On 2025-01-10 10:29, Siddhesh Poyarekar wrote:
>> On 2025-01-10 08:27, Siddhesh Poyarekar wrote:
>>> On 2025-01-10 08:01, Stefan Liebler wrote:
>>>> I observe testfails on s390x/s390 with both of the new tests:
>>>> FAIL: misc/tst-sched-affinity-inheritance
>>>> FAIL: nptl/tst-pthread-affinity-inheritance
>>>> (See attached files for more full output)
>>>>
>>>> To be honest, so far I have not looked into details, but I wanted to
>>>> report to see if others also observe errors.
>>>>
>>>> As information, my system reports this
>>>> $ nproc
>>>> 16
>>>> $ nproc --all
>>>> 200
>>>
>>> Oops, thanks for letting me know, I'll take a look.
>>
>> I can't reproduce these on a c10s system:
>>
>> # uname -r
>> 6.12.0-39.el10.s390x
>> # nproc
>> 2
>> # nproc --all
>> 64
>>
>> Could you tell me what kernel you're running on and also configure/
>> build flags?  One possibility is that I have too few cores compared to
>> your system, but I can't see why it should result in the failure
>> you're seeing.  Also, the failure seems to be due to an underlying
>> failure in getting sched attributes, which I'm thinking may be kernel
>> related.
> 
> I've sent this lightly tested patch based on a hunch I have about the
> kernel behaviour on the system(s) you're testing.  Can you please let me
> know if it fixes the problem for you?  This continues to work on the
> s390x system I have as well as x86_64.
> 
> https://patchwork.sourceware.org/project/glibc/
> patch/20250110180150.125539-1-siddhesh@sourceware.org/
> 
> Thanks,
> Sid

Hi Siddhesh,

for references, I've directly answered to your follow-up patch:
https://sourceware.org/pipermail/libc-alpha/2025-January/163868.html

I'm using different kernel versions starting from 6.3.

Thanks,
Stefan


More information about the Libc-alpha mailing list