From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AG6GMzTkw2DXOwAAgWs5BA (envelope-from ) for ; Sat, 12 Jun 2021 00:31:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CFLgLjTkw2ByAwAAbx9fmQ (envelope-from ) for ; Fri, 11 Jun 2021 22:31: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 105281DAB7 for ; Sat, 12 Jun 2021 00:31:16 +0200 (CEST) Received: from localhost ([::1]:44542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrpgI-00019t-Pe for larch@yhetil.org; Fri, 11 Jun 2021 18:31:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrpg6-00019l-Ea for bug-guix@gnu.org; Fri, 11 Jun 2021 18:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrpg6-0008RR-6p for bug-guix@gnu.org; Fri, 11 Jun 2021 18:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrpg6-0003Jc-4p for bug-guix@gnu.org; Fri, 11 Jun 2021 18:31: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:31: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: 48963@debbugs.gnu.org Received: via spool by 48963-submit@debbugs.gnu.org id=B48963.162345062712694 (code B ref 48963); Fri, 11 Jun 2021 22:31:02 +0000 Received: (at 48963) by debbugs.gnu.org; 11 Jun 2021 22:30:27 +0000 Received: from localhost ([127.0.0.1]:40046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrpfX-0003If-3w for submit@debbugs.gnu.org; Fri, 11 Jun 2021 18:30:27 -0400 Received: from lepiller.eu ([89.234.186.109]:44388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrpfR-0003IR-In for 48963@debbugs.gnu.org; Fri, 11 Jun 2021 18:30:26 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 27271df4 for <48963@debbugs.gnu.org>; Fri, 11 Jun 2021 22:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=EbcBDlaU+/pX rhvWWaaF9MJhxif+Rc97IUm4SJxEx1I=; b=EgP+MhWpSEvqr8kPuG+m+kXP4b9x 7fAHbBOxoaNocSClP6fha8uuIJUiuPFfJyoNHWULv5VBCE5U6eMNCTROG7eP6sjI BH8adiVkse9zDWzYfNEt8A/XSAmTKH+E7ygKIUC5y6lyLcUAnwjVggt+HThRuNi7 6/KFp3xDneleMeKr3RYL/kHogrUirpfOUuVJzqlun1NyVtou3Wf0t3XurUDi/gAV 9FdUKLfwMVTNTZULHVk9znsfXJvU107qjXWeT/wS69KWNRKWhiLeml6ZA48AmpZm hlygnCsGx9Dm7W1SkAzdKTdcgZMok+qJs6H7P5B9iP3VW9ubL97TvLqXRQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 59c29b4f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <48963@debbugs.gnu.org>; Fri, 11 Jun 2021 22:30:19 +0000 (UTC) Date: Sat, 12 Jun 2021 00:30:14 +0200 From: Julien Lepiller Message-ID: <20210612003014.6f9481de@tachikoma.lepiller.eu> In-Reply-To: <20210612002330.64cd06c1@tachikoma.lepiller.eu> References: <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=UTF-8 Content-Transfer-Encoding: quoted-printable 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=1623450676; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EbcBDlaU+/pXrhvWWaaF9MJhxif+Rc97IUm4SJxEx1I=; b=MK/uuoYzb31WAPzk1LnoyrF+bNABBcE7UB1drZUQ8FhgMZQrSNWKUvL0g5QULW8zMH9jW1 gKKFCAc7L943dbnWfZorYno1i2yAp9ZTrRGXZiTR+yfxBjeg/QpocIJiCr3NOtdPyHkUxu Lo0y3KyEzaCdZb1hPZ94HE5SvNn8IJd+ux59PAFybO95lLJJARZPe4d1rIECUrWYHJn18L TmTP7mTPgNmih4DYRoszV5AgRwFu5uzAtB2bnBBmQixiFHJwEooI8B79xzc/Kg6ga/lIrA 8Cbt22DzTRpCFp2MV2Z2A9hV1hewaAWo7lhW3c+lfairzNxfieYO602OcSklDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623450676; a=rsa-sha256; cv=none; b=h+Et6Lu0sNG0Sq7srDEA4DiwSTNbjROA90b9X8Hssz21vje6YZzhlXsTWAAlE6YKroaoGj CCPuqGqTw+BdoJSdGyObUVvH8swnLBA3BQXkb+Jao+NcYoz2kIc9SrteEFaAFcA0qq732G Pw8TnDNYZ3/fCqzYaGNk9MgCn2su4HUpoMyYQi5Wh37JdmvozrFqiFritpfwQ0yFVhVSSO pGVKyy6wZbm+swhGbT19/bleg6nVpuoTZvr5cxNEjyhED1Ux7hBCjAANm4g8NlA7/Sz1BW Uy7UUvJCqjORHAnv0ZNNbMfCCeBsb169JZA1IAb5hu8drl8h8rOQ4FU+Oljn/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=EgP+MhWp; 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=EgP+MhWp; 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: 105281DAB7 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: PrSgKljM7WXv Le Sat, 12 Jun 2021 00:23:30 +0200, Julien Lepiller a =C3=A9crit : > Hi Guix! >=20 > 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: >=20 > 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. >=20 > 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. >=20 > 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? >=20 > 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? >=20 >=20 >=20 also note it's not an OOM issue at the system level, because guile doesn't seem to care I have 8GB of free swap it could use. Top reports 1.8GB of resident memory being used by the process. I tried to stop all services at the time in the hope it would save some memory and help, but guile just kept swallowing all that free memory I gave it.