From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nwk-aaemail-lapp01.apple.com (nwk-aaemail-lapp01.apple.com [17.151.62.66]) by mx.groups.io with SMTP id smtpd.web11.16250.1585431738041473232 for ; Sat, 28 Mar 2020 14:42:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=RgIFBixl; spf=pass (domain: apple.com, ip: 17.151.62.66, mailfrom: afish@apple.com) Received: from pps.filterd (nwk-aaemail-lapp01.apple.com [127.0.0.1]) by nwk-aaemail-lapp01.apple.com (8.16.0.27/8.16.0.27) with SMTP id 02SLg0lK005635; Sat, 28 Mar 2020 14:42:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=m2WC1SYSGuRj1hXE9keNM5jf+kWqEB7r8xlxcyAi8iQ=; b=RgIFBixlHl1qX5LesSPrZslp/wH4wk6zlvbGaD0qsab1Mzr3xDHlnKy0jxZCBUTVWNMZ ms180mvrKnkdXH4WlyWQSzvFWbbg7OzMxB53iL4d4etqOR/ig9RZx1vk+dZPEaq/8TSU q6U63F1is3qbR3HX1oaLOnkAICEmd4IgdtxfOszXMQGBit/Y3SbDuKoxa7vaVG0C9001 o3lV0gXxqM7d4cP1K/cuEcbihOwqUxeuovjbssxJnLl68MOfS12iAS/M7u7Agxv+xDa8 MTxAGXfijuLZWU+Wjilo2MiVkot8AABNSvTBDsIcYCPtZEwhV+hUa0SFYCQAYTfpxLdu BQ== Received: from rn-mailsvcp-mta-lapp04.rno.apple.com (rn-mailsvcp-mta-lapp04.rno.apple.com [10.225.203.152]) by nwk-aaemail-lapp01.apple.com with ESMTP id 3025gyfjhw-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 28 Mar 2020 14:42:00 -0700 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by rn-mailsvcp-mta-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.5.20200312 64bit (built Mar 12 2020)) with ESMTPS id <0Q7X00KUWAXZUR60@rn-mailsvcp-mta-lapp04.rno.apple.com>; Sat, 28 Mar 2020 14:41:59 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz11.apple.com by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0Q7X00900AA07V00@nwk-mmpp-sz11.apple.com>; Sat, 28 Mar 2020 14:41:59 -0700 (PDT) X-Va-A: X-Va-T-CD: 08777febe38bb384cc57fda39d0586b7 X-Va-E-CD: 1c698a0c7216e26533ed9ec4378898a3 X-Va-R-CD: 90dcf07f9c1eb1764de1243caab2720e X-Va-CD: 0 X-Va-ID: 9aaaa2f3-6546-4250-8dbf-038817dd9f11 X-V-A: X-V-T-CD: 08777febe38bb384cc57fda39d0586b7 X-V-E-CD: 1c698a0c7216e26533ed9ec4378898a3 X-V-R-CD: 90dcf07f9c1eb1764de1243caab2720e X-V-CD: 0 X-V-ID: 0d96c256-f59f-411e-b903-56ede7037963 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-28_09:2020-03-27,2020-03-28 signatures=0 Received: from [17.235.20.36] by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0Q7X00G0EAXXEU10@nwk-mmpp-sz11.apple.com>; Sat, 28 Mar 2020 14:41:58 -0700 (PDT) Sender: afish@apple.com From: "Andrew Fish" Message-id: MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] [EXTERNAL] [edk2-devel] Information about the VMs used to do EDK2 CI? Date: Sat, 28 Mar 2020 14:41:57 -0700 In-reply-to: Cc: rebecca@bsdio.com, sean.brogan@microsoft.com, Bret Barkelew To: devel@edk2.groups.io, lersek@redhat.com References: <4287.1584808895303845810@groups.io> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-28_09:2020-03-27,2020-03-28 signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_D9CDC636-CD18-4EC2-BF66-91BB13642AC7" --Apple-Mail=_D9CDC636-CD18-4EC2-BF66-91BB13642AC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii This works on my MacBook Pro $ getconf _NPROCESSORS_ONLN 8 The macOS centric way is this: $ sysctl -n hw.logicalcpu 8 Thanks, Andrew FIsh > On Mar 23, 2020, at 5:38 AM, Laszlo Ersek wrote: >=20 > On 03/22/20 00:03, Rebecca Cran wrote: >> Thank you. I think we probably do want to detect the number of threads >> available: I'll see if I can work on that. >=20 > In a Linux environment, you can run "getconf _NPROCESSORS_ONLN". >=20 > In fact that's how I build the native BaseTools on my laptop: >=20 > $ . edksetup.sh > $ nice make -C "$EDK_TOOLS_PATH" -j $(getconf _NPROCESSORS_ONLN) >=20 > And from a cursory web search: >=20 > https://stackoverflow.com/a/23569003 >=20 > it is supposed to work on macOS too, and with a small tweak, on the BSDs > as well. >=20 > Thanks > Laszlo >=20 >=20 >=20 --Apple-Mail=_D9CDC636-CD18-4EC2-BF66-91BB13642AC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
This works= on my MacBook Pro
getconf = _NPROCESSORS_ONLN
8

The macOS centric way is this:
= sysctl -n hw.logicalcpu
8

Thanks,

Andrew FIsh

<= blockquote type=3D"cite" class=3D"">
On Mar 23, 2020, at 5:3= 8 AM, Laszlo Ersek <lers= ek@redhat.com> wrote:

<= div class=3D"">On 03/22/20 00:03, Rebecca Cran wrote:
Thank you. I think we pr= obably do want to detect the number of threads
available: I'l= l see if I can work on that.

In a Linux environment, you can run "getconf _NP= ROCESSORS_ONLN".

In fact that's how I build the native Base= Tools on my laptop:

$ . edksetup.sh
$ nice make -C "$EDK_TOOLS_PATH" -j $(getcon= f _NPROCESSORS_ONLN)

And from a cursory web search:=

 https://stackoverflow.com/a/2356= 9003

it is supposed to work on macOS too, and with a small twe= ak, on the BSDs
as well= .

Thanks
Laszlo



--Apple-Mail=_D9CDC636-CD18-4EC2-BF66-91BB13642AC7--