From nobody Wed Oct 25 06:46:26 2023 X-Original-To: freebsd-ports@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 4SFfbW0Qpgz4y6P9 for ; Wed, 25 Oct 2023 06:46:31 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SFfbT3CScz4Wlh for ; Wed, 25 Oct 2023 06:46:29 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id vKv4qjE2WB0n0vXeuqkh0R; Wed, 25 Oct 2023 06:46:28 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id vXetqbD7NnCF0vXetqxByb; Wed, 25 Oct 2023 06:46:28 +0000 X-Authority-Analysis: v=2.4 cv=MPFzJeVl c=1 sm=1 tr=0 ts=6538b9c4 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=bhdUkHdE2iEA:10 a=C6EfLM-sAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=Q6G1T1MeJm91CesL5dYA:9 a=CjuIK1q_8ugA:10 a=zZCYzV9kfG8A:10 a=-LOoIXv5KNPoUydsO0ce:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id B4C6F624; Tue, 24 Oct 2023 23:46:26 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id A5DA6168; Tue, 24 Oct 2023 23:46:26 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Xavier Humbert cc: FreeBSD Ports ML Subject: Re: Rust build huge memory consumption In-reply-to: <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org> References: <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org> Comments: In-reply-to Xavier Humbert message dated "Wed, 25 Oct 2023 08:38:54 +0200." List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Oct 2023 23:46:26 -0700 Message-Id: <20231025064626.A5DA6168@slippy.cwsent.com> X-CMAE-Envelope: MS4xfDRJbPrh4BZNsWW5e6C10AuCWjWkAgm7CV2LIa9geV9YZJ4DSkV+63xLSTbq0dXawVq195kxSPNrX+4DO+3vOwpgMrAI7F7j67+ZeSMXcKvHAUju6Wcf /795KODX7knStHl0F6kK/W+V8baekUsdIvKPWBndQn/u/T/acRkZC/OA/ZmH+HkEHyUhiMFt2knjRryELEhmX8WKswbpWBBsDdPU7tYOTqWklqaB6k7YDo3S 0jzLueJmrCGQ4Nz5rk3ixQ== X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4SFfbT3CScz4Wlh In message <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org>, Xavier Humbert w rites: > Hi, > > When building rust, all memory is eaten, leading to OOM killing almost > everything, eventually failing, and leading to an unstable system. > > Is there a way to tell the compiler to avoid this behaviour ? How much RAM does your machine have? How many CPU cores/threads does it have? -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0