GNU bug report logs - #57474
compute-guix-derivation fails due to insufficient memory

Previous Next

Package: guix;

Reported by: "Michael F. Lamb" <mike <at> orbital.rodeo>

Date: Mon, 29 Aug 2022 10:44:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57474 in the body.
You can then email your comments to 57474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57474; Package guix. (Mon, 29 Aug 2022 10:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Michael F. Lamb" <mike <at> orbital.rodeo>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 29 Aug 2022 10:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Michael F. Lamb" <mike <at> orbital.rodeo>
To: bug-guix <at> gnu.org
Subject: compute-guix-derivation fails due to insufficient memory
Date: Sun, 28 Aug 2022 21:57:09 -0700
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 01 Sep 2022 16:43:01 GMT) Full text and rfc822 format available.

Notification sent to "Michael F. Lamb" <mike <at> orbital.rodeo>:
bug acknowledged by developer. (Thu, 01 Sep 2022 16:43:01 GMT) Full text and rfc822 format available.

Message #10 received at 57474-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "Michael F. Lamb" <mike <at> orbital.rodeo>
Cc: 57474-done <at> debbugs.gnu.org
Subject: Re: bug#57474: compute-guix-derivation fails due to insufficient
 memory
Date: Thu, 01 Sep 2022 18:41:54 +0200
Hi,

"Michael F. Lamb" <mike <at> orbital.rodeo> 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 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.

It looks like the memory requirements to build the latest revisions of
Guix have increased (and this is a bit ridiculous).

I checked with
<https://ftp.gnu.org/gnu/guix/guix-system-vm-image-1.3.0.x86_64-linux.qcow2>
and ‘-m 2048’ gives us enough headroom, so I modified the manual
accordingly in commit 98a8b48a69b8208475c9a1e40d09517f8643b8cb.

Thanks for your report!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Sep 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.