From nobody Wed Oct 25 07:03:48 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 4SFfzX4Pw9z4y7jm for ; Wed, 25 Oct 2023 07:03:52 +0000 (UTC) (envelope-from xavier@groumpf.org) Received: from aragorn.amdh.fr (aragorn.groumpf.org [176.31.180.205]) by mx1.freebsd.org (Postfix) with ESMTP id 4SFfzX3Y94z4ZcR for ; Wed, 25 Oct 2023 07:03:52 +0000 (UTC) (envelope-from xavier@groumpf.org) Authentication-Results: mx1.freebsd.org; none Received: from numenor.groumpf.org (unknown [82.64.247.11]) by aragorn.amdh.fr (Postfix) with ESMTP id E906620000410; Wed, 25 Oct 2023 09:03:51 +0200 (CEST) Received: from numenor.groumpf.org (localhost [127.0.0.1]) by numenor.groumpf.org (Postfix) with ESMTP id DB8EE1C8824; Wed, 25 Oct 2023 09:03:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groumpf.org; h= in-reply-to:from:from:references:content-language:subject :subject:user-agent:mime-version:date:date:message-id :content-type:content-type:received:received; s=dkim; t= 1698217428; x=1699081429; bh=Hw8LoK1Z+jRKyBQIx6LVOW4A8QSTN7KsC7H ikiUH310=; b=fncujQhKzfTpjZIPmWjogjoEFxv7q60yY26INQwl3e7IWovRjZr Ghh/46Chr063gIK27t2sg1fRSv2f8pDvT2BJ+LTsU6X+5yzTkBfuyizu+dMjw/cX MKf4NvXe8pRsG2KF2YoYXL3psBoKDhVmFsCKNUeAWkxfjszg/w1qiDgNQTGUBoIB cZxxukkliqpvMsaWlXZOVtA/w0NnlON9gGncCVmzFunFL+2ZcZPHdm8JATR7/YQV Eo7KP95MO4RuH73MG6OFCCChOvmE7vQyiVeLcHPZ8TKoTs9bwt5RG1WmjrmtiY5I yy13/8hs50H+/oIC8quL8QLi+V5ZJgTjVWjZDKtkRVoIFYSh44AgirNFGCMKMMh3 IyY7zyojmKxRfSuVPIf0Im+N+GfFvnPai91AatNBldVv1IhyFlzSCTl7UHQPySZr SXyCPLJVn7SwvDkOFhpLoNHbpv/uqu507uCj903qKJMvpHi8BEEUrOhHr7KItDsC bjUSGLVgmqg5MihelAG8QZCOC57Hn6wuUosQe25s1eZtHhI8E4Ng5KZMc4IkLJDH 0r4VdEbDOCgLcpRvYZLrzx4WafxlJ8XvZYjiZbSholDEKR/Bwgdkvs8JDH7rFAhi Uhh235Yso1mQA/0auWzue/jOdQA3FxwfmMdJul/8D+bhWlwvks9LHPWQ= Received: from numenor.groumpf.org ([127.0.0.1]) by numenor.groumpf.org (ns3.groumpf.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Go401-pVqT7j; Wed, 25 Oct 2023 09:03:48 +0200 (CEST) Received: from [192.168.100.30] (imladris.groumpf.org [192.168.100.30]) by numenor.groumpf.org (Postfix) with ESMTPSA id CA93B1C87D1; Wed, 25 Oct 2023 09:03:48 +0200 (CEST) Content-Type: multipart/alternative; boundary="------------k58a0aQLrN0PtD1fLFvr0WGq" Message-ID: <1c494f89-0023-46af-8200-58e621603c33@groumpf.org> Date: Wed, 25 Oct 2023 09:03:48 +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 User-Agent: Mozilla Thunderbird Subject: Re: Rust build huge memory consumption Content-Language: fr To: Cy Schubert Cc: FreeBSD Ports ML References: <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org> <20231025064626.A5DA6168@slippy.cwsent.com> <5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org> <20231025070129.E565C16A@slippy.cwsent.com> From: Xavier Humbert In-Reply-To: <20231025070129.E565C16A@slippy.cwsent.com> 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:16276, ipnet:176.31.0.0/16, country:FR] X-Rspamd-Queue-Id: 4SFfzX3Y94z4ZcR This is a multi-part message in MIME format. --------------k58a0aQLrN0PtD1fLFvr0WGq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 10/25/23 09:01, Cy Schubert a écrit : > 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? It has 24GB swap, And I stop bhyve before building Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr --------------k58a0aQLrN0PtD1fLFvr0WGq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Le 10/25/23 09:01, Cy Schubert a écrit :
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?

It has 24GB swap, And I stop bhyve before building

Xavier

-- 
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr
--------------k58a0aQLrN0PtD1fLFvr0WGq--