From nobody Sun Aug 14 14:50:54 2022 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 4M5L2Y0PM4z4ZGPy for ; Sun, 14 Aug 2022 14:51:17 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M5L2X6xWZz3ZJF for ; Sun, 14 Aug 2022 14:51:16 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660488677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Fg8mnwa9WfjP9pUiTBcgJH9bHwuNG+h0bwm/HLgSovs=; b=Xy9oEzJedsLJewYN5AQV1wGwxxc391xnHmlU/vgdU1KLqP81xnH0UkdxmITQ7gKt023/MC SOLbVeVr7HBp++m72Zks90w87wKvPW+5+nlx9E+kO2AxYxEP6h8ROuPCCrnL3+Z5+jNzdJ /cCoUa6WeGH3Ty/Ck1x961+PFv1dOSMljzPftSBAnBxZlrV3lG2I9Zpq69ylR5VzavxcWt QxLe+YTD3FyZtwGshQ9LzUJ8ZyFclKFCLcVXruNyWZpsouhxHkXTd/c9QTq8eEeXgZ/jM+ UolzM4hLxKExqo3hSGacixF3JEgS2SS9qBEp+h+N8Oq4FcPzah5aZBBQ32ZE0A== Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M5L2X5rgmz18yH for ; Sun, 14 Aug 2022 14:51:16 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f171.google.com with SMTP id r4so2687695vkf.0 for ; Sun, 14 Aug 2022 07:51:16 -0700 (PDT) X-Gm-Message-State: ACgBeo3D6qt4tc3rcHnPNXR9jpvCelrjye8mMJcK/7GcuEDxV1sX7RpP b+X4xPLb1EvEVVHTMLX+tiSCSujYDp93Zh3QUO4= X-Google-Smtp-Source: AA6agR49ppmip1OpLXFr8xL7qlqrq/eMH9ieCVeP/olTWHs21mHbIWdL7aob4vWC0QCYc+GUiTXHkySvDLcG9I1fxDU= X-Received: by 2002:a1f:acd2:0:b0:37b:531:9988 with SMTP id v201-20020a1facd2000000b0037b05319988mr4846786vke.19.1660488676137; Sun, 14 Aug 2022 07:51:16 -0700 (PDT) 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 References: <1D4C14BD-8955-4B86-9C99-3E58D7603122.ref@yahoo.com> <1D4C14BD-8955-4B86-9C99-3E58D7603122@yahoo.com> In-Reply-To: <1D4C14BD-8955-4B86-9C99-3E58D7603122@yahoo.com> From: Nuno Teixeira Date: Sun, 14 Aug 2022 15:50:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Resolved: devel/llvm13 build: "ninja: build stopped: subcommand failed" To: Mark Millard Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000b1e29a05e634a54d" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660488677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Fg8mnwa9WfjP9pUiTBcgJH9bHwuNG+h0bwm/HLgSovs=; b=lIlpAiKgK0JTAUYmM6Hu5W2EOXEw9D16Eh2inywF4xGF67ZDctRCCeIhcjcKtEg824LFn5 c9obndHwnvx/meVwhgIokLE0WhqlpMjRJAvbGmSU9y9tqwlAFeTJLT3SivvdTf+w+JcUpl yor0jzbXUd9ECq90fANcWyH6WiioHJktbwuUYkjw1odNhNAikYQvf2Up5TPHGgBzKcbkxn yRr8bk484iiWKGoEI90yVvUdDpqEaXwKtY7gad39BCKt1QNO89DtUPsaQc5gNEDFwjmST0 17FymkxnvxW4zS8Ae+i1eK6NhdHeVyKhFwUi6zAhQAv2yXbR4NiMUhpY2NkluA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660488677; a=rsa-sha256; cv=none; b=CnUSdTlGyQG8/MavaC0QKeakVBJAEloQKgQEg43gU68fiC+I1ezpNZLv+8MFnnIuURQGeK LWyChuW0vZ3gvKdfSvlz0gEbSIlYrxTwMglKFIFODufDeCuwWYn91YeepsHnnRiGkdO85B NKf+4PoV7j4sLGQIlBWIcaJRVVbQlWeh3OLGd21q56iQw7lgudLDtf/gisheU11lwIFA4N XJYkLh7UOmRU+FXGo4i6LLrM5+Lt/QSCQDdh/h8pAuso+KsGSN1W/hzxwE2sOJGYtlxoIm 2sF4hf9aNyXuoVsgLdUXIGAJq0C5iysKDMTDL+Ad6vQ+UgkunhMkWXHolFqjIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000b1e29a05e634a54d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Mark, I use poudriere with USE_TMPFS=3Dno, ofc because of low mem) The problem "ninja: build stopped: subcommand failed" have some time now and it's caused by a build peak of memory that affects people with less than 32/64GB mem and to solve building it must be build using one builder with one core thats takes about 7 hours on my machine or with 6c+6t on 12.3 i386 that takes about 45min (123i386 is the only jail that I can use all cores). llvm 12 build without problems Cheers Mark Millard escreveu no dia domingo, 14/08/2022 =C3=A0= (s) 03:54: > Nuno Teixeira wrote on > Date: Sat, 13 Aug 2022 16:52:09 UTC : > > > . . . > > I've tested it but it still fails: > > --- > > pid 64502 (c++), jid 7, uid 65534, was killed: failed to reclaim memory > > swap_pager: out of swap space > > --- > > on a Lenovo Legion 5, 16GB RAM and 4GB swap. > > . . . > > This leaves various points unclear: > > poudriere style build? Some other style? > > (I'll state questions in a form generally for a poudriere style > context. Some could be converted to analogous points for other > build-styles.) > > How many poudriere builders allowed (-JN) ? > > /usr/local/etc/poudreire.conf : > ALLOW_MAKE_JOBS=3Dyes in use? > ALLOW_MAKE_JOBS_PACKAGES=3D??? in use? > USE_TMPFS=3D??? With what value? Anything other that "data" or "no"? > > /usr/local/etc/poudriere.d/make.conf (or the like): > MAKE_JOBS_NUMBER=3D??? in use? With what value? > > Is tmpfs in use such that it will use RAM+SWAP when the > used tmpfs space is large? > > How much free space is available for /tmp ? > > Are you using something like ( in, say, /boot/loader/conf ): > > # > # Delay when persistent low free RAM leads to > # Out Of Memory killing of processes: > vm.pageout_oom_seq=3D120 > > > How many FreeBSD cpus does a Lenovo Legion 5 present > in the configuration used? > > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000b1e29a05e634a54d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Mark,

