From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AH55EmvnEGOWOwAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 19:10:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cOpWEmvnEGNmXgEAauVa8A (envelope-from ) for ; Thu, 01 Sep 2022 19:10:03 +0200 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 21679EB05 for ; Thu, 1 Sep 2022 19:10:02 +0200 (CEST) Received: from localhost ([::1]:45338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTnhZ-0003M9-Pp for larch@yhetil.org; Thu, 01 Sep 2022 13:10:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTnHS-0007qn-AM for bug-guix@gnu.org; Thu, 01 Sep 2022 12:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTnHS-0004HV-1A for bug-guix@gnu.org; Thu, 01 Sep 2022 12:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTnHR-0006mJ-Tf for bug-guix@gnu.org; Thu, 01 Sep 2022 12:43:01 -0400 Subject: bug#57474: compute-guix-derivation fails due to insufficient memory Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 01 Sep 2022 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57474 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Michael F. Lamb" Cc: 57474-done@debbugs.gnu.org Mail-Followup-To: 57474@debbugs.gnu.org, ludo@gnu.org, mike@orbital.rodeo Received: via spool by 57474-done@debbugs.gnu.org id=D57474.166205052725984 (code D ref 57474); Thu, 01 Sep 2022 16:43:01 +0000 Received: (at 57474-done) by debbugs.gnu.org; 1 Sep 2022 16:42:07 +0000 Received: from localhost ([127.0.0.1]:44014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTnGY-0006l2-OM for submit@debbugs.gnu.org; Thu, 01 Sep 2022 12:42:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTnGW-0006kY-L7 for 57474-done@debbugs.gnu.org; Thu, 01 Sep 2022 12:42:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTnGR-00048J-4R; Thu, 01 Sep 2022 12:41:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=fX1xhRuLdWgf2gQZEc21wtk/FHE0OhDJNDkB85/CbI4=; b=TfOtGRiX3F+QGWUXBXId VwPO9Si2ybM5OFkK9Nh5JKQdu95i23rDeekSxUTWQamlSN/Nk78HZTiJ/ERe4ArT0s/uNUAca04Mg 51U2MVezPanhyNY9kAeqIa4MglzHE+Ti62ajWjkM5y5GwniIl7j5xskmxtnUtL03nfzJXWsZG1035 N4x+V1708Lme1ZPqIB78wiMpIwx68uU+FO15OyU6i90/yTVEJDjwa1BZ4K3O07Abt+LBWZOQIbpzy 52XIdwKPpyE0Pnm9rwaw0rEE6Lp+QM+aHHdT/Tl6S6BbPWUGvKBwy4POyA0xZthXGyZ8zVoldLV/J f/wboKe7gWD/Vw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:51158 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTnGP-0008U9-I0; Thu, 01 Sep 2022 12:41:58 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <4a77aad2-3a62-4c92-abf6-5975fbc1be2b@www.fastmail.com> Date: Thu, 01 Sep 2022 18:41:54 +0200 In-Reply-To: <4a77aad2-3a62-4c92-abf6-5975fbc1be2b@www.fastmail.com> (Michael F. Lamb's message of "Sun, 28 Aug 2022 21:57:09 -0700") Message-ID: <87o7vzyrl9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662052203; 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-to: 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=fX1xhRuLdWgf2gQZEc21wtk/FHE0OhDJNDkB85/CbI4=; b=HXGX2g/OKKbHCwQD/ubQeROLzaenHe5I0eq8rHQEUJI0aS8Q4yfQDaj7QRSI2RziqMZKOJ dv5Cy+QSTBuwIbEsy2qe5MkAdFV/aRLLEkSvaU5cHdi0kR8cQvXdN5WA0JesXD1ORVORkC xoKw5qWpAlV7g8grLb4++OuyKodnqsH3WVwsNKg6ABs7SIcCD06+HC9b9U+eE4xRqEWS8N b+3ub/fifXw98whrqCYpanqfN4P5jV1I7wgvXS+8iLhwvGujYPo/gvlTVUrI13xCZERh0b JU8VxbB1AnHBjt4uxgVuiKdKqo5Ew39dGxnned+Z9uE35Y/aUm2CDgfWkz/1MQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662052203; a=rsa-sha256; cv=none; b=a3ajR6Rfja3TVEgefW/jOsSnysaVxKN0LUIGgyrVddZhsrlDjM9zvzMg/qAsEaI4n88LA9 OZBNC+lazaWeRo1N/n8AJVsf4AyBBZHYySSjMUflGNvKQFL5s+Z/lBGWFPAK1nll5w37oI ZG+mQI1ZOaMQ1aLRK6wvMUh9kXU8Vg9rx4XIRsOFLRr+VHdyh0wJVNNDHj+TRXkhmace9y s2k33IRPoN+XyUqKMTdN/lVOj/rH4f2rYyN92DwLlpqOH6puW6QKBNO6RNZdt5PwraXgCr cGMHSw5OgATHXPJhYEZUuyfuwCOQPGqlRE5NsirMv0Afy+jy1hgiurWVxp2pNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=TfOtGRiX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=TfOtGRiX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 21679EB05 X-Spam-Score: -3.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3iQTXFdrHedU Hi, "Michael F. Lamb" skribis: > I was following the instructions in the Guix Reference Manual for running= Guix in a VM using the pre-built qcow2 VM image: > > https://guix.gnu.org/manual/en/guix.html#Running-Guix-in-a-VM > > The documentation instructs me to create a qemu VM with the option '-m 10= 24' which provides it 1GB of RAM. > > After doing so, each time I attempted to run 'guix pull', I received the = error message: > >> You found a bug: the program '/gnu/store/...-compute-guix-derivation' fa= iled to compute the derivation for Guix (version: "..."; system: "x86_64-li= nux"; host version: "..."; pull-version: 1). > > Searching for this error message led me to many reports where "just run '= guix pull' again" eventually worked for the reporter but such was not the c= ase for me. > > Watching "top" while running "guix pull" showed the memory usage increasi= ng to 100% whereupon "guix pull" fails. I set the -m option to '4096' and t= hereafter 'guix pull' worked for me. > > A few approaches you might take: > > 1. Make 'compute-guix-derivation' or the process that executes it better = at reporting what variety of failure has occurred. > 2. Change the docs to increase the default amount of memory granted to th= e VM. (But this might not be helpful for users with older machines and limi= ted available memory.) > 3. Change the docs to provide the VM with swap space. > 4. Attempt to reduce the amount of memory compute-guix-derivation require= s to complete. It looks like the memory requirements to build the latest revisions of Guix have increased (and this is a bit ridiculous). I checked with and =E2=80=98-m 2048=E2=80=99 gives us enough headroom, so I modified the m= anual accordingly in commit 98a8b48a69b8208475c9a1e40d09517f8643b8cb. Thanks for your report! Ludo=E2=80=99.