From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AAdIGjBVy2BxXgAAgWs5BA (envelope-from ) for ; Thu, 17 Jun 2021 15:59:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OHOKFTBVy2CMGAAAbx9fmQ (envelope-from ) for ; Thu, 17 Jun 2021 13:59:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58EDD16126 for ; Thu, 17 Jun 2021 15:59:11 +0200 (CEST) Received: from localhost ([::1]:49426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltsY1-0004Mo-Ow for larch@yhetil.org; Thu, 17 Jun 2021 09:59:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltsXu-0004Mf-L7 for bug-guix@gnu.org; Thu, 17 Jun 2021 09:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltsXu-0006ew-AH for bug-guix@gnu.org; Thu, 17 Jun 2021 09:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltsXu-0001eM-8J for bug-guix@gnu.org; Thu, 17 Jun 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48963: "guix build guix" halts after exhausting memory Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 17 Jun 2021 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48963 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 48963-submit@debbugs.gnu.org id=B48963.16239383056299 (code B ref 48963); Thu, 17 Jun 2021 13:59:02 +0000 Received: (at 48963) by debbugs.gnu.org; 17 Jun 2021 13:58:25 +0000 Received: from localhost ([127.0.0.1]:54823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltsXJ-0001dW-5F for submit@debbugs.gnu.org; Thu, 17 Jun 2021 09:58:25 -0400 Received: from lepiller.eu ([89.234.186.109]:44964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltsXF-0001dM-SZ for 48963@debbugs.gnu.org; Thu, 17 Jun 2021 09:58:23 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id c3552866; Thu, 17 Jun 2021 13:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=RmrCZOHUeQ7lA/N7v5wuXp2gfQo3JuR3vrsiPl6s6j8=; b=a2+YtqM jCeNz/D2pNva64bu5PUtetMmc7mO+ElHrhWt+Pt33bdj6LTWUXDzfEF5J4RgB1cN KYAc1skohASGzCThZ3haI/7KOucAbhVy30KKhlMMQZKvljpY2tX2R5J15RGbiXgN 58pHSyxj0g6t9s5PKLgNhVc/yjdH1fVsSBmE0MhgR2AcpLLzr1/qp5I6PmJurd9+ uHXaYXMXyK96Xljw2BwcrWlAHdlye0xalFYvVgqNZfxMzzj4EAjYx4CfZp/fZ3uI WVfikv0P+tBolSFk4vkLSbOfIJ6Obcc6kSj4Q7sAPwIOq0zNW3mLYWbjed3h7e9W gqp4vrcHPvwvcdQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 32610678 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 17 Jun 2021 13:58:18 +0000 (UTC) Date: Thu, 17 Jun 2021 09:58:09 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87im2dpoj3.fsf@gnu.org> References: <20210612002330.64cd06c1@tachikoma.lepiller.eu> <87im2dpoj3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----4E586CT4QFKF8A3P5UW6OUFENW2YG3" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <78EA8A84-D7DC-4506-91EB-1C304E5DB363@lepiller.eu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48963@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623938351; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WDoZ97fGr/uf5zBMs1rVx0ySDR5WgIk1ly3WcoBzO7k=; b=Ixt+D+fGbq1IiBsd0YHStDj6zJ6lPkMsUeRsjDdAdD2hQGpYzBLwMrVycTOiRhjEiVZEat BK+/s8BqG9SNLjJmyGmQ0oCIsFXvK1DDndMVc0/1+fqodPQyExumGprx5lVAogAlhMVSqO IR1KfPoh0VVEQucjtgCaw1iI2dwlLHSlUrLezVTpj3ppzvu6CUBvVjkthTKcnZfFeTLseu kDX5W7VzEuFiMl2oWHMYuamnRIuS4Eb/tXAZRR3sakXGs17EIe9k3b6qx6sXKBTYf92rQQ iI5rbYgWHGzVUMa6YJ2qtXCXg2Gp/nV0Cd+J2tu3zG1FziXZSBRM4+V4ZuJ53A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623938351; a=rsa-sha256; cv=none; b=jD4pypw4TQ9b4hxWOdIKwNrfkFtnoqwxOHu1ZKMf0+aXwtjVzfm2jKMpRXu4+4bF5UehmJ pDuHu/i4BLyEE4VpcJyOcDU223VQ93o9LDloBnpqEAUGRCPJHjxv6FmZDEqX19Qmh57uPn enPawAGZrA9PJXwbEh0PDU6A/5L/2URyoIGoRJ8+5SQtbCew0htBiS72X1cPZs7AE3756N qTbdmgxfRQtCDnfcAoYsVhNlm+PTy1ZlOInmuTsvH4WMTLeQ9qyt+a4ciykkP9ctuQBJpc OawcvSZ/Z08peFHBYz9cI8bhmdssrC1kfK8TBG7OxB5oN4y3V9tu8YLjUbFUag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="a2+YtqM "; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="a2+YtqM "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 58EDD16126 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: W6tnq/qu/MXr ------4E586CT4QFKF8A3P5UW6OUFENW2YG3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, I tried your patch by creating a variant of the guix package=2E My first a= ttempt was a failure because it's still using almost all my memory and I fo= rgot to enable my swap=2E In the second attempt, the build phase succeeded,= but the build failed during the test phase (test/inferior)=2E I've started= a new build hoping it's a non-deterministic failure=2E Le 16 juin 2021 16:01:20 GMT-04:00, "Ludovic Court=C3=A8s" a =C3=A9crit : >Hi, > >Julien Lepiller skribis: > >> I tried updating my system on my armhf board (2GB of RAM), but during >> "guix system reconfigure", guix tries to build itself (the guix >package >> from (gnu packages package-management))=2E This package uses too much >> memory to build, and I start getting GC warnings like so: >> >> GC Warning: Out of memory - trying to allocate requested amount (552 >> bytes)=2E=2E=2E >> GC Warning: Header allocation failed: dropping block >> GC Warning: Out of Memory! Heap size: 2571 MiB=2E Returning NULL! >> Warning: Unwind-only out of memory exception; skipping pre-unwind >> handler=2E >> >> after some more progress and a lot more warnings, the build stops >(CPU >> is at 2%), but the memory is not freed=2E The build stayed stuck for a >> long time until I decided to cancel it=2E > >This is ridiculous=2E :-/ > >> Can we instead break the build (at the Makefile level) into multiple >> smaller chunks, that require less memory, in the same way (guix self) >> works? > >Yes, that=E2=80=99s a good idea=2E > >Could you check the extent to which the attached patch helps on this >machine? > >It doesn=E2=80=99t split as much as (guix self) does, only in three piece= s, but >hopefully that helps a bit=2E A side effect is that progress report is >now off, but we can fix it later=2E > >Thanks, >Ludo=E2=80=99=2E ------4E586CT4QFKF8A3P5UW6OUFENW2YG3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo,

I tried your patch by creating a v= ariant of the guix package=2E My first attempt was a failure because it's s= till using almost all my memory and I forgot to enable my swap=2E In the se= cond attempt, the build phase succeeded, but the build failed during the te= st phase (test/inferior)=2E I've started a new build hoping it's a non-dete= rministic failure=2E

Le 16 juin 2021 16:0= 1:20 GMT-04:00, "Ludovic Court=C3=A8s" <ludo@gnu=2Eorg> a =C3=A9crit = :
Hi,

Julien Lepiller <julien@lepiller=2Eeu&= gt; skribis:

I tri= ed updating my system on my armhf board (2GB of RAM), but during
"guix = system reconfigure", guix tries to build itself (the guix package
from = (gnu packages package-management))=2E This package uses too much
memory= to build, and I start getting GC warnings like so:

GC Warning: Out= of memory - trying to allocate requested amount (552
bytes)=2E=2E=2E GC Warning: Header allocation failed: dropping block
GC Warning: Out= of Memory! Heap size: 2571 MiB=2E Returning NULL!
Warning: Unwind-only= out of memory exception; skipping pre-unwind
handler=2E

after = some more progress and a lot more warnings, the build stops (CPU
is at = 2%), but the memory is not freed=2E The build stayed stuck for a
long t= ime until I decided to cancel it=2E

This is ridiculous= =2E :-/

Can we ins= tead break the build (at the Makefile level) into multiple
smaller chunk= s, that require less memory, in the same way (guix self)
works?

Yes, that=E2=80=99s a good idea=2E

Could you check the e= xtent to which the attached patch helps on this
machine?

It doesn= =E2=80=99t split as much as (guix self) does, only in three pieces, but
= hopefully that helps a bit=2E A side effect is that progress report is
= now off, but we can fix it later=2E

Thanks,
Ludo=E2=80=99=2E
<= br>
------4E586CT4QFKF8A3P5UW6OUFENW2YG3--