From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UFERKt9cHGEjMgAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 03:05:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CD+xJd9cHGHzEAAAbx9fmQ (envelope-from ) for ; Wed, 18 Aug 2021 01:05:35 +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 EB37D13884 for ; Wed, 18 Aug 2021 03:05:34 +0200 (CEST) Received: from localhost ([::1]:56600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGA1M-0003TN-Cb for larch@yhetil.org; Tue, 17 Aug 2021 21:05:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG9zv-0001JH-2i for bug-guix@gnu.org; Tue, 17 Aug 2021 21:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mG9zu-0003P3-Sa for bug-guix@gnu.org; Tue, 17 Aug 2021 21:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mG9zu-000232-6W for bug-guix@gnu.org; Tue, 17 Aug 2021 21:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#35660: guix weather runaway memory consumption Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Aug 2021 01:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35660 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: swedebugia Received: via spool by 35660-submit@debbugs.gnu.org id=B35660.16292486397863 (code B ref 35660); Wed, 18 Aug 2021 01:04:02 +0000 Received: (at 35660) by debbugs.gnu.org; 18 Aug 2021 01:03:59 +0000 Received: from localhost ([127.0.0.1]:54447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG9zr-00022l-39 for submit@debbugs.gnu.org; Tue, 17 Aug 2021 21:03:59 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:41568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG9zm-00022S-W7 for 35660@debbugs.gnu.org; Tue, 17 Aug 2021 21:03:57 -0400 Received: by mail-qv1-f47.google.com with SMTP id f7so810962qvt.8 for <35660@debbugs.gnu.org>; Tue, 17 Aug 2021 18:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=4fw7vq/tOLYY3idNdiD+tP5AqmPfBrx5KRlGADohvTI=; b=DaPn6pjTvN+P6dGdlvmDn9Jo0T/lgyvHdWk0Wyn4vp6VgJwpplnxqDvWEZzL443K9P jUEc9rUI1851+Im1J8vr+lJlRiy+Q2vQlI5UjnN3UyHInVPJsFxbsiboLMVRRLI4Kjjf L4DiY6x6RjQAmtTwiTRZxso/jisWWgPSAVTBPoxXdgM0WxL3mY4kUeR6lKwEcH+oWACO 86FArWPRDrgfy71ApilIk5O/6O6bNpxawMk7YN9RJz/bFZNjb0s6NBLLq+9M6zBOa6eI xrDdtlDi8Ud6pfD/Pg3qGv3pSEsuhnw1T4SsTeFjSMsiK0ihW4B5Mm80YpxbmyXmwDZ9 4XbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=4fw7vq/tOLYY3idNdiD+tP5AqmPfBrx5KRlGADohvTI=; b=WHEHS7uiOjuycUnujH0cS/fwiBlr4CWTHaPbxYKSywGViSxM6xIOkIl4cxZke8JmEK iXKcCIccPTG0ZBTAt6X4muOAla5Vrz8Q9FYz4+gw8NDS2MOfbBSn57tYDCAJrLjTOza9 6tL9yC44UUV9A+V1Ha+U9hJB6dWp4TKs0zmEkHd1d10CIpq2KyISS7irPAbSdxUsk49a B2r/YsoEJIaKB5KGNNQmcDI3D5XbjSI+yFfw10ohdskok7HpKsKH5vJvnFvr4kvxMcNo Cl4yfsS/bl1G+1UNN7lAT23zS4MyKzzEeepj6MaJSi/E3y0P+gnWmjXUNmdMyTiHyFA8 gNAA== X-Gm-Message-State: AOAM532L988U5XGhwXzqZK4dQAZwG1SPBtni3dPQgyFjHnCV9CYLhTLr n7HnEVd2EDGIZhgRfhZHqN/noxz8cRU= X-Google-Smtp-Source: ABdhPJwywLUyr5EEqq39WXR8XrJ/l0hEHAKzB4z/iQBsYigpmr5nJ2kVHNuAJ8U4sJ2M9+F3RaCAnQ== X-Received: by 2002:a05:6214:9ac:: with SMTP id du12mr6322629qvb.48.1629248629341; Tue, 17 Aug 2021 18:03:49 -0700 (PDT) Received: from hurd (dsl-236-123-187.b2b2c.ca. [207.236.123.187]) by smtp.gmail.com with ESMTPSA id q11sm2517558qkm.56.2021.08.17.18.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 18:03:49 -0700 (PDT) From: Maxim Cournoyer References: <20190509224044.60b37e3f@scratchpost.org> <87ftpiozfl.fsf@gnu.org> <20190513232558.22b4afc0@scratchpost.org> <877easyd0w.fsf@gnu.org> <7cb8d719-ffe9-ccf1-e68e-936401869692@riseup.net> Date: Tue, 17 Aug 2021 21:03:48 -0400 In-Reply-To: <7cb8d719-ffe9-ccf1-e68e-936401869692@riseup.net> (swedebugia@riseup.net's message of "Wed, 15 May 2019 13:53:54 +0200") Message-ID: <87eeary363.fsf@gmail.com> 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: 35660@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=1629248735; 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=4fw7vq/tOLYY3idNdiD+tP5AqmPfBrx5KRlGADohvTI=; b=nO1pXkfDcj3Ww0YdtKAVCj3yiJoLDMBHZAREeQUIFNCDvve53mvxNuc6cODE8hxffIAlCh 0Hy0PFqHtL3ZI27MzNXzWSbrL8LaUp/7BqDAqxWqN2M5FKffPEKIvyqder0cc6Qx7OnV7R ba/cBw28V4MwTDSSLddGm9mB15w4aKXbD3wiWxcj7h10+xkeOX24vTW7L6BTgpuodMWt8W nLeDWOfe62fSwzkIw5IOKlFyy4E2AqtFcsBCWaI8PqQCACbZ+MyEj659FRfnWSiFQs3qmA uIceCf31ObMGJK/VbV7Aw835uuI3XbFC/DDDU4yB1U4jYl0M2wZoVdsY4Jnt/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629248735; a=rsa-sha256; cv=none; b=NGe0SV9Zcu3cGPJ5McPZ6n+2ZzKXHaPE711wGfQM3Kl0p4u4znwqLXoFb0S/HPgWnAiRbY FFvcZYHsfShAlrTnroHWcfwx6isnZlTPoFXOB0+7XvtyxSPv/Y8B8pY1VYyRdtuXW04fFL sj/ikgYy0oOX6U+YZsvtNfbnSytZfwZoWpuvgN8avdoj2ll8TUje2Q5I/pjtq1Xx5ecZJn EIr5jruIYrH1dcJr4z/vwrkfQC5wXLtRSHd6TnfR0knTxxAHUVcx7e8K7j2Vli3St6YfI8 3183BaU4ee+p2S4YGHTCPF+wm1DnOdg7YtJe2ru21yCVgGElCAHOpnXAqfGbEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=DaPn6pjT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=DaPn6pjT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: EB37D13884 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1nbqDp07cyUc retitle 35660 Implement cycle detection with proper reporting thanks swedebugia writes: > On 2019-05-14 22:52, Ludovic Court=C3=A8s wrote: >> Hi Danny, >> Danny Milosavljevic skribis: >>=20 >>> The failure mode here is very very bad. Guix will consume all available >>> memory and then start on the swap, at which point the computer will >>> become unresponsive to any input and the user can't save any open >>> documents and has to kill the power to the computer. >> I agree that the failure mode is terrible. It=E2=80=99s very likely a c= ycle >> in >> the package graph, given the symptoms you describe. So =E2=80=98guix bu= ild >> OFFENDING-PACKAGE=E2=80=99 would probably give you the same result. >> Chris Baines proposed a patch a while back to detect and report >> cycles, >> but we never got around to polishing and integrating it. That would >> probably help a lot in these cases. >> We can open a new bug for that (if there=E2=80=99s not already one), but= I >> think >> it should be framed in terms of cycle detection in the package graph and >> error reporting. > > +1 This would indeed be very useful. I'm retitling this bug so that it is more actionable. Could someone link to the patch Chris Baines had written going in this direction? Thanks, Maxim