From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6ESHAKEkz2JiEQEAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 22:01:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id LRGUAKEkz2Lf6gAA9RJhRA (envelope-from ) for ; Wed, 13 Jul 2022 22:01:37 +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 94067101DB for ; Wed, 13 Jul 2022 22:01:36 +0200 (CEST) Received: from localhost ([::1]:43062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBiYB-0008Nz-6C for larch@yhetil.org; Wed, 13 Jul 2022 16:01:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBiXe-0008Mh-93 for bug-guix@gnu.org; Wed, 13 Jul 2022 16:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBiXe-0001IJ-0D for bug-guix@gnu.org; Wed, 13 Jul 2022 16:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBiXd-0006ce-Ug for bug-guix@gnu.org; Wed, 13 Jul 2022 16:01:01 -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: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Jul 2022 20:01:01 +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: Julien Lepiller , Csepp , Maxim Cournoyer Cc: dannym@scratchpost.org, 39813@debbugs.gnu.org, 39813-done@debbugs.gnu.org Received: via spool by 39813-submit@debbugs.gnu.org id=B39813.165774244425407 (code B ref 39813); Wed, 13 Jul 2022 20:01:01 +0000 Received: (at 39813) by debbugs.gnu.org; 13 Jul 2022 20:00:44 +0000 Received: from localhost ([127.0.0.1]:47811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiXL-0006bc-IW for submit@debbugs.gnu.org; Wed, 13 Jul 2022 16:00:43 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:37840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiXI-0006b9-Dl; Wed, 13 Jul 2022 16:00:42 -0400 Received: by mail-ej1-f68.google.com with SMTP id os14so21764330ejb.4; Wed, 13 Jul 2022 13:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ypjiZOOouxsVs0cw0OKqC3Wgk1EFQFt/d33hsN87ErI=; b=i+9kE/XVdaBGfmdKg5cjc4pW4Y8nNQlYz+gR1SQCg3HPB40CvL6lKK9/GnPa12M3F/ U+k02hTlt9H52W5d6AyoTnGvP19e8kHnQd9sdGDXG2u0JOGefGgk5iZ4uWlKDkDwNMmW 2R8XZJGclyznW73XGOc94bd9Y/4yE8P6q06xr0bqOmfnI9N8zvPEcZOlBXLK/GIPEQ6b FI4ewtsv6Dlg36ZREdqzojbdiQWhOAxRvnCw5NM8Boxg0pYj2jQ310bfmdc3Rp8NgVAg 1FkW7mV1OypWQDhPBgjVbYDMHVJXHiAFqMVrPRQnGppchplvvYNFr/8UFubUelPW+Aw3 FxMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ypjiZOOouxsVs0cw0OKqC3Wgk1EFQFt/d33hsN87ErI=; b=3/dsQfnwq0tO5paUg+OOQhBG4pQK5B4xKnmStDVoEgZOqAaVudfNd04FBtrdQZMnAr DEeY68cGashSd+Dz+t7NkijOF6y8otJQ6l1CFwGbcdtAN5mprCKNsTBPyHepshKxCNfC UndXH8HT29R5OdmK2F/sHef71RvR8RIAfxkEjk4o7Ks/jlq9ZVyjZ8da+AXWEfj+GVlO QOy5qry29eHcmL0sVFywOXMm78OIAW/RrzJgLhryGE0bT77K/Us3RiVjWQID5U1Nk3rR njG4izDIEThgC+MZw0kTmk0WrcotOLfZ6E71EHq01VdIWfYMfzDggqkxb0Gmn+T6C6Yh NicA== X-Gm-Message-State: AJIora9Tiu/CkpIrvEs4GWnv17zvWE4m9tttNC9SczPmdosmJzRQj0UI W+q6n1HI6Mb7tIa49NWDqik= X-Google-Smtp-Source: AGRyM1sZ2KhYdsmkk5i/uqBdMPJaEH/LG9dx4Mv9pjoQbnXfGMmqmb/Xf5Qo0gde1fyHeBK7rkwTWQ== X-Received: by 2002:a17:906:49d5:b0:717:7d2f:d6ed with SMTP id w21-20020a17090649d500b007177d2fd6edmr5052261ejv.750.1657742434427; Wed, 13 Jul 2022 13:00:34 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id mh12-20020a170906eb8c00b00705cd37fd5asm5277367ejb.72.2022.07.13.13.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 13:00:34 -0700 (PDT) Message-ID: <9eb8491e8353fb2ddfeb9d508a058fca15b19d40.camel@gmail.com> From: Liliana Marie Prikler Date: Wed, 13 Jul 2022 22:00:33 +0200 In-Reply-To: References: <20200227210601.20011001@scratchpost.org> <877d4h159j.fsf@gmail.com> <87lesx7xsx.fsf@riseup.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 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=1657742496; 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=ypjiZOOouxsVs0cw0OKqC3Wgk1EFQFt/d33hsN87ErI=; b=GbIcoRoNO0yA8nz9NvCTpPj7ll91NmDjbB0BI6CiIjn9aX708jlFtxRV6JNGoLtz/llfgN 8a5udP96388yfw1eKPPxBywiG1ZKObLx3zIzzdNfOOktbeFsgcuaJ0DlQIKkLOWk67rbeH EZuOZhapiXltPW+s8xvERRFHiPSb5i9RsCRIv1zqLfT77hccti0xqa28IrmxYiY8D4jO58 9E7GABpTEr3kHRHbmrt7tPh175oLXoJMi59o5Xv+Hhth29oCT1OU+75rqDmzJTziPxGTng JVIu2VPqyelJjvsqWsVgP3RFa5NL8arzY7flt+mHetjiVMyt8Dcf4C+ta9AOFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657742496; a=rsa-sha256; cv=none; b=VaCr8PoBHSrc+b6hQVcHuRThzzSM+TYmlfJWTpNLHtMdGMTxeHBrq+lZ+QICUMEUzgF2Aq eyN+xPLsRZ9gncPaOt0xUt5b84OjVGHX+xHw8JTkOKcyt1xZMJnAH3EMqWne6ZA/ZQoATm fGfhD34npfOhQv4WDKj3/IsODU28JCzkG1373bPmihKzF/jfGciIAHjdR999QDtMkVMzrV E/rQCxH0V0nCM/pHMWg2XELiWyTmXpCmOoOr4U5Jr4pfKxCk+ou/ghLd0yDmfrf/IrQfuW p3LwBMQ0b1okZ+RoIYy1Lcemb29s5ZFc33NhRsFIEy5+YN9KTpv2kvWxF/85Dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="i+9kE/XV"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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=gmail.com header.s=20210112 header.b="i+9kE/XV"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 94067101DB X-Spam-Score: 7.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7jv7NSLEMDdp Am Mittwoch, dem 13.07.2022 um 19:21 +0200 schrieb Julien Lepiller: > I've heard that theory before. 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 memory > - substitution is nice, it doesn't require lots of memory (and then - > - > cores is useless) > > I think it's because we load all the files in a batch before we build > them. The biggest amount of memory required is not for running the > compiler on a thread, but for loading files and keeping them in > memory for the whole duration of the build. 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. > > Or maybe the process of loading and building is inherently single- > threaded? I don't think so, but maybe? Loading and building is implemented in build-aux/compile-all.scm, which does use multiple parallel workers. However, since all compilation appears to be done in the same Guile process, I don't think multi- threading makes too big of an impact (it'll be the same garbage collector regardless of ordering). Cheers