getconf(1) might want to support glibc specific _NPROCESSORS_ONLN
|Reporter||A. Wilcox (awilfox)|
|Assignee||A. Wilcox (awilfox)|
|Reported||2018-05-30 23:10:17 -0500|
|Modified||2019-01-09 11:53:26 -0600|
|Hardware||Adélie Linux / All|
|Importance||Normal / trivial|
Some build systems (at least strace and glib) seem to decide number of concurrent jobs based on a glibc-specific getconf(1) variable, _NPROCESSORS_ONLN.
It would be useful if we could emulate this. I don't think it is so hard to determine the number of current CPUs from C in Linux. Let's investigate.