Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2023 09:03:48 +0200
From:      Xavier Humbert <xavier@groumpf.org>
To:        Cy Schubert <Cy.Schubert@cschubert.com>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: Rust build huge memory consumption
Message-ID:  <1c494f89-0023-46af-8200-58e621603c33@groumpf.org>
In-Reply-To: <20231025070129.E565C16A@slippy.cwsent.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Le 10/25/23 09:01, Cy Schubert a écrit
      :<br>
    </div>
    <blockquote type="cite"
      cite="mid:20231025070129.E565C16A@slippy.cwsent.com">
      <pre wrap="" class="moz-quote-pre">In message <a class="moz-txt-link-rfc2396E" href="mailto:5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org">&lt;5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org&gt;</a>, Xavier 
Humbert w
rites:
</pre>
      <blockquote type="cite">
        <pre wrap="" class="moz-quote-pre">Le 10/25/23 08:46, Cy Schubert a écrit :
</pre>
        <blockquote type="cite">
          <pre wrap="" class="moz-quote-pre">In message <a class="moz-txt-link-rfc2396E" href="mailto:09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org">&lt;09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org&gt;</a>, Xavier
Humbert w
rites:
</pre>
          <blockquote type="cite">
            <pre wrap="" class="moz-quote-pre">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 ?
</pre>
          </blockquote>
          <pre wrap="" class="moz-quote-pre">How much RAM does your machine have? How many CPU cores/threads does it
have?

</pre>
        </blockquote>
        <pre wrap="" class="moz-quote-pre">I have 16 GB RAM, and 4 cores
</pre>
      </blockquote>
      <pre wrap="" class="moz-quote-pre">
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?
</pre>
    </blockquote>
    <p>It has 24GB swap, And I stop bhyve before building</p>
    <p>Xavier<br>
    </p>
    <p><span style="white-space: pre-wrap">
</span></p>
    <pre class="moz-signature" cols="72">-- 
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
<a class="moz-txt-link-freetext" href="https://www.amdh.fr">https://www.amdh.fr</a>;
</pre>
  </body>
</html>

--------------k58a0aQLrN0PtD1fLFvr0WGq--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1c494f89-0023-46af-8200-58e621603c33>