Re: [PATCH] support for accessing CPU/core count (processor-count)

2021-10-10 Thread Omar Polo
Paul Eggert writes: > On 10/10/21 5:21 AM, Stefan Kangas wrote: >> Omar Polo writes: >>> OpenBSD disables hyperthreading by default so HW_NCPU is (almost) always >>> misleading. For example, on my machine >>> >>> % uname -a >>> OpenBSD venera 7.0 GENERIC.MP#221 amd64 >>>

Re: [PATCH] support for accessing CPU/core count (processor-count)

2021-10-10 Thread Paul Eggert
On 10/10/21 5:21 AM, Stefan Kangas wrote: Omar Polo writes: OpenBSD disables hyperthreading by default so HW_NCPU is (almost) always misleading. For example, on my machine % uname -a OpenBSD venera 7.0 GENERIC.MP#221 amd64 % sysctl hw.ncpu hw.ncpu=8