Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 27 Jul 2022 01:28:29 -0500
From: Rob Landley <>
Subject: sysconf(_SC_NPROCESSORS_CONF) broken.

NPROCESSORS_CONF is supposed to show total processors, NPROCESSORS_ONLN shows
available processors using the tasket mask sched_getaffinity()).

Musl is (uniquely) using the getaffinity() version for both. Neither glibc nor
bionic have that bug.

Test: my laptop has 4 processors:

$ taskset 7 nproc
$ taskset 7 nproc --all

With musl, both show 3.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.