[Tarantool-patches] [PATCH luajit 1/3] ci: fix --parallel argument for MacOS runners

Igor Munkin imun at tarantool.org
Wed Jul 6 00:25:17 MSK 2022


Sergey,

On 05.07.22, Sergey Bronnikov wrote:
> Igor,
> 
> I found that hw.ncpu sysctl setting is deprecated and it is recommended 
> to use
> 
> hw.logicalcpu, hw.logicalcpu_max, hw.physicalcpu, or hw.physicalcpu_max.
> 
> I believe hw.logicalcpu is the best choice for our case.
> 
> macOS manual pages are unavailable on apple.com [1], but there are other 
> places:
> [2], [3], [4].
> 

Ouch... I've pushed this series yesterday, so I guess we can do a follow
up commit with s/hw.ncpu/hw.logicalcpu/g.

> 
> 1. 
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/sysctlbyname.3.html
> 2. https://www.unix.com/man-page/mojave/3/sysctlbyname/
> 3. Use of deprecated hw.ncpu https://github.com/ziglang/zig/issues/1252
> 4. sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X 
> https://gitlab.haskell.org/ghc/ghc/-/issues/8594
> 
> 
> Sergey
> 

<snipped>

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list