[Bug debuginfod/29975] Search concurrency doesn't respect CPU affinity
ross at burtonini dot com
sourceware-bugzilla@sourceware.org
Mon Jan 9 18:24:39 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=29975
--- Comment #2 from Ross Burton <ross at burtonini dot com> ---
No, but the C isn't that difficult:
#define _GNU_SOURCE
#include <sched.h>
int ret, count;
cpu_set_t mask;
CPU_ZERO(&mask);
ret = sched_getaffinity(0, sizeof(mask), &mask);
// if non-zero, errno is set
count = CPU_COUNT(&mask);
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list