From nobody Wed Mar 13 06:57:29 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TvhCs48kRz5DTMY for ; Wed, 13 Mar 2024 06:57:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-19.consmr.mail.gq1.yahoo.com (sonic306-19.consmr.mail.gq1.yahoo.com [98.137.68.82]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TvhCr4NZQz4RCx for ; Wed, 13 Mar 2024 06:57:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Q4MxFAEC; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.82 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710313062; bh=wUbYwYmGV4mXMm8kI3sDvVULX8k7Gv5uzKNT4mUB62c=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=Q4MxFAECxT8ODnbIyhXAl3d7D5x9RXnhWGapbywNqrNbmROTRn5VRg7I/09huQBC6PvkTQsPXvHYdKn9eyHedGQa8WxNavgra1jBT5Y14m2LpUSwIBKZFwJJQDeQCSDX0HeV40Mpt/abp7KvJHJScwnOQQOk42p3OifWLLWbzCgqiQsatbZK18cJELbfijerPbZP3c24EeydegIAPBQpN++GVg2F41/iK9yGf1Np9Cu8PIGbM5Jw2OCpDRNd2HQw9rXIwZ9BG3TNl/NfU/olhYC8zLvTmNbD8JNw/ma9coYSY/262qLJbidmRnnPf1PGujZ6CHec99or0HqCX53j0w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710313062; bh=7J2dg5VQhGwtvntwRuoRVt6idnX5r3XQeuH1zrsLIJ+=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=XgT+aLg2v4UZJq3LmIgO7ccXB6D+9Zj5TD9ra0mlQ3v1fy31jn3tvABGVP6BK4I9Un+gCUzAngkIIZs+YemvkoitcUJACVxVh4oqQ5vxJFGWzIJkTHY9sv9Wz2bfYPj3L8ENS/lsh8cDogNpsl4+U5BOZ7PamhV5Smftcon+0wqC10YjKPsWkEFMUb/x9uJtbzCp0KL2bhQ0DC3bu2rYV49tN74s9QYEaSHPvSnZAFb4xNU4Qh651HTh5WSN6o0E+Qr4f+kfqg83JJxB1Qyjb6HeDOpGEjwvo6LUUaw+SPq6fa2l1jR7EhcPPmy7q4V/0POhG2NDDUpt2UycMPK20Q== X-YMail-OSG: rwcpQiQVM1nmkSk4G1m4trxvLGQI.X5Zcat3WIZmlQYBjlpjKdK8NY4EAhW7i1k c6S7tSyjkM6STYmlI7PhvSJm52tbs2VnFqEJ2P.vB_tjvC4GEKLbbO3SiqGrLnPwuvnQW1GT5S_O foTPH6C25mVsa9VrXKO8rC091thF5lLo7vlsq2OJIekze.Oape4yFM6hMKyaHDnidiqnHZTpehiv UZMeEGrjE5Yh_hbVYkzm2zkNBIvvyGd6FxobPL9mOCAYyWF2pxm4_k7WPyxSsQjri8b2IrlW6nwD iPQ162e4Br.CZ0Qp.f_sv.9KFRoo0wuTXnF06zpQ1IizIHYHifsxW5038GGYwbrYUVyDeJFVzZhu sS4H2LipL4JKf5EObrcsnaeAULy2KSfFVN2XKwBQs3zWWRcgzN80myosbUkywaib6lZL9aFgg5gp t5z5dx_5axtS449X154_YR7k50lmHlm806j.279g0TDfPBa2NfvrZrHTVXwiJc836bjjVL7hA99z uqpkQlXxsLBRXM2gf1oB4SxAELyaIiuskROt9UPL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zQCPrOUpRT1cjeT9MlRjEr34xR1ZF w8Zxrk1C37o1iF43gObCQJiBkXueO6BGU7Oxp6DEhFksEsEGDbOC5Re_7w7ICD88MxYJAQ_c5A03 zjSPmw1fNvLU6Nb_YvyLwz3kmOJxWKTbUx9Vk.h1POl4cP1q9iIHvzj5iNKKPlVFYOEbtHS8rqAo wbT7808YP7FvMLQyqSTf2oKBakmqIfBoh2ImOZQyrf7E6HLquYlJO5WrzUYidUfG.Abl87V0nQEL y7m7ERflYL6KMr9ltLJI1wmObRG9JjaBWTNyeYxkFcIoVsJQj56d05YTD1.f0BxGzdjMCWl7aHlj b.LZGzK3KsEgBTHi11Q7Srf.yPBX70hpS9xMA_2z4geR9A2Q0BJLlXPWu_jc7Exidg3BDqG8MEIJ 8heWatTwr3hMDIkqAdPZEsn4Xr0TgHKgDxfReuGiyqhYYqduYD5spHyRriMxChenoNd5YMQo3JcM _3VkDwR32MxMkDGpM7rQMcQ.rIrPVw1yNEax5EX7ehIFALe4US09eL6KApkq6aFC3NG82NxGkBzW MyraOootDrXtYsXwHWB27odhiBzbeIWF_QUb5wtMlNv6SUjZ7xsUL2ZfDk82aaF6sHtsAybBpjoL tfNXn2xRy8VcdBZ6jHINZvg31.njyMR5m7DsM58ojJlyLjNHQ8dT0LdGO_soRma4fKZJ9Cn0d3R6 YWk2lA2MU X-Sonic-MF: X-Sonic-ID: 1cf12465-d349-494f-aff8-fab6723e8022 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Wed, 13 Mar 2024 06:57:42 +0000 Received: by hermes--production-gq1-5c57879fdf-8lthq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1eaacaee147051373af0c4ed0df85ee7; Wed, 13 Mar 2024 06:57:40 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: 4-core arm armv7-package-building configuration notes, on RPi4B (aarch64) and OrangePi+2ed (armv7), poudriere-devel based Message-Id: <9D19D8E3-5B72-4006-9296-C7D74E670A12@yahoo.com> Date: Tue, 12 Mar 2024 23:57:29 -0700 Cc: Nuno Teixeira To: FreeBSD Mailing List , FreeBSD ARM List X-Mailer: Apple Mail (2.3774.400.31) References: <9D19D8E3-5B72-4006-9296-C7D74E670A12.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.91 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.91)[-0.908]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.82:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.82:from] X-Rspamd-Queue-Id: 4TvhCr4NZQz4RCx This note's structure: 1st: Package-build time frame summaries. (But I note some hardware points that are repeated later as well.) 2nd: Configuration points common to both RPi4B and OrangePi+2ed = contexts. 3rd: Configuration points unique to the RPi4B context. 4th: Configuration points unique to the OrangePi+2ed context. 1st: Package-build time Summaries follow. (Note: the detail order of package builds is not the same.) (Examples are visiable in these summaries.) RPi4B: cortex-a72 (aarch64) with cortex-a7 (armv7) support, 2 GHz = (overclocked), 8 GiBytes RAM, USB3 [00:25:32] [01] [00:13:33] Finished lang/perl5.36 | perl5-5.36.3_1: = Success [01:58:13] [02] [00:44:25] Finished devel/icu | icu-74.2,1: Success [03:14:00] [02] [00:21:28] Finished lang/ruby31 | ruby-3.1.4_1,1: = Success [03:33:51] [01] [02:21:22] Finished devel/cmake-core | = cmake-core-3.28.3: Success [23:12:47] [02] [19:06:01] Finished lang/rust | rust-1.76.0: Success [1D:00:14:46] [02] [00:55:46] Finished devel/binutils@native | = binutils-2.40_5,1: Success (Note: start of visible ordering differences:) [1D:03:07:32] [02] [00:58:03] Finished devel/arm-none-eabi-gcc | = arm-none-eabi-gcc-11.3.0_3: Success [1D:03:42:09] [01] [1D:00:08:13] Finished devel/llvm18@default | = llvm18-18.1.0.r3: Success [1D:04:45:14] [02] [01:35:29] Finished lang/gcc13 | gcc13-13.2.0_4: = Success [1D:05:21:43] [01] [01:39:13] Finished devel/boost-libs | = boost-libs-1.84.0: Success [1D:05:43:24] [01] [00:21:33] Finished textproc/source-highlight | = source-highlight-3.1.9_9: Success [1D:05:47:01] [02] [00:44:22] Finished devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-11.3.0_3: Success [1D:07:23:25] [02] [01:21:04] Finished devel/gdb@py39 | gdb-14.1_2: = Success [1D:07:58:37] [01] [01:19:55] Finished devel/freebsd-gcc13@armv7 | = armv7-gcc13-13.2.0_1: Success [1D:07:58:43] Stopping 2 builders [main-CA7-default] [2024-03-11_15h30m14s] [committing] Queued: 265 = Built: 265 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 0 = Time: 1D:07:58:46 Note: 4364Mi MaxObs(Act+Wir+Lndry+SwapUsed) ("MaxObs": short for = "Maximum Observed") Note: SwapUsed maximum: 0 (none used). So, for an 8 GiByte RAM RPI4B, RAM+SWAP configured to be 38 GiBytes or = so: Estmate: 38.0 GiBytes/4.3 GiBytes approx.=3D=3D 8.8 Result: Lots of margin for builds that use more RAM+SWAP. So, for an 4 GiByte RAM RPI4B, RAM+SWAP configured to be 18 GiBytes or = so: Estimate: 18.0 GiBytes/4.3 GiBytes approx.=3D=3D 4.1 Result: Also lots of margin for builds that use more RAM+SWAP. OrangePi+2ed: cortex-a7 armv7, 1GHz, 4 cores, 2 GiBytes RAM, USB2: [01:51:31] [01] [01:00:07] Finished lang/perl5.36 | perl5-5.36.3_1: = Success [08:55:35] [02] [03:08:09] Finished devel/icu | icu-74.2,1: Success [13:17:38] [02] [01:28:32] Finished lang/ruby31 | ruby-3.1.4_1,1: = Success [14:17:44] [01] [09:20:55] Finished devel/cmake-core | = cmake-core-3.28.3: Success [4D:01:03:43] [02] [3D:08:48:53] Finished lang/rust | rust-1.76.0: = Success [4D:06:26:24] [02] [03:09:35] Finished devel/binutils@native | = binutils-2.40_5,1: Success (Note: start of visible ordering differences:) [4D:14:54:31] [02] [03:38:55] Finished devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-11.3.0_3: Success [4D:16:13:00] [01] [4D:01:55:03] Finished devel/llvm18@default | = llvm18-18.1.0.r3: Success [4D:18:05:58] [02] [03:11:00] Finished devel/arm-none-eabi-gcc | = arm-none-eabi-gcc-11.3.0_3: Success [4D:23:00:13] [01] [06:46:06] Finished devel/boost-libs | = boost-libs-1.84.0: Success [5D:00:16:39] [01] [01:15:53] Finished textproc/source-highlight | = source-highlight-3.1.9_9: Success [5D:01:17:24] [02] [07:10:52] Finished lang/gcc13 | gcc13-13.2.0_4: = Success [5D:09:38:14] [01] [05:56:48] Finished devel/freebsd-gcc13@armv7 | = armv7-gcc13-13.2.0_1: Success [5D:10:18:58] [02] [05:44:02] Finished devel/gdb@py39 | gdb-14.1_2: = Success [5D:10:31:56] Stopping 2 builders [main-CA7-default] [2024-03-06_03h15m10s] [committing] Queued: 265 = Built: 265 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 0 = Time: 5D:10:31:55 (So, a little over 4 days longer than the RPi4B example above.) Note: 2794Mi MaxObs(Act+Wir+Lndry+SwapUsed) ("MaxObs": short for = "Maximum Observed") 2nd: Configuration points common to both the RPi4B and the OrangePi+2ed contexts. ports-mgmt/poudriere-devel is used to build the packages. devel/llvm18 options: using BE_NATIVE and omitting MLIR. (What I normally build for armv7 and aarch64 targetting.) Also, ports-mgmt/poudriere-devel omits the QEMU option, as is normal for me. 265 packages are built, including pkg. It is the same 265 pacakges across contexts. (The order of the builds does vary.) /usr/local/etc/poudriere.conf has . . . NO_ZFS=3Dyes PARALLEL_JOBS=3D2 ALLOW_MAKE_JOBS=3Dyes MAX_EXECUTION_TIME=3D432000 NOHANG_TIME=3D432000 MAX_EXECUTION_TIME_EXTRACT=3D14400 MAX_EXECUTION_TIME_INSTALL=3D14400 MAX_EXECUTION_TIME_PACKAGE=3D57600 MAX_EXECUTION_TIME_DEINSTALL=3D14400 NOTE: MAKE_JOBS_NUMBER_LIMIT is used to constrain what ALLOW_MAKE_JOBS does but is not set the same across the contexts. /etc/fstab does not specify any tmpfs use or the like: avoids competing for RAM+SWAP. poudriere armv7 jail worlds are duplicates of each other across the different media. Those worlds are from a personal buildworld based on using -mcpu=3Dcortex-a7 for the code generation. The package builds also use that. /boot/loader.conf has . . . # Delay when persistent low free RAM leads to # Out Of Memory killing of processes: vm.pageout_oom_seq=3D120 Heatsinks and fans for keeping things cool over the sustained build activity. 3rd: Configuration points unique to the RPi4B context. /usr/local/etc/poudriere.conf has . . . USE_TMPFS=3D"data" (Based on the larger RAM and RAM+SWAP and that it does not grow to be huge for the likes of lang/rust .) /usr/local/etc/poudriere.d/make.conf has . . . MAKE_JOBS_NUMBER_LIMIT=3D3 (Based on the larger RAM and RAM+SWAP.) This does mean that the 3 load averages can be 6+ at times on the 4 hardware thread system while both ports being built are respecting the limit. Some ports do not fully respect the limit the whole time. This can make build-times a somewhat messier comparison than one might hope across the contexts. But for the specifics here, things should be clear enough. RAM =3D=3D 8 GiBytes RAM+SWAP =3D=3D 38 GiBytes (Note aarch64 allows a larger RAM multiplier limit without warning of potential swap-related mistuning: "total configured swap (? pages) exceeds maximum recommended amount (? pages)" with "increase kern.maxswzone or reduce amount of swap".) 5.1V 3.5A power supply, so a little extra margin for current. /boot/efi/config.txt has: over_voltage=3D6 arm_freq=3D2000 sdram_freq_min=3D3200 force_turbo=3D1 (Reliable operation, with margin, on the mix of v1.1, v1.4, and v1.5 RPi4B's that I have access to, 8 total.) So: 2 GHz overclocking, using a fixed rate. USB3 media: U2 Optane 960 GB media via a powered USB3 adaptor. Kernel has: "arm64: improve UVA layout for 32bit processes" ( main's 967022aa5aa6 ). So an armv7 process can be somewhat over 3 GiBytes for its address space. Boot aarch64 env: a PkgBase world and kernel.GENERIC-NODEBUG pair. FYI: # uname -apKU FreeBSD aarch64-main-pkgs 15.0-CURRENT FreeBSD 15.0-CURRENT = main-n268514-61b88a230bac GENERIC-NODEBUG arm64 aarch64 1500014 1500014 4th: Configuration points unique to the OrangePi+2ed context. /usr/local/etc/poudriere.conf has . . . USE_TMPFS=3Dno (Based on the smaller RAM --and smaller RAM+SWAP for avoiding potential-mistuning notices.) /usr/local/etc/poudriere.d/make.conf has . . . MAKE_JOBS_NUMBER_LIMIT=3D2 (Based on the smaller RAM --and smaller RAM+SWAP for avoiding potential-mistuning notices-- but wanting to still have margin for bigger peak RAM+SWAP use than the example happens to do.) RAM =3D=3D 2 GiBytes RAM+SWAP =3D=3D 5.6 GiBytes (Note armv7 has a smaller RAM multiplier limit without warning of potential swap-related mistuning: "total configured swap (? pages) exceeds maximum recommended amount (? pages)" with "increase kern.maxswzone or reduce amount of swap".) In /etc/rc.conf I have: if [ "`sysctl -i -n hw.fdt.model`" =3D=3D "Xunlong Orange Pi Plus 2E" ]; = then sysctl dev.cpu.0.freq=3D1008 > /dev/null fi In other words: a fixed 1GHz or so clock rate is used. USB2 media: Actually USB3 media that also supports USB2 use. 1 TB Samsung Touch T7 (NVMe based) via a powered hub, a USB3-capable one. Side note: I've no clue how to judge any tradeoff consequences for "increase kern.maxswzone" for judging reasonableness of such an action. =3D=3D=3D Mark Millard marklmi at yahoo.com