I use poudriere = with USE_TMPFS=3Dno, ofc because of low mem)

T= he problem "ninja: build stopped: subcommand failed" have some ti= me now and it's caused by a build peak of memory that affects people wi= th less than 32/64GB mem and to solve building it must be build using one b= uilder with one core thats takes about 7 hours on my machine or with 6c+6t = on 12.3 i386 that takes about 45min (123i386 is the only jail that I can us= e all cores).

llvm 12 build without problems
=

Cheers

Mark Millard <marklmi@yahoo.com> escreveu no dia domingo, 14/08/202= 2 =C3=A0(s) 03:54:
Nuno Teixeira <eduardo_at_freebsd.org> wrote on
Date: Sat, 13 Aug 2022 16:52:09 UTC :

> . . .
> I've tested it but it still fails:
> ---
> pid 64502 (c++), jid 7, uid 65534, was killed: failed to reclaim memor= y
> swap_pager: out of swap space
> ---
> on a Lenovo Legion 5, 16GB RAM and 4GB swap.
> . . .

This leaves various points unclear:

poudriere style build? Some other style?

(I'll state questions in a form generally for a poudriere style
context. Some could be converted to analogous points for other
build-styles.)

How many poudriere builders allowed (-JN) ?

/usr/local/etc/poudreire.conf :
ALLOW_MAKE_JOBS=3Dyes in use?
ALLOW_MAKE_JOBS_PACKAGES=3D??? in use?
USE_TMPFS=3D??? With what value? Anything other that "data" or &q= uot;no"?

/usr/local/etc/poudriere.d/make.conf (or the like):
MAKE_JOBS_NUMBER=3D??? in use? With what value?

Is tmpfs in use such that it will use RAM+SWAP when the
used tmpfs space is large?

How much free space is available for /tmp ?

Are you using something like ( in, say, /boot/loader/conf ):

#
# Delay when persistent low free RAM leads to
# Out Of Memory killing of processes:
vm.pageout_oom_seq=3D120


How many FreeBSD cpus does a Lenovo Legion 5 present
in the configuration used?


=3D=3D=3D
Mark Millard
marklmi at yahoo.com



--
Nun= o Teixeira
FreeBSD Committer (ports)
--000000000000b1e29a05e634a54d--