From nobody Mon Sep 25 21:58:23 2023 X-Original-To: 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 4RvcG15MwDz4v7Y2 for ; Mon, 25 Sep 2023 21:58:49 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "prime.gushi.org", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RvcG12pxJz4LVs for ; Mon, 25 Sep 2023 21:58:49 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple ([IPv6:2601:602:87f:b05d:2108:9e3c:b4d0:ae26]) (authenticated bits=0) by prime.gushi.org (8.17.2/8.17.2) with ESMTPSA id 38PLwhcG091944 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 21:58:44 GMT (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 38PLwhcG091944 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1695679124; bh=ECAKrAWdFCtm1Icnbo8cpMf27hP1L3SD090U5gLQcdk=; h=Subject:From:In-Reply-To:Date:Cc:References:To; z=Subject:=20Re:=20dns/bind916=20builds=20rust=20unexpectedly|From: =20Dan=20Mahoney=20|In-Reply-To:=20|Date:=20Mon,=2025=20Sep=202023=2014:58:23=20-0700|Cc :=20"Edward=20Sanford=20Sutton,=20III"=20,= 0D=0A=20ports@freebsd.org|References:=20=0D=0A=20<1e05be67-cb15-964e-c78b-e74e714257a9@FreeBSD.org>=0D =0A=20<11aede54-89d0-9b46-28f8-1931571b8917@m5p.com>=0D=0A=20=0D=0A=20<6fd5dbf4-3fc5- a728-d751-d58deeabe933@m5p.com>=0D=0A=20=0D=0A=20|To:=20Robert=20Clausecker=20; b=heIsyHdZ+yGfT31R8WnWpzgxLEQVZH0QFiWtWA79bhpNkjYAAkorkEa38GiUIne4b jDjxriNA7t2Mz480LEyVeIVKo4JU63rdIO5nUWGJFAmWdot2POL8C+bAY+mBUG1fc1 JMicE9Uk8zwnltsR1ZA0hDmxZi6q1Nhz/mpSmEcRdIeRHnYnOASSwhjvjRkiyT/WNY TyCeKZV6aYK6SpRsYViVxN3Bn9oxwnvBWjkD3wk3BjLgeDVaZj9ZtlihBP6o5UFjU2 xknIBkXX4lLjuILdSZHEPpoeKqrtp74RnhGffxJnpLX5aRbxejooyvAb/sFG2drHMe BVQSwEr7ttPgQ== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:87f:b05d:2108:9e3c:b4d0:ae26] claimed to be smtpclient.apple Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: dns/bind916 builds rust unexpectedly From: Dan Mahoney In-Reply-To: Date: Mon, 25 Sep 2023 14:58:23 -0700 Cc: "Edward Sanford Sutton, III" , ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1e05be67-cb15-964e-c78b-e74e714257a9@FreeBSD.org> <11aede54-89d0-9b46-28f8-1931571b8917@m5p.com> <6fd5dbf4-3fc5-a728-d751-d58deeabe933@m5p.com> To: Robert Clausecker X-Mailer: Apple Mail (2.3731.700.6) 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:393507, ipnet:2620:137:6000::/44, country:US] X-Rspamd-Queue-Id: 4RvcG12pxJz4LVs > On Sep 25, 2023, at 14:41, Robert Clausecker wrote: >=20 > Am Mon, Sep 25, 2023 at 02:15:19PM -0700 schrieb Edward Sanford = Sutton, III: >> Poudriere still causes crashes in my experience depending on = hardware, >> poudriere configuration, and what you tell it to build; I have to = change >> defaults to use it and then it is fine. With only 32GB of RAM, if I = have it >> operate the whole build process in RAM >> (USE_TMPFS=3Dall>/usr/local/etc/poudriere) then I have to limit = myself to 2 >> build jobs (PARALLEL_JOBS=3D2, though I specify it on the poudriere = command >> line) or I 'may' have issues. Within that I can have multiple jobs = per build >> (ALLOW_MAKE_JOBS=3Dyes>/usr/local/etc/poudriere, >> MAKE_JOBS_NUMBER=3D4>/usr/local/etc/poudriere.d/make.conf) which gets = through >> each compile job much faster so no one job is as likely to be running >> 'alone' holding up other jobs while cores sit idle. >=20 > Ports tend to eat more and more storage for their source and = dependencies these > days. I encountered the same issue you had. A simple fix is to = switch to > USE_TMPFS=3D"data localbase" which keeps the source code and objects = of the package > to be built on disk while placing dependencies into RAM. This does = not actually > reduce performance by much as the biggest spike in disk usage is when = dependencies > are installed and the distfile is extracted. This setting helps with = the former > while not doing much to the latter. During the build, compilers = infrequently > write small objects to disk, which gets handled very well by the write = cache, so > having the WRKDIR on disk doesn't hurt. The cache also quickly picks = up on > frequently needed source files, so there's little penalty in having to = read them > from disk every once in a while. I really, really wish the ports tree supported the option of: "I am building package X, but it requires dependency A, B, and C, which = I will build as completely standard, so pretty friggin please, just pkg = install them." So often have I done the dance of "Make...crap, ^c^c^c, pkg install = autoconf...Make, ...dammit... pkg install = dialog4ports....make....dammit, crap install bison...." pkg, as far as I know, has no concept of tracking the build-dependencies = of a thing, but I would love the option of pkg = --install-all-build-deps-for foo. "Just run poudriere" is a really crappy option when you just have a = single box on an AWS t2-tiny install. -Dan=