This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15630] Fix use of cpu_set_t with sched_getaffinity when booted on a system with more than 1024 possible cpus.
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 18 May 2015 18:59:23 +0000
- Subject: [Bug libc/15630] Fix use of cpu_set_t with sched_getaffinity when booted on a system with more than 1024 possible cpus.
- Auto-submitted: auto-generated
- References: <bug-15630-131 at http dot sourceware dot org/bugzilla/>
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.