From nobody Fri Jan 28 18:56:32 2022 X-Original-To: freebsd-arm@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 2F1A91979CBA for ; Fri, 28 Jan 2022 18:56:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-20.consmr.mail.gq1.yahoo.com (sonic317-20.consmr.mail.gq1.yahoo.com [98.137.66.146]) (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 4JlmsB14FYz58LB for ; Fri, 28 Jan 2022 18:56:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643396198; bh=uTq9MPatWE2d+XZOjPKq9L+1Ov1xCpuao3K+nlUeJJ4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=G1nuUexWFLJkBXeQr7oVri2u3xVqzML82/f+/A1xJAkQ5YQAYgSSCuofQvbesD4uDUuZlapjFcEmlZr1fts2moB/VxjvbZHsurZenzQ+0VSY3GGVc3wfoojxFt0A26mysfpQlfz3aTRKL9k4ElrkMCfE9J2+TY3R/S9tzwLpZ1TvlNoxHtgDprYQhzU7mtDFaHkaqsfdsdK2fDX3cr/ntogazSa57VDMaoxLGEOcgYaUli2AXaDfvuxnDhIGtNJau5Vtcs9vWlwB6ictYRcHuyc3PFZV51g90CGBuZsE/ALWHSL8T43+niIei6Nk99OrgmN3rm2OkUBYWTXa/Zu95g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643396198; bh=blLnzIAGZj4U+Wacb5r+b/5SE+cPHsW3BNG37mzEG/c=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=guwq/deB0dINWFMDAg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ssxDD ipQHYgQLONNYEXkt2bu_ASQpQ1YtjfvBaBO06sdg1tLyCZnrxA_BCqvuwEbL6R.NFvha_BCp9ds_ .R17H08wIk.jf3enacGPF5PONbPNAJkgZ38aSFBQwkc6brw9r5BcR5Nr_bLDijh5N8PkE4S1OnHl Xa6_imyHcAsNXb0oHULD20Iagjz0f_IcjGD_OUFT4AA9S0DjJaEnHEf3CCIzDL4LxXXngPhQwXU3 xsqSSIYRjNkzgLKDP.losPH3ZHQZULnacYdUcrUoR6EyQySvN3w3JXOmDoAlIS1pQ.qmtCTn7q1C f3gAIorHlt8yoYo4DaXwWu8MR7iBn3oY10yC24PNtMcSDZX1rLXq.J2WZgNx07EENY_g3jUaxqzG YG0oxv_drpkGb9C_6xG_JlXSev_wKksK19LeFDntfCRILpVXY6M7QVj83jfDRFpFXH9oOsBPaJWF 5vfcYgsAWRWSkr.HVN9HUSeSUxsIeIlSvF.QHPU5ennpQSEcYZU99yAIC.Bd2Cy5eNYxrOSPHHT7 LBdHcHi8kUYLD8ZLkOIc- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Fri, 28 Jan 2022 18:56:38 +0000 Received: by kubenode537.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 078ba4d23577297d04d538d3420ca9ac; Fri, 28 Jan 2022 18:56:35 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: devel/llvm13 failed to reclaim memory on 8 GB Pi4 running -current [UFS context: used the whole swap space too] From: Mark Millard In-Reply-To: <20220128161545.GA56253@www.zefox.net> Date: Fri, 28 Jan 2022 10:56:32 -0800 Cc: Free BSD Content-Transfer-Encoding: 7bit Message-Id: <1A92F2FF-29C3-4CBE-B7C3-34C9CD35A75E@yahoo.com> References: <2C7E741F-4703-4E41-93FE-72E1F16B60E2@yahoo.com> <20220127214801.GA51710@www.zefox.net> <5E861D46-128A-4E09-A3CF-736195163B17@yahoo.com> <20220127233048.GA51951@www.zefox.net> <6528ED25-A3C6-4277-B951-1F58ADA2D803@yahoo.com> <10B4E2F0-6219-4674-875F-A7B01CA6671C@yahoo.com> <54CD0806-3902-4B9C-AA30-5ED003DE4D41@yahoo.com> <9771EB33-037E-403E-8A77-7E8E98DCF375@yahoo.com> <20220128161545.GA56253@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JlmsB14FYz58LB X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=G1nuUexW; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; 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/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.146:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.146:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 2369 Lines: 77 On 2022-Jan-28, at 08:15, bob prohaska wrote: > On Thu, Jan 27, 2022 at 11:40:46PM -0800, Mark Millard wrote: > [massive edit for readability] > >>>>> What are you using for each of: >>>>> vm.pageout_oom_seq ? >>>>> vm.pfault_oom_attempts ? >>>>> vm.pfault_oom_wait ? > > For the case of devel/llvm13 (Pi4, -current, make) defaults. > Those seem to be: > vm.pageout_oom_seq: 12 > vm.pfault_oom_attempts: 3 > vm.pfault_oom_wait: 10 > With 8 GB RAM I didn't anticipate memory problems 8-( Well, having a swap space suggests otherwise. On these small board computers, for doing what you do, if you think it appropriate to have a swap space, you probably also want at least something like: vm.pageout_oom_seq=120 This was the original setting that made the difference for your builds, back when Mark Johnston first helped use get buildworld buildkernel working on the arm SBCs. This would make it try more before it classifies the context as having the "failed to reclaim memory" condition, including when the swap is not full. Getting what is now correctly labeled as "failed to reclaim memory" before swap was full was the original problem as I remember. > For the case of practical interest (Pi3, stable/13, buildworld): > vm.pageout_oom_seq: 4096 > vm.pfault_oom_attempts: 20 > vm.pfault_oom_wait: 10 > > It appears I should increase the latter two for starters. vm.pfault_oom_attempts and vm.pfault_oom_wait may be related to what the consequences are assocaited for your indefinite wait buffer notices. I'm unsure of specifics for adjusting these as I've been able to fit in my RAM+SWAP configurations and could use vm.pfault_oom_attempts=-1 validly. Plus, I'm not using spinning rust. So I've never explored setting this pair to non-defaults. > Can the Fortran feature be turned off in buildworld? buildworld does not build devel/llvm13 and does not build flang. flang is not part of FreeBSD and so FreeBSD's llvm materials are not configured to build flang. > That's the troublemaker for me. Not for buildworld. But, it is for building devel/llvm13 . I've not dealt with setting up a 2 GiByte swap test context for a RPi3B. I probably will not do so until after I'm done doing these devel/llvm13 tests with flang involved. (I normally have flang turned off in the devel/llvm13 options.) === Mark Millard marklmi at yahoo.com