From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4CjcGgXhmGBLDgAAgWs5BA (envelope-from ) for ; Mon, 10 May 2021 09:30:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SF6OFgXhmGB4GwAA1q6Kng (envelope-from ) for ; Mon, 10 May 2021 07:30:13 +0000 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 C76CEFEEB for ; Mon, 10 May 2021 09:30:12 +0200 (CEST) Received: from localhost ([::1]:37864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lg0Mk-0003eg-Rj for larch@yhetil.org; Mon, 10 May 2021 03:30:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg0Md-0003e1-5W for bug-guix@gnu.org; Mon, 10 May 2021 03:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lg0Mc-0000B6-UD for bug-guix@gnu.org; Mon, 10 May 2021 03:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lg0Mc-00045L-Q5 for bug-guix@gnu.org; Mon, 10 May 2021 03:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48178: Out of memory error when generating a docker-image. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 May 2021 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48178 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Roel Janssen Received: via spool by 48178-submit@debbugs.gnu.org id=B48178.162063176715640 (code B ref 48178); Mon, 10 May 2021 07:30:02 +0000 Received: (at 48178) by debbugs.gnu.org; 10 May 2021 07:29:27 +0000 Received: from localhost ([127.0.0.1]:57276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lg0M3-00044C-Ab for submit@debbugs.gnu.org; Mon, 10 May 2021 03:29:27 -0400 Received: from flashner.co.il ([178.62.234.194]:51678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lg0M1-00043w-Jq for 48178@debbugs.gnu.org; Mon, 10 May 2021 03:29:26 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 8B9BF40488; Mon, 10 May 2021 07:29:19 +0000 (UTC) Date: Mon, 10 May 2021 10:29:14 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Roel Janssen , Leo Famulari , 48178@debbugs.gnu.org References: <2f30ed4cd1e7154fc49f800a2d8950df2ac6bc8f.camel@gnu.org> <5578dcab6d15ae85a544b92f03b6a5d89223967c.camel@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RGVkr1evRUOnV7/J" Content-Disposition: inline In-Reply-To: <5578dcab6d15ae85a544b92f03b6a5d89223967c.camel@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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: , Cc: 48178@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620631812; 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:resent-cc: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; bh=BE5U640SNy7fKd1UL9q9I4LpQKwxlRRigchyagmIHPE=; b=kpZyCRpCpULUX0iXqNLvJfivMZUKox/e+sJ3qkIFZpdQHKRn60UFKIwrYQHPGVGF7cTvBc K/eY4K9255qy/bi36JU+xMeh6nqUiVl2gkS2FDzAPjCLKhEr8J+xriMDN5ROVVNyK9xXJk o7wMxgUSxUIzOPDmks1cjPasWsYYvn12So5nUA0W4SpW7paCmu64M7atKAsiIr6vYm+hvl 4Uzb93ZG9gAgnRrah7WuStR625T5NN/j1t4p060bSNu4712HmU0rgl0mQN/QLehfrgggez p+8wbv575caqoygmNbJLsjgiLT6sHo9LptJur5xk0bG6UCp26bBKndPZZrYzqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620631812; a=rsa-sha256; cv=none; b=Y+S4XZio2oO4Ejku3Basp5hzUojLVJTm25PjB4hzvmGpcSNCpDBIWMGZ+8Nrb3sjOMwKay OUpDh7dtGspDMDdIGdHfX2CSG8Pk7DqUWaW0DofE3+oUFwxIzOjbfgUlYPgQk4yKkVlSb+ cNkYMyo/vgD9Z1iQUgcebY0MJ60lfh80/ugNkw5lGcmNoODIiPBXdKgbcyQ9FuQqCL+FK4 BGaY+YtjRH8Q11FAxdSc14XjsIQ2fBa90GsrM4C0ICq5i/KI15FWRg5y5eBHJLaX9VYugc W6YrQVOlQmN9763FMggOGGQu2SzTe9lvK5HYIUKxd+gxq+Xx/qD1/R7Z8aXCeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: C76CEFEEB X-Spam-Score: -4.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: /EhjsQpSq1D7 --RGVkr1evRUOnV7/J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 03, 2021 at 07:47:49PM +0200, Roel Janssen wrote: > On Mon, 2021-05-03 at 12:39 -0400, Leo Famulari wrote: > > 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.=C2=A0 After bumping that to 4096M, I was able to > > > produce a docker image. > >=20 > > 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. > >=20 >=20 > I monitored the VM's memory usage and it peaked at 1.6G. But after > testing, it seems 1024 also works. >=20 > I tested with 2048 (worked), 1024 (worked), and 512 (didn't work). >=20 > > > I'd like to see what we can do here.=C2=A0 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. > >=20 >=20 > In that case... The attached patch would only increase the size when > generating a Docker container image. Would that be acceptable? >=20 > > 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. > >=20 > > > Would it be a good idea to make it configurable at run-time? > >=20 > > Yeah, maybe. > >=20 >=20 > I think it'd be better to have it somehow dynamically increase, but I > don't see how I could determine the VM size needed for a given system > configuration. So perhaps the attached patch is an acceptable > compromise. >=20 > Kind regards, > Roel Janssen >=20 Looks good to me! --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --RGVkr1evRUOnV7/J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmCY4MoACgkQQarn3Mo9 g1FEow/+MY9PlN5OaK4wwuR6aFG+J3hLk5RxIrD8FBEwjsVTrbcWqkXDtimwBBZE A3JNtOZK/Qh8W9gFuMtksmEQC5FjhJkZwUPve53ThB4TiAbCmGHdH6Hsu1//Mzb2 BnoLjzrt3YHepTmvr5P/UYQvA1ris+k3M1WfWGnBKaeXeN8BgdKgZR+rHLuiNUsn 7rSzZGYvCF038yk72P5MBJEK/4zqaJyE1eZNsX63WNjyrA3oWf2/l+D20xx1erbS YK21Tok5Kx7XT8FfxwwyUZDAXfVkZ/dyYFD6qfomRPjBcENsjPlwQIGB8X1tui50 c5C+MVzDwWQkoMXcIZp+3d+JdXssh4LjwYfwSQ8rmI4FJhNRzmcEHVjTfryTsfAH eqUeJLA5+VEeE/qeP42DgPsFOAscDtlXPOX6rRb1e778Z5Jv2EwQmQI3ljvzDX1p MBDLGAJVAkx4XsvQ4ukX1Y8mCuuPMhk2fdePGBn8OhLB7g2VrrhWnBn+jH4yQuoK tRVdTZzlRTrzsZgyO8fWKmx97qPpp5buHgiBgEzRt9Ld2KM0lFRqTG1P7z88zjwP Hwmry1UqPkLhCvi5cfXfsOyjnCq0JQ0+Uaic1sKgR70OxPnxFMthXB6xRQV6mJvm IHBOiP5Z30dJJpXv1eyjcYQDKHMGPDMr0Zhs0lFaVGUYJRnMGfg= =XSpy -----END PGP SIGNATURE----- --RGVkr1evRUOnV7/J--