From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aITEHE//zmLiEgAAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 19:22:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SN6uG0//zmIjSQEAG6o9tA (envelope-from ) for ; Wed, 13 Jul 2022 19:22:23 +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 78AAF30ED2 for ; Wed, 13 Jul 2022 19:22:21 +0200 (CEST) Received: from localhost ([::1]:51262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBg44-00011o-Mo for larch@yhetil.org; Wed, 13 Jul 2022 13:22:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBg3m-00011E-Er for bug-guix@gnu.org; Wed, 13 Jul 2022 13:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBg3m-0004Un-6P for bug-guix@gnu.org; Wed, 13 Jul 2022 13:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBg3m-0002BM-2I for bug-guix@gnu.org; Wed, 13 Jul 2022 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#39813: Running Guix in a Virtual Machine - says 1 GB RAM is enough, but it isn't for guix pull Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Jul 2022 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39813 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 39813@debbugs.gnu.org, raingloom@riseup.net, maxim.cournoyer@gmail.com Cc: dannym@scratchpost.org, 39813-done@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org, Csepp , Maxim Cournoyer X-Debbugs-Original-Cc: dannym@scratchpost.org, 39813-done@debbugs.gnu.org, 39813@debbugs.gnu.org Received: via spool by 39813-submit@debbugs.gnu.org id=B39813.16577329198366 (code B ref 39813); Wed, 13 Jul 2022 17:22:02 +0000 Received: (at 39813) by debbugs.gnu.org; 13 Jul 2022 17:21:59 +0000 Received: from localhost ([127.0.0.1]:47670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBg3i-0002Ar-QK for submit@debbugs.gnu.org; Wed, 13 Jul 2022 13:21:59 -0400 Received: from lepiller.eu ([89.234.186.109]:43906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBg3e-0002AT-MU; Wed, 13 Jul 2022 13:21:57 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 85b89ae7; Wed, 13 Jul 2022 17:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=t1i1/0OBvcJL JOJfI1tH8y88rQdoaygWa5leD9j2NiA=; b=mwNPKJGez57lu+CUjV9HJYQ8dP9r WSGrhCAEc7s3LtkJ+SXwF9Lfzzjdou/1Kae5c/ahCJq4sWbDhS1a+JrnxFQlEGwp 7Vr95Kv3x06j8FSiUPMyxbqCgDCq/9JABtfaI/jtaSuv8nK5wTzFksNLaLf/ayFj 9gxoJ+axjYtDaedVvzqCyEY7alQ9kO0KT/8LSj/uFNUeFLNeZ2XCynLtffV7NnQt 8/s98T9f7Q9HHCLhUBIa2gD10aXGoFAFlO/3d4RqzEMd/iHIuFkCOz0vlLpMETya 3smG9tIRNC0Y5ME1dxWp2PJCYGSqECpynRWBsae7KbXC6eZCY3ni1apXgw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id cf819f34 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 13 Jul 2022 17:21:51 +0000 (UTC) Date: Wed, 13 Jul 2022 19:21:45 +0200 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <87lesx7xsx.fsf@riseup.net> References: <20200227210601.20011001@scratchpost.org> <877d4h159j.fsf@gmail.com> <87lesx7xsx.fsf@riseup.net> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----XA2CGGQ6E3W8UVTKZPZ9GYXZ1RD8SP Content-Transfer-Encoding: 7bit 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: , 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=1657732943; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=0ZiwpimMRSxm3sieN2opZx+cGAM3b7FXNx1X6DJA9T8=; b=bVbYyW3hyqzibZqcB7+QRcwUFqhq/5EAAHdG9ZwUOfvh52IgcRRHu0Ulx6GDRfkGlqjgeK sNnhBwQPsTE2jrC1sqvq5UcT7GU/2NsN3IBAzT2WW5lqLNM1i3XQwBmThb3yBGRQhb6OHS FRJjqiddnW2hBoJAnYe4hZFVeu1wwBv0/xS7xHMjv6KstxsXl9Ar+eWmkdQsT2Abos4ba4 xdNUuTkYw1kR3CSiDpq8pKsqsRELSwNQ3FkxxYRn8x37tih4/56QCQmVpubnsyfEi4vBmQ oQZhb3yb6vQEcT+XMN3La48eSdXy3EAF6N1L/7GJOKuyPPmOKXJug9h5hmjgDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657732943; a=rsa-sha256; cv=none; b=Ya1k1rKZzThwBTO4zEXE1AhEwtFADZ6D6hntW4FgZeXphHkkyOXFinEc6kTL/KuFfrS8BH WHolvbrde2bRqX6PX65TxjLnLzvu7F7fOw0ghxM1rW+vr9CqtduVsdAIQoGkydpaH7YeAS Qki8ZsqhjCgDD5J0Ec+3wg6NJMgNs8q7yQ+G7xZ6y00NXdbkq0+FmIrvE3Pau8c1bF9ITh MAs+idavPW5L9m9xDvbBaQUJvqrfxX9SbAdASubKvG/TTtzzuI68Rghe4dTYnj/NdKF2AH t0zNhpz1HRsSz+DtsHvf6LTAXr1Uqp+NrEsDxfhMhIBIBDIMaGiP8eJysOFjlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=mwNPKJGe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 7.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=mwNPKJGe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 78AAF30ED2 X-Spam-Score: 7.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: KvGwVp8517Ra ------XA2CGGQ6E3W8UVTKZPZ9GYXZ1RD8SP Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I've heard that theory before=2E From observation on my late armhf server (= two cores): - it takes just below 2GB to build one of the derivations - It doesn't swap a single byte - whether with two or a single core, it takes roughly the same amount of m= emory - substitution is nice, it doesn't require lots of memory (and then --core= s is useless) I think it's because we load all the files in a batch before we build them= =2E The biggest amount of memory required is not for running the compiler o= n a thread, but for loading files and keeping them in memory for the whole = duration of the build=2E With more threads, we still don't load each file m= ore than once (twice to build it), so there's no reason it should take more= memory=2E Or maybe the process of loading and building is inherently single-threaded= ? I don't think so, but maybe? Or it doesn't honor --cores=2E Le 13 juillet 2022 18:58:58 GMT+02:00, Csepp a = =C3=A9crit=C2=A0: > >Maxim Cournoyer writes: > >> Hi Danny, >> >> Danny Milosavljevic writes: >> >>> Hi, >>> >>> I just got a report that with Guix in a virtual Machine (like describe= d in the >>> manual in 8=2E16), guix pull does not actually work[1] with 1 GB of RA= M=2E >>> It does work fine with 4 GB of RAM=2E >> >> I don't see any reference of 1 GiB being enough in our current version >> of the manual=2E If you do, please let me know=2E >> >> Closing for now=2E >> >> Thanks, >> >> Maxim > >I think it's enough if you only use a single core=2E >If any guix operations goes out of memory, add --cores=3D1=2E >So: guix pull --cores=3D1 > > > ------XA2CGGQ6E3W8UVTKZPZ9GYXZ1RD8SP Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I've heard that theory before=2E From observation = on my late armhf server (two cores):

