From nobody Thu Jan 27 16:45:12 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 8D3CA1985BC4 for ; Thu, 27 Jan 2022 16:45:19 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jl5zy3PJlz3vg7 for ; Thu, 27 Jan 2022 16:45:18 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 20RGjDod051248 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 27 Jan 2022 08:45:13 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 20RGjCK2051247; Thu, 27 Jan 2022 08:45:12 -0800 (PST) (envelope-from fbsd) Date: Thu, 27 Jan 2022 08:45:12 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Cc: bob prohaska Subject: devel/llvm13 failed to reclaim memory on 8 GB Pi4 running -current Message-ID: <20220127164512.GA51200@www.zefox.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4Jl5zy3PJlz3vg7 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [0.77 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_SHORT(0.86)[0.858]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 1438 Lines: 33 Attempts to compile devel/llvm13 on a Pi4 running -current (updated on 20220126) with 8 GB of RAM and 8 GB of swap has failed on two occasions using make -DBATCH > make.log & in /usr/ports/devel/llvm13 using the system compiler. The system is self-hosted. The first failure reported clang error 139, but the second was different, reporting only: FAILED: tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/check-expression.cpp.o along with a console report of +swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1258432, size: 4096 +swap_pager: indefinite wait buffer: bufobj: 0, blkno: 627221, size: 8192 +swap_pager: indefinite wait buffer: bufobj: 0, blkno: 240419, size: 4096 +swap_pager: out of swap space +swp_pager_getswapspace(12): failed +pid 61012 (c++), jid 0, uid 0, was killed: failed to reclaim memory Swap use peaked a little over 50%. After the first failure a restart of make using MAKE_JOBS_UNSAFE=yes ran to completion with one thread. A copy of the build log, logging script and other notes is at http://www.zefox.net/~fbsd/rpi4/20220127/ Clang error 139 has been seen several times during make buildworld on a Pi3 running stable/13 with 2 GB of swap as well. Perhaps the two failures are related. The Pi3 failures didn't report out of swap, all were clang error 139 with "failed to reclaim memory". Even with only 1 thread (j1) the failure reproduced. Thanks for reading, bob prohaska 20220127