From nobody Thu Sep 4 01:50:22 2025 X-Original-To: freebsd-pkgbase@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 4cHMrN6YXMz66YZV for ; Thu, 04 Sep 2025 01:50:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (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 4cHMrN3XTVz3DcD for ; Thu, 04 Sep 2025 01:50:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=VwJ9njml; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756950638; bh=8w8M+t7q8Zv8jhtEep7sREkvT3zGBd0A814XAPdLWwM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=VwJ9njmlKzHTs5kZG0ShbyEUNHzXfdm1DsQkcb9entLvj0SdurFHuvuk0Z0GKSD3i9JlnfWR9A1dJBgQDJKzxw06gYV3hWczxa1IEYDz61NKVFNgoMyTnPjHmRgIb4gJ7bSTZqRbMwGAEEsX2pXUyyXAiVu/4bNhbe4zX7b2otiY0lT1pcOt0eGz/4RNBr5gZ3FbHrrTX+lvft4YQZn5ZF6r0rGDPu2PbRbXL4vtFeLlTPMeTe28pT8Yt6PcZiFXA1ZNKeq2lkCkJL1QB+/i6eoReQt455dSEgdL+AnCZVfqnjV7z2asRNGquGuEqvYa1G6L1UaDGOhdSKYRjvVpCQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756950638; bh=8qzl0cmQFV5/E3WuMzeyN/IOcU39RHK2UahYPXGHdCN=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=KTC+HWMgvc3nWU7F/lAStihgr7ahJRg/PPoHJhC2Qx5kauDUNEsnyysaGJrONclwsHLKf7nSDH882gslKz3rL8FXu1P45dQnKm3mgL9+ZgpB+zefaDE+GUu/PeMXThvoiOCX79Cx22i9aRTiNQRK2Tjnp/rD7WMK1ilg/EEaIlSOSPaOPmmqSffdlXpnL6BwnN9OBqpbVmiCyvQXnA2Y3CeGNjbEo1MkGsytIkVYwLGPl9WRr/r0g6/KG/7NyKhnJOzSjposwDlbP+FkKzwpP3J3kZh3cFGXzTqs4JgQBC9BifdNvCeLuDp9u9e6nz1y5AdeKT1Rof+Nb22oGE3A5g== X-YMail-OSG: ukEnHcIVM1mrUh3anot8oJc.u0_ZCl9DvBCdRTQYRjxa3IEk0xPHmkAfZFqgaUL vS_dmfND4YzyU2Ul6oTUA1Gfj7.CgZedYXRuSmGYuUlR5tubwFPHXjbMCP4sQEWDqMskV1po03H0 u_Jj6CZ.pRl284Qxn8XALMKpuUx28fWCWepLQg7Gz1iO2F8Z3ZZD8L6ZWXprc8oK3F3OtACsxATf D13emCu1q.nJqZHluLGEAN11hvi4UCDiLYRmyLEL7oO_ih.hmFaoDEl9i6LT9CWGySx3zii8jsss fP5HEJYpJPC5pmv9i_eeHN2efIW14o_Th6_SHqXpPDykGS25FK4iLRCb8R7oNJl3.bn6HS.Bs.np O3evHw7c0yIG9xKKR7dIQ1TE58GJD1PzYrx8petJxx87OJpUW14i38FyOZB674_msPw4H3BJicX8 Ie942Mz6qDfe8aPSgI9vyyEsOoKTuM69FdRtvfIEe5.hkgvnqg7E.RizN_QwSbjJi6Zce6yM.f_K kgjkT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FtjaQ87bZa_TjXYYKO9Yv7ouO_AfbDw.7ngJ6xS52n1igZl73K1zA7VgBQpUCB8DP z4HwD3Qz9R20kgtQmhOSJL_tAC63g_F0E2KIIOJOfRfqxblybqibhyT8kAwtDhyBY9HFM6E0xL00 K5NLEE7Ke2ZKtj0xYYQH0TtG8tMnqa29nYHeoUrti.kdWEVsNOUNXAo7caMl5MpOGmThuV93BsJs 7Zzf.cStDHuOg7Gs6pxJEAiEHAx9SJIhGFPnxcO0ikAfoUFoTGgX2WPqAzga_UPgzUyxzvhV29Kx 0vaywt2BJIq0utd20XE7cAj_DhOtJeXjddF1vv0.IenvFmjUW37X.O4klsCa2yENI3EIriuFZKKx 6lbv2gltwe2JCaRVN6JRdpsC8Q_BVv8oxeUqu0z1VDnrihl5CfVxDEcrX49.4NApfvRmmt9IYmh5 Mz62YAs8E9WBqCrnoys5Z3VOxyhp.ETr6ORNJgCh0yo0HVCIz3Gz_7KT71ejIZFV.vRDAWA_RnJH QWEayhQOPmyJuYMxs6HrKI2VfDBRkRz_ekkEKDv99sWlpGrVcsghywhKy_Mwh9VfVtLJ7CUyVVEv 9Pqt8CLeMZedLyfqvqCjl1mTATU9z.sca1LjSSRHpg0G5YBRQK7bqo3DIN7Wrtt8dc9FgbJUH4U3 mVtakFhVbDmV9ODw.r.xJ19boa9V.Go7DdP21cBkPabtOebKT7smXvo.i4jFbLnCjBZ3CZ.TyK4F J6A-- X-Sonic-MF: X-Sonic-ID: 0c024f69-c8a0-4876-aa04-4ddd40f6317d Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Thu, 4 Sep 2025 01:50:38 +0000 Received: by hermes--production-gq1-7bfc77444d-5w8hd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c316c7751dcabb938ea05c28bd1aea1b; Thu, 04 Sep 2025 01:50:33 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: pkg upgrade, vm.pageout_oom_seq: swap off: UFS, ZFS From: Mark Millard In-Reply-To: <36F5A8E1-7F72-48C0-A8D7-428E91488B70@yahoo.com> Date: Wed, 3 Sep 2025 18:50:22 -0700 Cc: freebsd-pkg@freebsd.org, freebsd-pkgbase@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0dbf8c95-7697-4887-a890-335c3ccd80f1@gmail.com> <29ff7f7e-12ef-4d10-8ca4-15ae35ce6bae@gmail.com> <19251E67-BC92-4D71-9E71-6C7546A46D8C@yahoo.com> <9300201D-9D53-449B-9F0A-DFF6194B2830@yahoo.com> <6d1606ac-8ad0-4f15-96c7-30c6f50ca9b9@gmail.com> <73877048-A3B4-4920-AC92-A8C7A4FF83B5@yahoo.com> <2f455675-609b-40b5-9dab-5f006156bac6@gmail.com> <36F5A8E1-7F72-48C0-A8D7-428E91488B70@yahoo.com> To: Graham Perrin X-Mailer: Apple Mail (2.3826.700.81) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; 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]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-pkgbase@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.206:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.206:from] X-Rspamd-Queue-Id: 4cHMrN3XTVz3DcD On Sep 3, 2025, at 17:53, Mark Millard wrote: >=20 > On Sep 3, 2025, at 17:14, Graham Perrin = wrote: >=20 >> On 02/09/2025 19:19, Mark Millard wrote: >>=20 >>> On Aug 31, 2025, at 12:01, Graham Perrin = wrote: >>>=20 >>>> =E2=80=A6 >>> The notes here are about the following sequence of 4 commands: >>>=20 >>>> pkg install -Fy firefox gitup htop hw-probe kde lsblk lynx nano = pciutils plasma6-sddm-kcm roxterm sddm stressdisk uclcmd usbutils = virtualbox-ose-additions xfce xorg >>>> pkg install -Uy firefox gitup htop hw-probe kde lsblk lynx nano = pciutils plasma6-sddm-kcm roxterm sddm stressdisk uclcmd usbutils = virtualbox-ose-additions xfce xorg >>>> pkg upgrade -fFqy >>>> pkg upgrade -fUy >>> In a 14.3-Stable amd64 UFS context the above command sequence: >>>=20 >>> 1) Will probably OOM on a system with 1 GiByte of RAM but no swap = space, >>> even for the first install command. >>>=20 >>> 2) The sequence of 4 commands used (RAM+SWAP): >>> 1024 MiBytes + 2312 MiBytes (observed maximum) >>> (So between 3 and 4 GiBytes of RAM+SWAP overall.) >>>=20 >>> 3) So will OOM on a system with 2 GiByte of RAM but no swap space, >>> overall. >>>=20 >>> =E2=80=A6 >=20 > First I'll note: >=20 > ports-mgmt/pkg-devel now has a commit that includes: "add: backout > support for provides/requires" that is described with: "Performance > penalty is still to big, a new approach with no performance penalty > will be tested later" on the upstream githib. >=20 > This may make current testing irrelevant relative to the future. >=20 >> Here, with 3 G, fast storage, and swap off: UFS and ZFS seemed much = the same. >>=20 >> RELEASE, quarterly. >>=20 >>=20 >> UFS (dmesg: 2928 MB avail memory) >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> Fourth command (pkg upgrade -fUy). >>=20 >> First run failed. vm.pageout_oom_seq=3D120 >=20 > Not good news for folks with small arm boards > or the like: unreliable. >=20 >> Second and third runs (not consecutive to the first): success. For = the third run, I reduced vm.pageout_oom_seq to its default (12). >=20 > You do not report observations of how large the > Swap Used got to be for any of your runs, failed > or working ones. Sorry for basing the Swap Used notes on an incompletely expressed thought --vastly unexpressed in fact. Having RAM+SWAP at a given figure, say 3072 MiBytes, leads to seeing what memory pressure does based on how much RAM+MaxObserveredSwapUsed ends up being (if RAM is small enough that SWAP ends up used to some non-trivial degree such that InAct ends up fairly small and likely dirty pages). This is tied to largely eliminating Clean InAct pages before using SWAP fairly generally. (SWAP gets dirty pages.) It is difficult to get roughly similar information absent the SWAP being involved and the system trying to avoid most unnecessary use of it. >> ZFS (dmesg: 2920 MB avail memory) >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> Four consecutive runs of the fourth command. >>=20 >> Two runs with vm.pageout_oom_seq=3D120: success. Third and fourth = runs with vm.pageout_oom_seq=3D12: >>=20 >> - the third run failed almost immediately, before step 1 of 2601 >>=20 >> - the fourth run succeeded. >=20 > Also unreliable. No Swap Used figures for this either. Again: Sorry for basing the Swap Used notes on an incompletely expressed thought. > It is not clear what runs might be "barely fit" vs. > what runs might be "lots of margin". Nor is there a > scale to the variability that you are reporting. >=20 > One possible (likely?) difference in your tests and mine > is what I reported about which base packages were installed > for my test context: all of them (534 or so if I remember > right), even the debug information. That contributes to what > the "pkg upgrade -fUy" activity is. >=20 > Another is that the test was based on booting and using > a USB3 memory stick SSD, not large U.2 or PCIe Optane > media or something else comparatively fast. =3D=3D=3D Mark Millard marklmi at yahoo.com