- it takes just below 2GB to bu= ild one of the derivations
- It doesn't swap a single byte
- whether = with two or a single core, it takes roughly the same amount of memory
- = substitution is nice, it doesn't require lots of memory (and then --cores i= s useless)

I think it's because we load all the files in a batch bef= ore we build them=2E The biggest amount of memory required is not for runni= ng the compiler on a thread, but for loading files and keeping them in memo= ry for the whole duration of the build=2E With more threads, we still don't= load each file more than once (twice to build it), so there's no reason it= should take more memory=2E

Or maybe the process of loading and buil= ding is inherently single-threaded? I don't think so, but maybe?

Or = it doesn't honor --cores=2E

Le 13 juillet= 2022 18:58:58 GMT+02:00, Csepp <raingloom@riseup=2Enet> a =C3=A9crit= =C2=A0:

Maxim Cournoyer <maxim=2Ecournoy= er@gmail=2Ecom> writes:

Hi Danny,

Danny Milosavljevic <dannym@scratchpost=2Eo= rg> writes:

Hi,=

I just got a report that with Guix in a virtual Machine (like desc= ribed in the
manual in 8=2E16), guix pull does not actually work[1] wit= h 1 GB of RAM=2E
It does work fine with 4 GB of RAM=2E
=
I don't see any reference of 1 GiB being enough in our current version=
of the manual=2E If you do, please let me know=2E

Closing for= now=2E

Thanks,

Maxim

I think it's enou= gh if you only use a single core=2E
If any guix operations goes out of m= emory, add --cores=3D1=2E
So: guix pull --cores=3D1



------XA2CGGQ6E3W8UVTKZPZ9GYXZ1RD8SP--