all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Michael F. Lamb" <mike@orbital.rodeo>
To: 57474@debbugs.gnu.org
Subject: bug#57474: compute-guix-derivation fails due to insufficient memory
Date: Sun, 28 Aug 2022 21:57:09 -0700	[thread overview]
Message-ID: <4a77aad2-3a62-4c92-abf6-5975fbc1be2b@www.fastmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2173 bytes --]

             reply	other threads:[~2022-08-30 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29  4:57 Michael F. Lamb [this message]
2022-09-01 16:41 ` bug#57474: compute-guix-derivation fails due to insufficient memory Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a77aad2-3a62-4c92-abf6-5975fbc1be2b@www.fastmail.com \
    --to=mike@orbital.rodeo \
    --cc=57474@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.