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 ms9.migadu.com with LMTPS id gBssC7QOi2RWWQAASxT56A (envelope-from ) for ; Thu, 15 Jun 2023 15:14:28 +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 uL8dC7QOi2QY6wAA9RJhRA (envelope-from ) for ; Thu, 15 Jun 2023 15:14:28 +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 E91FB2C57 for ; Thu, 15 Jun 2023 15:14:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9mnb-0004NI-4o; Thu, 15 Jun 2023 09:14:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9mna-0004Ms-Au for bug-guix@gnu.org; Thu, 15 Jun 2023 09:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9mna-0003Sp-2K for bug-guix@gnu.org; Thu, 15 Jun 2023 09:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9mnZ-0004MC-Tw for bug-guix@gnu.org; Thu, 15 Jun 2023 09:14:01 -0400 Subject: bug#63852: =?UTF-8?Q?=E2=80=98guix-package-cache.drv=E2=80=99?= eats all your memory with =?UTF-8?Q?=E2=80=98guix-cran=E2=80=99?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 15 Jun 2023 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63852 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63852-done@debbugs.gnu.org Cc: Lars-Dominik Braun Mail-Followup-To: 63852@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 63852-done@debbugs.gnu.org id=D63852.168683482816717 (code D ref 63852); Thu, 15 Jun 2023 13:14:01 +0000 Received: (at 63852-done) by debbugs.gnu.org; 15 Jun 2023 13:13:48 +0000 Received: from localhost ([127.0.0.1]:46427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9mnL-0004LY-J4 for submit@debbugs.gnu.org; Thu, 15 Jun 2023 09:13:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9mnJ-0004LJ-IW for 63852-done@debbugs.gnu.org; Thu, 15 Jun 2023 09:13:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9mnE-0003D1-1i; Thu, 15 Jun 2023 09:13:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=s36SQzz/YDsvyo8oO/S3+albQPIwBmBAGoVcCsD+VFg=; b=FyA5xulKYSB0t9+v44dx Ypwm1PwU3uMBK/tqc8WqaOKJwnzZuBUQL//BcOC7uqjBnlm9+mSbqrdpWtK8P2QKvYDFsz2wXcqmt E5PVSuklftktH7PiZZ8TryItSNyO9ITFw1IIAQqqMw+gSyfStacv/TwnqNxEXKuxD2iElBNmwmeg4 5TbLD2Snd3EfxT6bPWYC4M9MZBA1JM3YHW/U/RBurkjMyYOCsZdNF5B08KcUU0u9qDzq87F4DPrjX g2MVbfjGXP/IUNIPM+2PTWIXb/ASZebMUJDg8mupHaMv44Krl828dfPWz4+WDc25XkGMDKbUVKDgp HkLRv22jexJOIQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9mnD-0002w5-Kx; Thu, 15 Jun 2023 09:13:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sfb93kca.fsf@inria.fr> <875y843aln.fsf@gnu.org> <87ttvlhnps.fsf@gnu.org> Date: Thu, 15 Jun 2023 15:13:37 +0200 In-Reply-To: <87ttvlhnps.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 05 Jun 2023 18:34:55 +0200") Message-ID: <87edmcx3zy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686834868; a=rsa-sha256; cv=none; b=Jpxz8IbtLEFz9NsdNOouBGKnp330Bze/LgGv5XVdNHbViLvxHza7eFLN9UZ9XsTmhqaZ3B bA4SDjGFf0b1uUfbfAqITWDdxS3o2yQ4+BocOB+2PkjzMwQwyUNCbWVjA/GDYT4pO2CZdf dDB4jaUnK+WjBYrXfqEpOYz/9TpEdsmuM+9MrjmbQQk9IF6TdV22lInuO8nIoiGWvy3RTB x/NBv5PSKZGJpAOq+FayqshAr/XaHG3huDIRrg6epAwiyvrim8HT2eg23MLTm2yS69AYRa 1ZZpCz7kxUVtFK/sJRlOzNHGoB9rnNBtflrsk4iKsGlFHaaFIxNgVLSpBBGX+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FyA5xulK; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686834868; 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:dkim-signature; bh=s36SQzz/YDsvyo8oO/S3+albQPIwBmBAGoVcCsD+VFg=; b=jwOmzBfMixsl8AWseH24Bp2yrG2v9vDzgjU+lE2goORRRo4dLLZexdRPkXETAeFvCu7f9T rEMuCngWUgi+46t263A/au6UzmwPZ1Sh+JY+yhidO2kR1Ojn53UifDApgIEb812yOBeUJN hPtXmQ2b+7fbqSB9c0AQ5rph/zToufMO2h5JBSdW6rX51PrBIcMn09S4BsnC3+3wrVI1yF 9Udwx34P1zqzEW0WuQxJDnEcAW1L/cKDRjfpZjQPvY9jPSToJXhhtrESC1I9XcwPFfbxwv x2dscPfQmRjTr5Mm8n/+WSV+jgpHKL/0+5IA04e5iBevbL2xvw5jugjIQIaMeg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FyA5xulK; dmarc=pass (policy=none) header.from=gnu.org; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.33 X-Spam-Score: -5.33 X-Migadu-Queue-Id: E91FB2C57 X-TUID: m343aklda0w5 Ludovic Court=C3=A8s skribis: > Ludovic Court=C3=A8s skribis: > >> Ludovic Court=C3=A8s skribis: >> >>> It goes OK until building /gnu/store/6rfaqfq693vda59a55asc4wjjg52ilns-g= uix-package-cache.drv, which >>> consumes memory until it gets OOM-killed. >> >> The culprit is easily found (here on just the 22K packages of =E2=80=98g= uix=E2=80=99, so >> less than half of what you get with =E2=80=98guix-cran=E2=80=99): > > (Beware of =E2=80=9Ceasily=E2=80=9D when the guy doesn=E2=80=99t know wha= t he=E2=80=99s talking about.) > > Turns out the problem is more pedestrian: =E2=80=98r-future-tests=E2=80= =99 depends on > itself. With commit e4259d4e9e3251e4c4b45d1cce4008ac32b504c8, such cycles are detected early on. Closing this bug. We should still improve the memory footprint of the assembler though. Ludo=E2=80=99.