This is the mail archive of the glibc-bugs@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]

[Bug libc/15630] Fix use of cpu_set_t with sched_getaffinity when booted on a system with more than 1024 possible cpus.


https://sourceware.org/bugzilla/show_bug.cgi?id=15630

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
A potential solution would accept smaller size arguments for sched_getaffinity,
as long as the other bits on the kernel side a cleared.  Tools such as taskset
could then restrict the CPU set to the supported CPUs for legacy applications.

This is what we do with RLIMIT_NOFILEâit is still 1024 on many systems to
prevent issues with the select function and the default FD_SETSIZE value. 
Unfortunately, it is somewhat more restrictive.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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