From nobody Wed Oct 25 07:01:29 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 4SFfwq6NYJz4y7SM for ; Wed, 25 Oct 2023 07:01: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 4SFfwq5p5kz4Z3V for ; Wed, 25 Oct 2023 07:01:31 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTPS id vLW0qjGNvB0n0vXtTqkhTg; Wed, 25 Oct 2023 07:01:31 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id vXtSqOX33MsNfvXtTqYfRk; Wed, 25 Oct 2023 07:01:31 +0000 X-Authority-Analysis: v=2.4 cv=KJNJsXJo c=1 sm=1 tr=0 ts=6538bd4b a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=8nJEP1OIZ-IA:10 a=bhdUkHdE2iEA:10 a=C6EfLM-sAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=imQLTIGbDYNl5BaslqEA:9 a=wPNLvfGTeEIA: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 0E6DF642; Wed, 25 Oct 2023 00:01:30 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id E565C16A; Wed, 25 Oct 2023 00:01:29 -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: Cy Schubert , FreeBSD Ports ML Subject: Re: Rust build huge memory consumption In-reply-to: <5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org> References: <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org> <20231025064626.A5DA6168@slippy.cwsent.com> <5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org> Comments: In-reply-to Xavier Humbert message dated "Wed, 25 Oct 2023 08:47:39 +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=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 25 Oct 2023 00:01:29 -0700 Message-Id: <20231025070129.E565C16A@slippy.cwsent.com> X-CMAE-Envelope: MS4xfJmgAxz1OwwDZ6q0QY9q1HMJuFO7rc69xfF6rBZflHAeAlqSW29pJvrCkyG3IHWXImleaHmHBs96y6hC+1FAwHmZHfeDMPLRWvTMnZ/3TXqG/kJ0dMqk brdzCRfGPLtZy7wjy+HqVq7eHDVwnXWld8tFChZ348+DudJV0a5B9RymBPmZrrwLzpskR3fmj/7pcoNiC7A//dGv9L8AsLDkTQtxmfGGaZLiYcLApAAn1QxI cPl9JG3Y3M69iNDLSLyOzg== 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: 4SFfwq5p5kz4Z3V In message <5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org>, Xavier Humbert w rites: > Le 10/25/23 08:46, Cy Schubert a écrit : > > 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? > > > I have 16 GB RAM, and 4 cores That should be plenty. I build it on a 4 core 8 GB machine. How much swap does it have? Could this machine by chance be running a browser or other large apps at the same time? -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0