From nobody Sun Nov 03 03:48:26 2024 X-Original-To: freebsd-current@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 4Xh0vD71r0z5bg4Q for ; Sun, 03 Nov 2024 03:48:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.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 4Xh0vC72Pxz4qlq for ; Sun, 3 Nov 2024 03:48:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=NR3iSfHR; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730605718; bh=4kBVGV3cKGosoSgTGrNN9HD5w6e+eaD/roVArYIkHFo=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=NR3iSfHRB9QDB/+J6z56U8AVcGXGLKIfrC7rU2iZ+HLS3yhmbHNcy78BWVWuzNsWjpJX57NFUySABFR8dl67eyMfHM1qa8izkvMU4+IX8r/QCetQFauh7CVaNNEeV6PZKtzK27EEYg5/q7kaes5skMbBXF6e2xqvcpz3JjphN4jvOYiSLryjScQybWD19YSa8/jQF564pspst2aSOr2ZUROvWp5Vf0en80bxdXrXfI+IatUk4o9woKA1aLKFcVWRvgTpwbzfJB9Sq3E0IxoScq7x2SoW7o7QXvh90eFYcmId3akdP7FCGCT0JoRiN9M4woytMxvye4/ij+sJ56fEew== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730605718; bh=Jz43IGbvOTsEJ4NZI56MKUq3wtrx1Q81irVvZuIznO/=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=bcjF+SXALc9GHlKywS7bu4H0av+rzH3kH7LxBeuI8pmedfg3PCLQONFKRJ6bJQirGm+M7gSrEp64ruoUrnD9jl2Yd9Yn4RWm02JyTBuD8J7WTM5q8006yCxdLRXmXYw83wVM4fzUJWhpqDZ/+STvAvEak89zk2sdMasAcnT5koIGZgm0BCZljpoX1eDe3mMF0aWfwzvAwZF2AiC/DZHI9WiUWIM8mKPhNLTC6NExqMJC9TDKjgDucQsDErG5TEi2kLc0E4LPqWdPLAlCLWX+u1rEdWlYJHTVIaV1hOj4L9Tzrt0VUAqaOSVCRBTC34ePbdyVgqDhYgK/Qhy7zDBWgw== X-YMail-OSG: MiYN1pAVM1nEs44KwVmuSwqigDxBaWQfuVSAHFvz_u1FlnTt3n9fy5HwQJPFM4w MrulUQXUUvxNpDIIw7slmLwOLFQDIUy8ojrYEnEs67rULjFxEKvIQCOzKKotyUiq4X.mqbghzt0e 12KKM197ZYu8Ro6H6FS20BgnY.ez9xNiDffUa2XXidvx6R66vCCYREK.2vwJz6s8.FkrF11q.KgZ AHODQiK62T_g0iwyPxDLK7EVsLbwuTUAD4UMvTgyyhi96FdndI7IRV1k.JVncCaD0y2V0OFvH3pp DfQJX_xK9Gsvhq.ZdTlaDn52au27sk.Jfq3tMeMVaiQwL.SYLi.VG1NxU7nP4JvPB1NYIQSLwpdb huqjSlf2Pqyt_w7Hp18eChqXe7o9eMnBDHKIvvuEvY1uIwJmzzxllKuiVQNwoUNZ0YMKFrUmVsq_ z7uQP9eF0IakrKRPv3mM2vmZQzNhm3gaSjC22GVJ3Itu2rlFGGh8XXI4bavburKoFwcFvT22ihl9 dxJKL4CdrMJXVxg_AcNm.mBsNieEokQy144zqxLm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5aYhre12YRhzTpWlRhRU NvyLbZJ.BV_J7L2yl5Lt_Yz8tSLGZ3DOPHSMCyyo14XtD3T_fTZpRc3ZSgF.yTByEpw_QTwRVntM RJID7AdD6FGcTI67g6e.DgJdAK7fsqUyDLXd3IAtIaxlT9taVnW1zs41FgoXxLQbAcWe9tuk85Ym 9iG1Y.jOY3snFC4jyBPWoVj.4NpPSmKoUpKetCcQ8KZLVT2pqKOpBpnMtHP_PXcfPGgPI3DgGmmu 1FFOqez.jHbZ179B4q2jW9yBZJW7qE65_hvjf8wyDdm3RrBDq_eVUM8mHMnDRC5gkQueCkAzvmtb cgbrj_l7wNC_OEdqyLewII5Gnbnchug0mPoHO1_qqNZwvixJNfZ5aKelKrw_Z1OkwSiFdBZYn_Do APVEJJP6tC_GrnKrxeTzGnqgcJSpJX4rZBjRJ5v6iknkA0f7XD.P47ECIxvsbI3Iz_edM6YxSSse _h1.yYg3pFFAmfW6CwT0319VgYVfOcRekZ0rG2S547SDErYbua9qfFdxHG8MzfhAl_YyAn3Qe.nG DrKgm1iO5KN6Bx8Y6knNVjtmKko1SDkU5VOvu85pKh0zHGp5k0WX9g1Y4jKkpdlS4XGqOgmhY3BI NIYmeOBfFbrXcRPXisi0a3TvimQ-- X-Sonic-MF: X-Sonic-ID: a032a2c3-6e5c-4f40-b96c-68f4f3c426cd Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 3 Nov 2024 03:48:38 +0000 Received: by hermes--production-gq1-5dd4b47f46-xsxj6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 670a9eb5f244af130580eec2e42a0537; Sun, 03 Nov 2024 03:48:37 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: "iozone -w -i 1 -l 512 -r 4k -s 1g" against ZFS (without compression) can be a denial of service attack on a 32 GiByte RAM system Message-Id: <70D1C705-7DAB-4433-806F-44283A860B85@yahoo.com> Date: Sat, 2 Nov 2024 20:48:26 -0700 To: Current FreeBSD , FreeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3776.700.51) References: <70D1C705-7DAB-4433-806F-44283A860B85.ref@yahoo.com> X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; 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-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from] X-Rspamd-Queue-Id: 4Xh0vC72Pxz4qlq X-Spamd-Bar: --- See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277389#c42 for an example of loss of control of a system via the extensive OOM activity that resulted. The problem has been observed on both amd64 and aarch64: the original report was for amd64 and my activity was for aarch64. The original reporter had both 16 GiByte RAM and 32 GiByte RAM examples but first reported a 16 GiByte RAM context. My context had 32 GiBytes of RAM (8 FreeBSD cpus). The original report was against 14.0-RELEASE-p5. My activity is 15.0-CURRENT based. For reference for my recent re-test, it is based on a PkgBase kernel and world that reports: # uname -apKU FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT = main-n273174-8b2e7da70855 GENERIC-NODEBUG arm64 aarch64 1500026 1500026 8b2e7da70855 is from 2024-Oct-23: =E2=80=A2 git: 8b2e7da70855 - main - llvm19: permit incremental = builds from llvm18 Brooks Davis For reference: # ~/pkgbase-snapshot-list.sh Via pkg-static info -C -x '^FreeBSD-' . . . 352 FreeBSD-*-15.snap20241023235252 1 FreeBSD-*-15.snap20241022122410 1 FreeBSD-*-15.snap20241020224518 1 FreeBSD-*-15.snap20241020094723 7 FreeBSD-*-15.snap20241015203742 1 FreeBSD-*-15.snap20241015145839 1 FreeBSD-*-15.snap20241015120827 1 FreeBSD-*-15.snap20241014101436 34 FreeBSD-*-15.snap20241011184813 129 FreeBSD-*-15.snap20241009162208 Instead via /var/cache/pkg/*.snap*.pkg . . . 352 FreeBSD-*-15.snap20241023235252 1 FreeBSD-*-15.snap20241022122410 1 FreeBSD-*-15.snap20241020224518 1 FreeBSD-*-15.snap20241020094723 7 FreeBSD-*-15.snap20241015203742 1 FreeBSD-*-15.snap20241015145839 1 FreeBSD-*-15.snap20241015120827 1 FreeBSD-*-15.snap20241014101436 34 FreeBSD-*-15.snap20241011184813 129 FreeBSD-*-15.snap20241009162208 Notes: Prior initialization of the 512 iozone.DUMMY.* files involved was via the likes of: # iozone -i 0 -w -l 512 -+n -r 128k -s 1g and letting that run to completion. That had been done in a prior boot to avoid spending time on rebuilding the 512 files in later testing. My testing on an amd64 192 GiByte RAM system did not reproduce the problem, despite being well below the 512 GiBytes for the files. (32 FreeBSD cpus.) This context had Optane media via PCIe, not via USB3. This AMD 7950X3D context is far faster generally. =3D=3D=3D Mark Millard marklmi at yahoo.com