unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Roel Janssen <roel@gnu.org>
Cc: 48178@debbugs.gnu.org
Subject: bug#48178: Out of memory error when generating a docker-image.
Date: Mon, 3 May 2021 12:39:04 -0400	[thread overview]
Message-ID: <YJAnKAe7HCWy/lpd@jasmine.lan> (raw)
In-Reply-To: <2f30ed4cd1e7154fc49f800a2d8950df2ac6bc8f.camel@gnu.org>

On Mon, May 03, 2021 at 12:09:36AM +0200, Roel Janssen wrote:
> Looking at 'guix/scripts/system.scm', it seems that we always pass 256M
> of memory to the VM.  After bumping that to 4096M, I was able to
> produce a docker image.

Can you test somes values that are in between? Like, 512M, 1024M, etc,
until we know how much is actually required? If 512M is enough, I don't
see a problem with increasing the hard-coded value to that.

> I'd like to see what we can do here.  Assigning too little memory leads
> to problems generating the container, but assigning too much memory wil
> l cause problems for computing machines that don't have much memory to
> spare.

There are some use cases for this code that we'd like to work on
low-resource machines (`guix system vm`), and other use cases (like
building Docker images) that shouldn't be expected to work on machines
with limited RAM.

> Would it be a good idea to make it configurable at run-time?

Yeah, maybe.




  reply	other threads:[~2021-05-03 16:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 22:09 bug#48178: Out of memory error when generating a docker-image Roel Janssen
2021-05-03 16:39 ` Leo Famulari [this message]
2021-05-03 17:47   ` Roel Janssen
2021-05-10  7:29     ` Efraim Flashner
2021-05-10  7:46       ` Roel Janssen

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=YJAnKAe7HCWy/lpd@jasmine.lan \
    --to=leo@famulari.name \
    --cc=48178@debbugs.gnu.org \
    --cc=roel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).