From nobody Tue Dec 13 03:42:47 2022 X-Original-To: questions@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 4NWPTb22pJz4jf9m for ; Tue, 13 Dec 2022 03:42:59 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NWPTb03Jfz3wnJ for ; Tue, 13 Dec 2022 03:42:58 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-417b63464c6so75556087b3.8 for ; Mon, 12 Dec 2022 19:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=D5RqyDgE5wBq7PFh7gAgWqpqLRY4WhBzqjDHDnsYCXo=; b=ogV2rQsTbvMh6QMDNoEMoGJRKKB0G2JvHeOn8L0btPQgeSBETiQFaRl2ZHHNEHId4/ uobqPv3vKpR/K+0vUTMJfP+c+XEgffOqeSK/7Grw7it9XzF0870oACh8r5KrsH+TtSPm CjKOqDnm9ZDrAG6VwezboxRxPSANBTuyz1e/5EbglmSZNIsEOcXYvZQFoYsHzCfXFlOX c9HZcDXmp6uug4jBVPLUzhr3n3nNpRQV8OHcs2Qqd3o+zWbO5130MO0qEmIFtWk9UcC0 TbgeNwOtajUqCCeinzXs0TUIZ4tyTKvbV2tWn5CG8DTaandCLFM+I61oPCQ9hTTXVgLX rsSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D5RqyDgE5wBq7PFh7gAgWqpqLRY4WhBzqjDHDnsYCXo=; b=naHQhWRGeVtYaWhPEv8y1Z0hFo+lqyf6FNy6Zo14xRqtWKfJZrWC5zIyn4IGK1ZCH0 U17aiSfVvJNzNouKyt3Zu4cADUEe2jBVv9rAi0GQEk/F5WWjIuy8U4TO2EMY83A6OwT5 lguAfOSVBE+fLMnh4CcX8aCY0mJqajfCti+Hcujbw/J4SDgBPS5HDMxuApmdX2gA+u17 mn88ZGRHZpCaEEQ+/KMk+XLrS9gcbjplIKUnmOTqmpG8tqoK0SGo1ucLoHovPGat/Rv2 OyjqI5h7emX7I3RnuMv4765vDrMtnFkXnW/1xtrOIa0z/kLn007PLn2kQ+qp+eYVJlB2 EsnQ== X-Gm-Message-State: ANoB5pkSOq08JFpjNllhQtutDT08fYNoWUGBtRWr7QmGmyDGIGQkj4I9 P4zbi7nacjvB33qoaziLP2V/AQSWZw8YoRYaxe8= X-Google-Smtp-Source: AA0mqf5veGR5Z3QcwI+8XLEI3LJkiaMrq39L+AKNNJFcsPS8IdFxixYubL/uoZJck3tMqaj4UFXJwGe2lY+mL4fRzTw= X-Received: by 2002:a81:57ce:0:b0:365:2229:a799 with SMTP id l197-20020a8157ce000000b003652229a799mr12991214ywb.262.1670902977970; Mon, 12 Dec 2022 19:42:57 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <64a29447-0b4a-eca0-7264-24d9d1afb3a9@tinka.africa> In-Reply-To: <64a29447-0b4a-eca0-7264-24d9d1afb3a9@tinka.africa> From: paul beard Date: Mon, 12 Dec 2022 19:42:47 -0800 Message-ID: Subject: Re: lang/rust is super slow to build To: mark@tinka.africa Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000074c7a305efad6a88" X-Rspamd-Queue-Id: 4NWPTb03Jfz3wnJ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --00000000000074c7a305efad6a88 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 12, 2022 at 7:38 PM Mark Tinka wrote: > > > On 12/12/22 21:27, Pat Maddox wrote: > > > Using poudriere, lang/rust is at 2 hours and counting on my 10-core i9 > > w/ 128 gigs of RAM. > > > > Does that sound right? It seems extremely slow to me, but this is my > > first time building it. > > > > How long does it take others to build? What options are you using, or > > any other suggestions for shortening the time? > > I've found the only way to shorten the time is to install the binary > package. > > It normally takes a couple of hours to build on my systems when I use > the Ports, which I don't mind. I do have some systems that were not well > configured for space when they were installed, and building Rust on > these consumes all the disk space during the build phase. For these, I > just upgrade from binary and I'm done with it. Takes all of 2 minutes. > > Mark. > > I swapped to binary upgrades for this port=E2=80=A6it would fill up swap an= d die before completing, after hours of work. Never understood why WORKDIR pointed to my small /tmp partition vs my generous /usr filesystem. --=20 Paul Beard / www.paulbeard.org/ --00000000000074c7a305efad6a88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Dec 12, 2022 at 7:38 PM Mark = Tinka <mark@tinka.africa> wrote:


On 12/12/22 21:27, Pat Maddox wrote:

> Using poudriere, lang/rust is at 2 hours and counting on my 10-core i9=
> w/ 128 gigs of RAM.
>
> Does that sound right? It seems extremely slow to me, but this is my <= br> > first time building it.
>
> How long does it take others to build? What options are you using, or =
> any other suggestions for shortening the time?

I've found the only way to shorten the time is to install the binary package.

It normally takes a couple of hours to build on my systems when I use
the Ports, which I don't mind. I do have some systems that were not wel= l
configured for space when they were installed, and building Rust on
these consumes all the disk space during the build phase. For these, I
just upgrade from binary and I'm done with it. Takes all of 2 minutes.<= br>
Mark.


I swapped to binary upgrades for this por= t=E2=80=A6it would fill up swap and die before completing, after hours of w= ork. Never understood why WORKDIR pointed to my small /tmp partition vs my = generous /usr filesystem.=C2=A0

--
Paul Beard / www.paulbeard.org/
--00000000000074c7a305efad6a88--