From owner-freebsd-arm@freebsd.org Thu Oct 11 17:07:16 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4B8410C125C for ; Thu, 11 Oct 2018 17:07:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-22.consmr.mail.gq1.yahoo.com (sonic303-22.consmr.mail.gq1.yahoo.com [98.137.64.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5462778EC0 for ; Thu, 11 Oct 2018 17:07:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Qf4m8fAVM1mmClriKZDi2Qm8v2bqF7DFpn_PR4gH4oiv85Br.t1k2VbiwmoMwF3 PLHTWNTPczHC._4YBABx9WWZOqDLPGOZDQYkbLcVlDc1uSzMVH7JwZDJEbDDnKE1WOLQteCJXRx7 Uigx2oBC_2HZ7WgTsonSEN_l9XTfABnVOaMYGEuwFatN6uwQqJsIysTsAo0NhYvXR0wt3veUviCL eTRyppiC3Wl2J8t3EKWCl_w.hTqEA843npBHSYjestFsYvvUSCk.FQuOWYtod6Zbse6ewCNEEWnZ AEOtXjgwmp13Mntmgkneb0bLChpQFQC9FmNfCUMV_Vwf.fhMJMDY0r5bNs9ZILmiOJ88pK4JlvOy Z2d84DWrTCD2OQnzLjpIWXHwcOLBRzk8XpYdXW2U4kH5ogDOxwWT.lp7wDn82iejnEiFpJNrM92y zPkS2eEb7vixTm.wtJUWdC7glkHAmHs0Ro3FVubsxOLVMxgQ5LmeJty8lzDl_4OnOqKsqi1Q_454 RVp.RptukwSXrxpxDhxB_fXCPFXjTUsdIXwZEqndaRI5PLgxnJMrj_MbLTPN2Pjv90mEvXhcy8_G IL3XajFyMV7dZpQd1MD1ZBnlVYf2GZd0Sfm380YaR41iMqerYV0mUtpuxqBlGsS.sqaCxXgGzZIS mWBu4gf9P6yqEne.ugsd6zdpRyAEk3xj06oJIkgX84W_GO9NsWfqIg.gi_X6c08H_xY.IrURwDOc 7m79bdNrzT.mu1zM5R_wl01FH7uyTLDRSpQDZTdLppZAWmPyzUHXpmB0Yl23bhwWOfSFgkRCGnch 6HCudOSXCZzf8SX7ZeXG.qHjHNcqX8qjrmQo.Ob_hRGp03qpR9yloSRDLuyDv_jd3m64B4Ny.P_6 _4UIU0k4s89y1mZOplsk2QSvDu5DBHSI18HeiHG3NJ0dPSef_dFlMeBKSs_ks_FTZ5cuS6YBHh1r zMxVGVBdWrb.0qjhIhxYh6zc071m_8Qsfc0XTYSE4I8qkI6NcegpUBrQUx6tV1uwmesgRKkqmQHp anASx3N8W.I6IxCogLI_J9zNfhRh_.WCwAai5QrW_mZT1LO5mHZkqHJEnRXOg2nxYEwKVYl42HJH bv66qZQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Thu, 11 Oct 2018 17:07:13 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp432.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e284c6eac1ca469319cad90f648090ca; Thu, 11 Oct 2018 17:07:11 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: FYI: SoftIron Overdrive 1000 (aarch64 Cortex-A57) vs. old PowerMac G5 (powerpc64) "Quad Core": a comparison of build times Date: Thu, 11 Oct 2018 10:07:11 -0700 References: To: freebsd-arm , FreeBSD PowerPC ML In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2018 17:07:16 -0000 [Adding notes about Watts when near 0% idle.] On 2018-Oct-10, at 2:56 AM, Mark Millard wrote: > The following is based on WITHOUT_LLVM_TARGET_ALL=3D and > powerpc64 has WITH_LIB32=3D while aarch64 does not. In > both cases system-clang is used to do the buildworld > buildkernel, although for powerpc64 one would not > normally install and try to boot and use the result > for FreeBSD as things are. The builds are self-hosted, > not cross builds. >=20 > OverDrive 1000 buildworld buildkernel: a little under 3 hr 17 min. > G5 "Quad Core" buildworld buildkernel: around 4 hr 53 min (4 = hr 14 min ignoring lib32 time). >=20 > The G5 had not started building lib32 (or the kernel) until > about 3 hr 28 min into its build. aarch64 has no lib32 to > build. The G5 did not start on the kernel until around 4 hr > 7 min. So around 4 hr 14 min when not counting lib32's time. >=20 > powerpc64 is using devel/powerpc64-binutils (or devel/binutils) > but aarch64 is using lld. (Last I tried lld would not let the > build complete for powerpc64, if I remember right.) For powerpc64 > the binutils used had been built already. >=20 >=20 > What was built was (same-in-both part): > (neither built a bootstrap compiler or > linker) >=20 > #WITH_CROSS_COMPILER=3D > WITH_SYSTEM_COMPILER=3D > WITH_SYSTEM_LINKER=3D > # > WITH_LIBCPLUSPLUS=3D > WITHOUT_BINUTILS_BOOTSTRAP=3D > WITH_ELFTOOLCHAIN_BOOTSTRAP=3D > WITHOUT_LLVM_TARGET_ALL=3D > #WITH_CLANG_BOOTSTRAP=3D > WITH_CLANG=3D > WITH_CLANG_IS_CC=3D > WITH_CLANG_FULL=3D > WITH_CLANG_EXTRAS=3D > WITH_LLD=3D > WITHOUT_BINUTILS=3D > WITH_LLDB=3D > # > WITH_BOOT=3D > # > WITHOUT_GCC_BOOTSTRAP=3D > WITHOUT_GCC=3D > WITHOUT_GCC_IS_CC=3D > WITHOUT_GNUCXX=3D >=20 >=20 > The variations for what was built between aarch64 vs. > powerpc64 were: >=20 > #WITH_LLD_BOOTSTRAP=3D > WITHOUT_LLD_BOOTSTRAP=3D >=20 > WITH_LLD_IS_LD=3D > WITHOUT_LLD_IS_LD=3D >=20 > WITHOUT_LIB32=3D [This is effectively a comment: aarch64 never has = lib32] > WITH_LIB32=3D >=20 > powerpc64 uses: LOADER_DEFAULT_INTERP=3D4th >=20 > Also, cortex-a57 used: LDFLAGS.lld+=3D -Wl,--no-threads >=20 >=20 > Note: My actual powerpc64 builds are via devel/powerpc64-gcc > and devel/powerpc64-binutils (or devel/binutils), but I've > not built for aarch64 that way. For powerpc64 I do build > clang and have clang as cc. (Clang's powerpc64 problems are > tied to things special for buildworld and buildkernel .) > Unfortunately, devel/powerpc64-gcc based builds are > WITHOUT_LIB32=3D because for lib32 it misuses R30 in crtbeginS > code (vs. the ABI for FreeBSD) and 32-bit code just produces > core files from the bad dereference that results. >=20 > Note: The G5 so-called "Quad Core" has 4 cores overall in the > system but they are evenly split across 2 sockets: 2 dual-core > processors. Continuing the comparison of things separated by over a decade: Watts when (near) 0% idle over sustained periods during buildworld or poudriere bulk. PowerMac G5 so-called "Quad Core": around 380 W. SoftIron Overdrive 1000: a little under 45 W. The Overdrive does not have a video card. The G5 has a video card that is in use as a basic console, not x11 or such. Other than the video card, the other G5 optional hardware includes its 16 GiBytes of RAM and one 480 GByte SSD appropriate to the older SATA technology. One Ethernet connection. A USB keyboard. The OverDrive 1000 has 8 GiBytes of RAM and the hard drive was replaced by a 1TB Samsung 960 Pro SSD. One Ethernet connection. Its USB serial console is set up. At the system level both total to having 4 cores (structured very differently to get there). And the Overdrive builds FreeBSD and ports somewhat faster overall. Cool. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)