From owner-freebsd-current@freebsd.org Tue Jan 28 19:49:04 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0FAA523A0FC for ; Tue, 28 Jan 2020 19:49:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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 486cct497Wz4SC0 for ; Tue, 28 Jan 2020 19:49:02 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: CplGSl8VM1laD9n.E3F.9VA0RPkFc8vcVYCr_WPKBA2mZ6peK_IBjn8an9dwii2 3ba0IGwkQOepi0Xh6p11hslDuY3nNmN1SFymlohTD7aGa6y4HSzFyYSBFDUG9zqBlw0TPVPSzUlS ihsEwuIJ2dvWbVqZlf9nUy5yvGznj8dPAQWLTIiK1X6Taxd2ZfTi6ImdpcIuDMvLnDrVrwfxlBkW MPoNzaUzKjj9FXZoAPswhvcaWOLmgeauP9xJe8TATdQ4W4TCIa4aTfXxzW1FTW8UA1HANi26Jsez 75vITpEmo4z9FzgvBEekjYd.xgsRERMps7jTw.mc2u5sOlmYLtcBWrheokMk7I0inNU2WbiZ0Qcq h9V8UAM74OxSGt10s_BsvcltJ.aoMYFEQPzlh7T5XVTz6md2_w4tOgpoE.6EXa1Dyo7g9F8ALEV0 VCp3NM8JSgHQf66i0pzkYXNI6snzYmpljtM2D43mRninnyUbxqSae51eI9cbSC5VfeDJ2hV_0gWs lZzCYeu0KmiM2WT7ePXbyWbJluAHg3yuzEP2RGSAkQ8XAtEE_exrMAWcIAgDLlH._Z1rGzvAAsZk 7.7SvxqcRXWPMAMp7nyb4Djnrs3z..DDjpXQUFJ0R0gkextAPQpQpxxyKGM2s3MGZBqkesI.38V8 iFtwjNDjssEb272OYji5Mo0ys1GHTCmg8s8marV8en6mT1nkO05rr2edDBEKtVBeJfpemRuvLyNI Vee7Yp6YCorsMcvCvaXG4JdEcg3_442AK7rzdovFUP7U9L_0z9IVQWW9SCqbsSe.Zv7xkHZOAZ6L Ls_md3Y9RlNvzEUod2bEsree9l2WZJFGRHk_FtV00RhqEMacEGVckGgR4OiIhlgtY9u2HeupIsBU ACvaFAvmDpdUrxM.Mw_9EgJgabGFFhe_34w2tZP6m7uBDCp1jz8k7W.EFWlcxm9uLfCyH_GjJXJ2 NyHhkUBYso8PgO1LdKcmQEUMDRvvwyt6.j8qIEpkhuQY16XwIziBC8ZNpKeurXHuSXWTCK5yWQyx N7DHsWdpwgsb2ItvWg9JhqkSQmSHzICxgnBWASsZb_SwpbP_zf.hLIFzTPNjhvZ2LDUh7wWkKP0n H4P5M5dtT_XsVeN7E3zsHf.a7J2e_PK.pS4tOEGvL_eDcB.0t_gXS7uFmegh5.O7kKxP2Se8f.Y2 5cCyQ6KHAg1ZhV6uUfAHAqVB39jxdBoXzyUncxzFAgBeiAE_YaE7FWo.yB3D2StqO4veUbFJHx31 dSiMYOj8stxgn0iR.UsPT2sKmd2vFNB9r8FydvqfTXrYMj8xDf8QLhU4F3qk7SHVcoIa6275A.AM jYHFXM5RJBYh5f7QkfIBdXMVDBt0TMIAAcR963JOQnJPeenu9J_u9CIgl1pRO13YwWq7ub6JATgv JAW4zGBU.5wiRr8wLuZmJ.F1CS1NrKa0fs2DmuPJl Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Tue, 28 Jan 2020 19:49:00 +0000 Received: by smtp401.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID dfd6d62b23afd33023b5f2eba22ea6e5; Tue, 28 Jan 2020 19:48:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: After update to r357104 build of poudriere jail fails with 'out of swap space' From: Mark Millard In-Reply-To: <4682F012-E3C5-4B49-8099-659EBCB7B585@cschubert.com> Date: Tue, 28 Jan 2020 11:48:55 -0800 Cc: "Rodney W. Grimes" , sgk@troutmask.apl.washington.edu, freebsd-current@freebsd.org, yasu@utahime.org Content-Transfer-Encoding: quoted-printable Message-Id: <235BECA5-0086-48DF-90F8-3AC24CA86DA3@yahoo.com> References: <202001261745.00QHjkuW044006@gndrsh.dnsmgr.net> <202001271309.00RD96nr005876@slippy.cwsent.com> <202001272048.00RKmiZs006726@slippy.cwsent.com> <4682F012-E3C5-4B49-8099-659EBCB7B585@cschubert.com> To: Cy Schubert X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 486cct497Wz4SC0 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.79 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.44)[-0.437,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (3.63), ipnet: 98.137.64.0/21(0.84), asn: 36647(0.67), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.15)[0.148,0]; RCVD_IN_DNSWL_NONE(0.00)[205.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[205.69.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jan 2020 19:49:04 -0000 On 2020-Jan-28, at 11:33, Cy Schubert = wrote: > On January 27, 2020 2:25:59 PM PST, Mark Millard = wrote: >> . . . >>=20 >> It would be nice to find out what category of issue in the kernel >> is driving the OOM kills for your 5GB context with = MAKE_JOBS_NUMBER=3D4. >> Too bad the first kill does not report a backtrace spanning the >> code choosing to do the kill (or otherwise report the type of issue >> leading the the kill). >>=20 >> Your is consistent with the small arm board folks reporting that >> recently >> contexts that were doing buildworld and the like fine under somewhat >> older kernels have started getting OOM kills, despite the two = settings. >>=20 >> At the moment I'm not sure how to find the category(s) of issue(s) = that >> is(are) driving these OOM kills. >>=20 >> Thanks for reporting what settings you were using. >>=20 >> . . . >=20 > I've been able to reproduce the problem at $JOB in a Virtualbox VM = with 1 vCPU, 1.5 GB vRAM, and 2 GB swap building graphics/graphviz: cc = killed out of swap space. The killed cc had an address space of ~ 500 = MB, using only 43 MB of the 2 GB swap. Free space is exhausted but swap = used never exceeds tens of MB. Doubling the swap to 4 GB had no effect. = The VM doesn't use ZFS. >=20 > This appears recent. >=20 head -r357026 turned some code that previously avoided vm_pageout_oom(VM_OOM_MEM_PF) into code that always does it for the conditions that should avoid the call. In part, this disabled what we were doing vm.pfault_oom_attempts=3D"-1" for: that case now always kills. Head -r357025 is the last version to avoid the call (until this is fixed). =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)