public inbox for
 help / color / mirror / Atom feed
From: "ross at burtonini dot com" <>
Subject: [Bug debuginfod/29975] Search concurrency doesn't respect CPU affinity
Date: Mon, 09 Jan 2023 18:24:39 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

--- 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;

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.

  parent reply	other threads:[~2023-01-09 18:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-09 17:38 [Bug debuginfod/29975] New: " ross at burtonini dot com
2023-01-09 17:42 ` [Bug debuginfod/29975] " fche at redhat dot com
2023-01-09 18:24 ` ross at burtonini dot com [this message]
2023-01-10 23:04 ` fche at redhat dot com
2023-01-11 15:34 ` fche at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).