From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GESOECDrDWOaaAAAbAwnHQ (envelope-from ) for ; Tue, 30 Aug 2022 12:49:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QB+gDyDrDWNRDgAAG6o9tA (envelope-from ) for ; Tue, 30 Aug 2022 12:49:04 +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 B7540147B3 for ; Tue, 30 Aug 2022 12:49:03 +0200 (CEST) Received: from localhost ([::1]:44290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSynl-0006y4-Ec for larch@yhetil.org; Tue, 30 Aug 2022 06:49:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oScFO-0005Qy-DG for bug-guix@gnu.org; Mon, 29 Aug 2022 06:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oScFO-0002eh-4H for bug-guix@gnu.org; Mon, 29 Aug 2022 06:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oScFN-0008G4-W4 for bug-guix@gnu.org; Mon, 29 Aug 2022 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57474: compute-guix-derivation fails due to insufficient memory Resent-From: "Michael F. Lamb" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Aug 2022 10:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57474 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57474@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166176982431703 (code B ref -1); Mon, 29 Aug 2022 10:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Aug 2022 10:43:44 +0000 Received: from localhost ([127.0.0.1]:60204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oScF5-0008FF-0F for submit@debbugs.gnu.org; Mon, 29 Aug 2022 06:43:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:47032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSWq7-0007bv-9g for submit@debbugs.gnu.org; Mon, 29 Aug 2022 00:57:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSWq7-0007MB-44 for bug-guix@gnu.org; Mon, 29 Aug 2022 00:57:35 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:42265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSWq4-0007pR-GK for bug-guix@gnu.org; Mon, 29 Aug 2022 00:57:34 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D280F5C00F8 for ; Mon, 29 Aug 2022 00:57:29 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Mon, 29 Aug 2022 00:57:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orbital.rodeo; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1661749049; x=1661835449; bh=pVgdVZjVj3P3Fgo79q4ymA84GA4VvMRwt4H UtEjqqa4=; b=TlOU0YW8MKOtbAKx5uwMcK8EsZwWqx2k4a7pFAGLt9JU3FcHERF X4f4nKziW7cGo59gf1qQAXo7Hdd99UAMbLsEAYWB+5xO5v3MqWjZ7Rksl+3wgH2d wZ3k8BJ5mUdhXvV3yYwDEEciv4+gqwT7u23tHeeFWFmNt2IoqaadFmTuDiC68q68 KDn3+LxUv8XXNxcIVUmOA1uSkcO+6Vok4kB4ejVwZLsiEIWpZQK5fNbBps8McXy1 wGo1KzTfTfos1qBhniZyW//ZeLrVIZDbLmGeH5fy3NqL79bhJdNKdygbqUStHRiR nFduLrTSXzbMthwQ+oMUEvVxxV7akP9DzvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661749049; x= 1661835449; bh=pVgdVZjVj3P3Fgo79q4ymA84GA4VvMRwt4HUtEjqqa4=; b=q xwtNU5sT3NqqYRUcMm+tmoIvRON5OBlHdhtUcJs7ZG+jNlVt6wUTIzZ2hl9r/pg+ rCTJZAgVDkF88kOLqFmIDX28y8tKGy67SjPbrj4gHMekrRxT7svyJoH7RiNzxDar ClPecuceQZA7WJ3p33pWtjOccTxtwPjGFcL/FRpTUedO0ZrOiLiru6n/uEsRak/p LI22CuvBVnedCWm2zlbgxcD8dxBY12ZnQh588ktf6GsKGgA5SpyyobARAtfAbL8l 27fuf7taLOArSHIF5Nb+a4HV8bUn141HS6XbshdNxVfRBf0awYqbxqjfOETnxJ7l W0MdZo02c1wXJs8BEDLEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdektddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedfofhitghhrggvlhcuhfdrucfnrghmsgdfuceomhhikhgvseho rhgsihhtrghlrdhrohguvghoqeenucggtffrrghtthgvrhhnpeevleejjeejffehhfeife evueeuuefffefhhedvgfejvddufeeuhfffledvhfelffenucffohhmrghinhepghhnuhdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmihhkvgesohhrsghithgrlhdrrhhouggvoh X-ME-Proxy: Feedback-ID: i22a94624:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 983351700082; Mon, 29 Aug 2022 00:57:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: <4a77aad2-3a62-4c92-abf6-5975fbc1be2b@www.fastmail.com> Date: Sun, 28 Aug 2022 21:57:09 -0700 From: "Michael F. Lamb" Content-Type: multipart/alternative; boundary=74f4f31847aa43e5b045cd053ce0b0c7 Received-SPF: pass client-ip=66.111.4.29; envelope-from=mike@orbital.rodeo; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 29 Aug 2022 06:43:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 30 Aug 2022 06:48:32 -0400 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=1661856543; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=pVgdVZjVj3P3Fgo79q4ymA84GA4VvMRwt4HUtEjqqa4=; b=UITPE98KM1TT6uJZHMVcA3YWYub0mX2VEgFbp7VpvPbgdGa/vsx9eY5rluCIUXV1UfFqzJ sVzGS9IRD9iTy1PPfPEDR5yNWnPYmtzUxJ+ToiiHNAIfqVDcUPVYAYXYMkzCwuCkV92i78 rJ88q1HWCotbciC+zQ2mqYU/GeaXb5lzkG3/BOEYRWZrA3jYER3IjTsohrTGe7OtIxBLR3 9JF77ut1Hp/lbd46UvK80Z+S5weoSvz40DG2iGPT8Ikw9/jCWkYm2WZig7vcJdKE/oZ67N iokTLmoyqmYhp3zYP1EGTTnZOkLAh4iU9us7qYoO7eIlWJAb2CJ7L0yfY82egA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661856543; a=rsa-sha256; cv=none; b=UUTTzOFjbWZ7MzIYTV6h3BBoQIdSOCevny0mzhRdcleXG3Uq5IiHc2mFwBx6mBKjicBgdG ONq+tNrUfv0JhZoFAoZFQdIEZyoEJlp1fEgOAiDPKisTjfNAkL3Tuiz/FiMZLIcvVij9QQ Fl0XYwi4/xVUqjWMFGBw7e/lLToueS+1O2SpP9jiGJYVZBkUIT6fbQmOWbbyw1PIvqYTmK N4SS2jg2zrcMPt6cQNVShUuGwzvSYEIHvdwzczFNcluTWjEtAzzf96cxIIO+mH+62A2jm9 PnrlHPBjsrDGboI/T3HGz3yjSNBsYIQRWHbG+npXrvkqJd62muxRQ6g02D1EUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dmarc=none; 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: -1.08 Authentication-Results: aspmx1.migadu.com; dmarc=none; 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: B7540147B3 X-Spam-Score: -1.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: sWt5qHs8PsXT --74f4f31847aa43e5b045cd053ce0b0c7 Content-Type: text/plain Hi Guix maintainers! 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 1024' 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' failed to compute the derivation for Guix (version: "..."; system: "x86_64-linux"; 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 case for me. Watching "top" while running "guix pull" showed the memory usage increasing to 100% whereupon "guix pull" fails. I set the -m option to '4096' and thereafter '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 the VM. (But this might not be helpful for users with older machines and limited available memory.) 3. Change the docs to provide the VM with swap space. 4. Attempt to reduce the amount of memory compute-guix-derivation requires to complete. Apologies for lack of a patch; hopefully once I have some more experience with Guix I can help out more directly! Cheers, Mike --74f4f31847aa43e5b045cd053ce0b0c7 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi Guix maintai= ners!

I was following the instructions in t= he Guix Reference Manual for running Guix in a VM using the pre-built qc= ow2 VM image:


The = documentation instructs me to create a qemu VM with the option '-m 1024'= which provides it 1GB of RAM.

After doing = so, each time I attempted to run 'guix pull', I received the error messa= ge:

You found a b= ug: the program '/gnu/store/...-compute-guix-derivation' failed to compu= te the derivation for Guix (version: "..."; system: "x86_64-linux"; 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 case for me.

Watching "top" while r= unning "guix pull" showed the memory usage increasing to 100% whereupon = "guix pull" fails. I set the -m option to '4096' and thereafter 'guix pu= ll' worked for me.

A few approaches you mig= ht take:

1. Make 'compute-guix-derivation' = or the process that executes it better at reporting what variety of fail= ure has occurred.
2. Change the docs to increase the defau= lt amount of memory granted to the VM. (But this might not be helpful fo= r users with older machines and limited available memory.)
3. Change the docs to provide the VM with swap space.
4. = Attempt to reduce the amount of memory compute-guix-derivation requires = to complete.

Apologies for lack of a patch;= hopefully once I have some more experience with Guix I can help out mor= e directly!

Cheers,
Mike
<= /div> --74f4f31847aa43e5b045cd053ce0b0c7--