This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove CPU mask size detection from setaffinity


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.

-- 
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]