From nobody Wed Nov 02 23:52:40 2022 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 4N2kGS03Fwz4hGGg for ; Wed, 2 Nov 2022 23:52:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.32]) (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 4N2kGQ3kzCz3T2f for ; Wed, 2 Nov 2022 23:52:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667433164; bh=ulDP8axw2cmtK71xqHRmciA5N9p5mqfSCPW4JsU5ovM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=riP7qs0/Gy2eM8KBxx6uxV17ZlQ+pHrzx3m7/AU/wUQ7dszARrdzEIbKhHdBUgEYo0MvFt3DDwfv3MQMV4iIJgcSLpprOnueMLRfCRIxCrbTvjaPDr7fbgCKoEddRqA6vMhzARI1yU5KecdTl/0ZmaeqJoLpgClAA4fZQksJAKbc4AyUxj/SpiNejCDXasBf/QKvwrVOcnPwuGUKrv02WkfyGfwCb85wVMhMfzDUB/6N6IW/NZqqvBuNpkTWoZzu4QXNkzxki+UI+AmXmIv15zPJkNpo8giMW6lDNjgmaa/UyhHrP5FiJonIiZvW1uPO8gdz9+AYURRMIooXWGntog== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667433164; bh=QisC53Lue7e81HNDaduhvija7vuE6qFo6R6hws5+XBf=; h=X-Sonic-MF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lB1TPhL5sT7pvz_YFirkN7MioT_ZnAw0k4EkMr_5tCOLyCBNpHWcrG3n4nMtR_ xxJW8UOI_RLUxEnV_FYin7AYplRp6wNLZ_5whfpM3icbDi0hUUJRXNCrIs_vrxFHbNsjvkQ9kuyG 28AuvaV06NQEVGvZm_adlZqoal.Wz1ujVLf8GMRjTFetqgulnh3__lnh973i5g2hz5TZ7Yw6gP.s sWRCWaZTDDTDEGyZ_EL5cO5nQ8w7S8AlGH4dnRfv5qM4.pufQ2MZktyuzwnvl9qamze4eu_pQM2l UEk_I.J.PVeh_rdVugresQUKx6MLQ1_BDXIRNobmyL1iBB0VOkJFjw0qA.AZBCSMyGcv1XbOSv.t L5SKYG5OV.8Ee9KCW9ZiO229OlwN9nhOuBul.QVj9UgZqe9DOWVbLlo1riXqQXoLnq8H2VszM29S tyk6crAziywgVwk4YnVZseliYG9CKhMH0g.1UuEYw8bB5GB67thJTn0nk9qnAycZ5m5BLojrA8Z. .f4sxqzeHtGYriRCE53LJT6YVLyzRoQzLkF5XACg3HyyNExpWKd89xPaZhB08TIKG976ht2gPX3w - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Wed, 2 Nov 2022 23:52:44 +0000 Received: by hermes--production-ne1-6bcfb7fb87-s7whx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d3dd359c258b6cd3740c614188fe598f; Wed, 02 Nov 2022 23:52:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 \(3696.120.41.1.1\)) Subject: Re: 14.0-CURRENT failed to reclaim memory error in RPi 3B build From: Mark Millard In-Reply-To: Date: Wed, 2 Nov 2022 16:52:40 -0700 Cc: freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: References: <84376CC9-B991-4BF3-AF5F-0AA09CB28339.ref@yahoo.com> <84376CC9-B991-4BF3-AF5F-0AA09CB28339@yahoo.com> To: Archimedes Gaviola X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4N2kGQ3kzCz3T2f X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="riP7qs0/"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.32 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.90)[-0.901]; NEURAL_HAM_MEDIUM(-0.80)[-0.800]; MV_CASE(0.50)[]; 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)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.32:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.32:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Nov-2, at 14:09, Archimedes Gaviola = wrote: > On Mon, Oct 31, 2022 at 1:47 PM Archimedes Gaviola = wrote: >=20 > . . . >=20 > . . . >=20 >=20 > Hi Mark, >=20 > Just an update, as kernel and world compilation is ongoing with my = RPi3B system (with swap partition) is doing so far, so good. It already = surpassed the tough part that breaks the compilation process here. > ... >=20 > llvm-tblgen -gen-asm-matcher -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenAsmMatcher.inc.d -o RISCVGenAsmMatcher.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-asm-writer -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenAsmWriter.inc.d -o RISCVGenAsmWriter.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-callingconv -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenCallingConv.inc.d -o RISCVGenCallingConv.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-compress-inst-emitter -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenCompressInstEmitter.inc.d -o RISCVGenCompressInstEmitter.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-dag-isel -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenDAGISel.inc.d -o RISCVGenDAGISel.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-disassembler -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenDisassemblerTables.inc.d -o RISCVGenDisassemblerTables.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-global-isel -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenGlobalISel.inc.d -o RISCVGenGlobalISel.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-instr-info -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenInstrInfo.inc.d -o RISCVGenInstrInfo.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-emitter -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenMCCodeEmitter.inc.d -o RISCVGenMCCodeEmitter.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-pseudo-lowering -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenMCPseudoLowering.inc.d -o RISCVGenMCPseudoLowering.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-register-bank -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenRegisterBank.inc.d -o RISCVGenRegisterBank.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-register-info -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenRegisterInfo.inc.d -o RISCVGenRegisterInfo.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-searchable-tables -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenSearchableTables.inc.d -o RISCVGenSearchableTables.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-subtarget -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenSubtargetInfo.inc.d -o RISCVGenSubtargetInfo.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td > llvm-tblgen -gen-searchable-tables -I = /usr/src/contrib/llvm-project/llvm/include -I = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV -d = RISCVGenSystemOperands.inc.d -o RISCVGenSystemOperands.inc = /usr/src/contrib/llvm-project/llvm/lib/Target/RISCV/RISCV.td >=20 > Any thoughts why this part is quite a challenge when it comes to = memory usage? The other architectures do not possess such behavior... = just curious. I've not done any monitoring of buildworld buildkernel build activity (RAM use, memory space use, swap partition use over time) on RPi3B class hardware in a very long time. Even on systems that I have monitored in more recent times, what I usually monitor tends to be builds with -jN (such as -j4 fora 4-hardware-thread system). (I once did have an example of -j3 taking less time than -j4 on a RPi4B. Basically, the memory subsystem can be saturated without all the cores being in use. The extra interference made things take longer.) You had listed that you were using the likes of: # cd /usr/src ; make KERNCONF=3DARM TARGET_ARCH=3Daarch64 \ buildkernel buildworld installkernel installworld distribution \ DESTDIR=3D/home/freebsd/rpi3b I'll note that the standard order of the first 2 is: buildworld buildkernel This is because buildworld builds some software that buildkernel does not build for itself but does use. There is a kernel-toolchain target for avoiding the need to do a full buildworld just to buildkernel , so: kernel-toolchain buildkernel is an expected sequence. I do not know how long a from-scratch buildworld buildkernel without a -jN takes on a RPi3B these days. If I remember right, for -jN with 1