[PATCH] Remove CPU mask size detection from setaffinity
Florian Weimer
fweimer@redhat.com
Thu May 21 15:09:00 GMT 2015
On 05/21/2015 01:28 PM, Florian Weimer wrote:
> On 05/20/2015 06:24 PM, Florian Weimer wrote:
>> The code looks quite broken to me and fails to achieve what it tries to
>> do, as explained in the commit message.
>
> Another advantage is that the magic number 1024 (128 bytes of CPU bits)
> is gone, so testing on smaller machines is possible.
>
> Well, I did that (144 CPU cores, detected set size 192 bits), and it
> turns out that my pthread test case is completely broken. :-(
>
> Here's a new one. It tries to check that the active CPU set returned by
> the kernel has not been truncated, and that threads are not scheduled to
> CPUs outside the set.
Now actually with the patch.
--
Florian Weimer / Red Hat Product Security
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-CPU-set-size-checking-from-sched_setaffinity-.patch
Type: text/x-patch
Size: 28340 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150521/72c4fb9d/attachment.bin>
More information about the Libc-alpha
mailing list