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 YEZ0DZDiw2BCOQAAgWs5BA (envelope-from ) for ; Sat, 12 Jun 2021 00:24:16 +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 QE/CCJDiw2ClfgAAbx9fmQ (envelope-from ) for ; Fri, 11 Jun 2021 22:24:16 +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 64E74142D8 for ; Sat, 12 Jun 2021 00:24:15 +0200 (CEST) Received: from localhost ([::1]:43492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrpZV-0008T3-Mo for larch@yhetil.org; Fri, 11 Jun 2021 18:24:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrpZK-0008Sa-Uk for bug-guix@gnu.org; Fri, 11 Jun 2021 18:24:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrpZK-000408-Nj for bug-guix@gnu.org; Fri, 11 Jun 2021 18:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrpZK-00036a-Fb for bug-guix@gnu.org; Fri, 11 Jun 2021 18:24: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: Fri, 11 Jun 2021 22:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48963 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48963@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162345023811922 (code B ref -1); Fri, 11 Jun 2021 22:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jun 2021 22:23:58 +0000 Received: from localhost ([127.0.0.1]:40036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrpZF-00036E-QA for submit@debbugs.gnu.org; Fri, 11 Jun 2021 18:23:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:59224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrpZD-000365-L4 for submit@debbugs.gnu.org; Fri, 11 Jun 2021 18:23:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrpZD-0008Rz-2O for bug-guix@gnu.org; Fri, 11 Jun 2021 18:23:55 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:33574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrpZ4-0003oi-P1 for bug-guix@gnu.org; Fri, 11 Jun 2021 18:23:54 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e1d1ae67 for ; Fri, 11 Jun 2021 22:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=dkim; bh=xELXAE+25RC0RLz5f2tatODDa IGFsvBz0mXKD7hPylY=; b=nP3RY/eY+Qa9mbRAwtKLMZ7eHlMm72DsclMJEXiXK og/l/jckqWlDF67mCRYagbOv4UaMkeVsV8pixJzFlCQxluIU5UrEaJKCD84rEosf X9l11vvvKdmbjAXWNe114rRfX9EFp1MmgwnroqQutqNEZx097dnhFsxIkOPVc2Z8 ka0qHcpIEp6DfHkeBhmJYP3M+LbAEcJbCG9eHJN/WfFnj5t33DfMx0pXbsOvzyjW 25VSp3ZjKcmbbEIXk7VWvCEiKWTKoQ/o1d1ZiB3RuRT78r0rle6JnronU+R7SDjs c9zUqOtJfy9Scklm/+fZB59toFPPW6rqVR2i2/PV5Fs4g== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 870dd4da (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 11 Jun 2021 22:23:40 +0000 (UTC) Date: Sat, 12 Jun 2021 00:23:30 +0200 From: Julien Lepiller Message-ID: <20210612002330.64cd06c1@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1623450256; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xELXAE+25RC0RLz5f2tatODDaIGFsvBz0mXKD7hPylY=; b=fRYgHinPL9MBlUo85Osdr1HNPnaT9v4084BShJM/fWv17LVkghjv1hIyFRBmQJxjUgEkys YTAjKGg1RGHP0Pm/kpWBu4pqzhXYWz6KSKwNdfI9O9tUdrozdfyA2xV0kgwF1vei8Ui7ld joddnHExf6fXSADiYSCPI1VObbv5Q0lFLsl0S7Wj0S2T1GN1/Jf3F6w9UI6cDhXeJ+d9Ka wpFHHwYBv3KRAFTFVEBCDfmcu8RKwaLhCRnB4ae2hyRwc7xuEio4L+cK671vyDoTYKeMsB c9dPDlyuHq92xuPKFupBkX7Tto8GOXXFOqE/aJFl9NLlC3rUazO9ccvJr1ab+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623450256; a=rsa-sha256; cv=none; b=gO7hontzIS+xIRyGEsG9Y+MhQDA3ZNQcgfYbz41eDBHLgyBg1LMkqGhCTjWB+KrEo2iPsR 46atjuaUiouhx57NwSjbnnDKO3CXC9BIVDzvety6/cErlVUeZb15zXq14vi3TYBZPp+2cj cpr5b5cp/j78rbFLZAPW8/zUb71sFgiSI/b16qyqg9Y2+8eF4FCVADoyOInxPMzmN9edDF nVKzHVIZ5eSvGOZQGNHLqkwn3PTfg1QEyV7Pi31mQ/tbuisVLh0TkFjlzQsoHcmENVc+j+ 4H6f3U9nuURItibHpaz9QOGbgYcqt3AVupfeKGS/DfsFtcfF86Klge7MjWO+PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="nP3RY/eY"; 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-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="nP3RY/eY"; 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: 64E74142D8 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0fcPup2lRWNQ Hi Guix! 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)). 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)... GC Warning: Header allocation failed: dropping block GC Warning: Out of Memory! Heap size: 2571 MiB. Returning NULL! Warning: Unwind-only out of memory exception; skipping pre-unwind handler. after some more progress and a lot more warnings, the build stops (CPU is at 2%), but the memory is not freed. The build stayed stuck for a long time until I decided to cancel it. As a work-around, I tried using the guix-daemon package instead (by changing the guix field in guix-configuration), but "guix system" still wants to build the guix package anyway. I tried finding usages of the guix package (grepping for "package-management" yields a relatively short list of files, and none of them seems to be used by my config, except (gnu services base) which always uses the guix from the configuration). Why? 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?