From owner-freebsd-arm@freebsd.org Sat Apr 24 15:17:56 2021 Return-Path: Delivered-To: freebsd-arm@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 C6BA5622ED8 for ; Sat, 24 Apr 2021 15:17:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-54.consmr.mail.gq1.yahoo.com (sonic315-54.consmr.mail.gq1.yahoo.com [98.137.65.30]) (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 4FSFCR6fQWz3HJn for ; Sat, 24 Apr 2021 15:17:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1619277473; bh=0BlShyADlsvXmZUL65RqiYqthbZl5xqgi8Q87wtwxy+=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=NPHPTgnJWr05TuclYAwmIHnS/nFtwYicY4YljlOR6xrB2SXZu2M6hPLBP9H3vzHjQCVhFtNp4yCDCfw+xE103S+r9r1lw4qbYqwHJtGu3aMr7LtUi71mDHvWz+54rNhAPdLebwfF6/j9A6jb3Y6Eo7Gl3DlawR+vdGGx4e1nX0NlsvCKBLruIeY15As5NYFS/3qAh50k6qOmc4SbeeDJOSbsZ2r4W73VyY2TCU6VOZ7eaNZqxMUGYmWTFDjfQoFmr+PIFn2wpG/XbuIYDK2MTJa7XssGLN0ZXSzMYH43QPgGaOuPuB6wfevFRoVAOqq+roBztgdC1q5249qGmFAgug== X-YMail-OSG: QAG2q1gVM1mOEvpDAt0NdnIhNr57ptqg5wZ1YQm4hAFHu01eQvzRlQFIK4lPxu8 L5XSntR9WEVKSSWHKltk0EVGPkGG_3Kq0ynalgRIirN_Ayvlp2B9UE9GjQ89lbmtEAsQ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5cCu_6hOY8gGwpjHpz9s76VzX6l_2GiRk6z6gS_QA0SDRM_4JJU6i VQy2zuE0BXZ_f3.NB8CdshwklTPiLtuGNlg81gKZs0Lslj2lGRxqwM3EIyfKkKoNLML_c9iygXBU lg6QbAqKwU_gS12v32GZMTTKkHFCJPeuZQjjlRo5c9sTKZsofAnevwlOfGJp8GKmjaURl48XeE2I _3exGOnPEciAiNlvxsFx_A2v9GyE.kX8Hoqqhx24OikFljoT7_IUf.g.RukrreUnjeG2_z.M_2dm 8Bhe7zIU_jPta9YgiBA5qb199X1I- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sat, 24 Apr 2021 15:17:53 +0000 Received: by kubenode544.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e65d8b44c3e1071e17aac7b96cf2fa1e; Sat, 24 Apr 2021 15:17:50 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: How to build packages on PBP ? From: Mark Millard In-Reply-To: <202104241033.13OAXdDH085225@kx.truefc.org> Date: Sat, 24 Apr 2021 08:17:48 -0700 Cc: Steve O'Hara-Smith , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8A9FBA4D-9BBD-4D67-ACE1-29F2BF91592F@yahoo.com> References: <202104220108.13M18dvG021683@kx.truefc.org> <20210422070556.b02b17d7ba2c133af028149e@sohara.org> <202104241033.13OAXdDH085225@kx.truefc.org> To: KIRIYAMA Kazuhiko X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FSFCR6fQWz3HJn X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.65.30:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.65.30:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.30:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.30:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2021 15:17:56 -0000 On 2021-Apr-24, at 03:33, KIRIYAMA Kazuhiko wrote: > On Thu, 22 Apr 2021 15:05:56 +0900, > Steve O'Hara-Smith wrote: >>=20 >> On Thu, 22 Apr 2021 10:08:39 +0900 >> KIRIYAMA Kazuhiko wrote: >>=20 >>> I'm tring to build packages for my desktop use on pineboookpro = (PBP), >>> but suddenly crashed during compiled devel/llvm10 and failed to = build >>> llvm10-10.0.1_5.txz. The reason why I guess was for too heavy to = process >>> to compile llvm10 because it's load average was over 6.0 ! >>=20 >> It probably ran out of memory, try setting NO_PARALLEL=3D1 in = the >> environment and/or add some swap and try again. >=20 > Unfortunately also crashed with: >=20 > root@kazu:/var/ports/lpbpkx/devel/llvm90 # env NO_PARALLEL=3D1 make = package-recursive >=20 > Swap is ready by 8GB: >=20 > root@kazu:~ # swapinfo -h > Device Size Used Avail Capacity > /dev/mmcsd0p2 8.0G 0B 8.0G 0% > root@kazu:~ #=20 >=20 > The situation before crash is like [1]. >=20 > [1] http://www.truefc.org/~kiri/freebsd/pbp/IMG_1417.jpeg >=20 I recommend trying the following in, say, /boot/loader.conf=20 and booting with the settings before attempting another build: # # Delay when persistent low free RAM leads to # Out Of Memory killing of processes: vm.pageout_oom_seq=3D120 # # For plunty of swap/paging space (will not # run out), avoid pageout delays leading to # Out Of Memory killing of processes: vm.pfault_oom_attempts=3D-1 # # For possibly insufficient swap/paging space # (might run out), increase the pageout delay # that leads to Out Of Memory killing of # processes (showing defaults at the time): #vm.pfault_oom_attempts=3D 3 #vm.pfault_oom_wait=3D 10 # (The multiplication is the total but there # are other potential tradoffs in the factors # multiplied, even for nearly the same total.) Notes: While I've never done anything that required it, vm.pageout_oom_seq could be set even bigger. Someone once reported using a figure like 1200 instead. No setting gives an unbounded delay. If you decide to not use vm.pfault_oom_attempts=3D-1 : For that last you would want to increase one or both of: vm.pfault_oom_attempts and/or vm.pfault_oom_wait instead of using 3 and 10 as the values. If you do got (or get) one or more "was killed: out of swap space" messages on the console: Be warned that the "out of swap space" part can be a misnomer. Only if you also see message(s) with text of the form "swap_pager_getswapspace(...): failed" is the swap space part of the notice the actual cause as far as I know. Other causes include: Sustained low free RAM (via stays-runnable processes). A sufficiently delayed pageout. The swap blk uma zone was exhausted. The swap pctrie uma zone was exhausted. The earlier tuning attempts to deal with the first two of those, not the last two. The 2 or 3 tunables above can instead be placed in /etc/sysctl.conf if desired. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)