From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GG4UOESdEmFyrQAAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 17:37:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mEy/M0SdEmG5LwAA1q6Kng (envelope-from ) for ; Tue, 10 Aug 2021 15:37:40 +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 5E8692D85A for ; Tue, 10 Aug 2021 17:37:40 +0200 (CEST) Received: from localhost ([::1]:57796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDTox-0006UT-EB for larch@yhetil.org; Tue, 10 Aug 2021 11:37:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDToN-0006Lr-C8 for bug-guix@gnu.org; Tue, 10 Aug 2021 11:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDToN-0006Ng-5b for bug-guix@gnu.org; Tue, 10 Aug 2021 11:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDToN-0008Qg-3d for bug-guix@gnu.org; Tue, 10 Aug 2021 11:37:03 -0400 Subject: bug#49439: grafts cause =?UTF-8?Q?=E2=80=9Cguix_?= =?UTF-8?Q?environment=E2=80=9D?= to get killed with OOM Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 10 Aug 2021 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 49439 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Sarah Morgensen Mail-Followup-To: 49439@debbugs.gnu.org, ludo@gnu.org, rekado@elephly.net Received: via spool by 49439-done@debbugs.gnu.org id=D49439.162860979632355 (code D ref 49439); Tue, 10 Aug 2021 15:37:02 +0000 Received: (at 49439-done) by debbugs.gnu.org; 10 Aug 2021 15:36:36 +0000 Received: from localhost ([127.0.0.1]:60486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDTnw-0008Pn-2E for submit@debbugs.gnu.org; Tue, 10 Aug 2021 11:36:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDTnu-0008PK-HW for 49439-done@debbugs.gnu.org; Tue, 10 Aug 2021 11:36:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54100) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDTnp-0005zk-2P; Tue, 10 Aug 2021 11:36:29 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=45072 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDTno-0004wq-Q6; Tue, 10 Aug 2021 11:36:28 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sg0rse1n.fsf@elephly.net> <86tuklr5g6.fsf@mgsn.dev> <87y29r3enb.fsf@gnu.org> <867dhbpbyt.fsf@mgsn.dev> <87k0la3ghk.fsf@gnu.org> <87wnpa14fx.fsf@gnu.org> <861r7hpzzv.fsf@mgsn.dev> <87czqmtims.fsf@inria.fr> Date: Tue, 10 Aug 2021 17:36:27 +0200 In-Reply-To: <87czqmtims.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 09 Aug 2021 23:26:03 +0200") Message-ID: <87v94dpb0k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Ricardo Wurmus , 49439-done@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=1628609860; 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-to: 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=KgjaGsljKumRzFy/QW9VD+6Ax6MufSxfsjm//KyFkTc=; b=g32ryCnKDt0LQo4Ih0hjaVN52rRxxQ50Mxvtj43oP7JGUrkYlRSlWav5C56QMfI/rVFKcr ej8/qfG0PKf6YXCPGt1SsFhaSL7aLSOgjbILvtMvswqNqo66ql7xKHuC6nqmc+PG3rwJgH cNvUeBRlHmQDoOhKrTscvOTwx4Z13wZRUQTHtf7pGIWKxH3BopSIpeMFja8Od+xcLexXOJ OXfgZUfzqq1ocM2C0XKTJf5xvCHIPO5Hv0RMVjkeoq2cUQ3l1ddtUdPEw7l94bfqrN7HoI oYHyFEeVEw7fZ4SITCNg1A/TLvJYfsgidSEKwdJJ7XChoPpz573nRza+cK8FOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628609860; a=rsa-sha256; cv=none; b=AVyCfzgDY60ORJWoz6AUXC9yxIqAugus4FKNVOl4KExrSJX7EVl8DBlu5ECyfqnF6GG1Km EVnylrloMUyPR9+LbqjCNXDosAMYn6RkFO9KWQmojA+XTWW3+X5cz3ZA/CbpEYFtUZ/wY1 VyjyCkjn1wWRQI+3wsUwL2wbkFvOpRUT9fiGAfI6E4YvanyqVltbc96L0GQ8X2dp46d4PU Bwhm6MuFlUiPZizUfaMnbx28iq0i8fzsDsjMdTU2MCRbu0tkO0pRn7qYJlqNtMnK8g32cz rX8auTuHlvXDQoerOJFxHQqaHdaoT49nU5GTThd5PXAXg4Il2oFuaM1hk4+S5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 5E8692D85A X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: HYMdPVYuUrga Hello! Ludovic Court=C3=A8s skribis: > I added counters and =E2=80=98pk=E2=80=99 calls in =E2=80=98map/accumulat= e-builds=E2=80=99 & co. to see > what happens. AFAICS, a cutoff as in the attached patch does the job. > It=E2=80=99s a basic heuristic to avoid unbounded growth, at the expense = of > possibly reduced accumulation. For example, here=E2=80=99s the effect on= my > user profile with 300+ packages: Pushed as fa81971cbae85b39183ccf8f51e8d96ac88fb4ac. I saw your message on IRC, Sarah; note that because grafts are =E2=80=9Cdyn= amic dependencies=E2=80=9D (they depend on previous build results), we cannot kn= ow in advance which grafts we=E2=80=99re going to build, so there=E2=80=99s neces= sarily at least a second phase during which grafts get built. See for background. Thanks! Ludo=E2=80=99.