mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] about sysconf(_SC_NPROCESSORS_CONF) issue
@ 2022-11-21  8:51 =?gb18030?B?zcPX09bt?=
  2022-11-21 20:34 ` Markus Wichmann
  0 siblings, 1 reply; 2+ messages in thread
From: =?gb18030?B?zcPX09bt?= @ 2022-11-21  8:51 UTC (permalink / raw)
  To: =?gb18030?B?bXVzbA==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 505 bytes --]

Hi


currently, we use "sysconf(_SC_NPROCESSORS_CONF)" to get the number of the CPU,  and the musl implements this function by SYS_sched_getaffinity system call,  when some of CPUs are isolated, the return value is not correct.


I have searched the history maillist of musl and found the same issue: https://www.openwall.com/lists/musl/2021/05/05/,  but there is no final conclusion. I wonder why musl is doing this?


I'm Looking forward to your reply, Thanks.


Tony Gan

[-- Attachment #2: Type: text/html, Size: 764 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-21 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21  8:51 [musl] about sysconf(_SC_NPROCESSORS_CONF) issue =?gb18030?B?zcPX09bt?=
2022-11-21 20:34 ` Markus Wichmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).