From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cBluOurwHGF4NAEAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 13:37:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EHUmNurwHGFLNQAAB5/wlQ (envelope-from ) for ; Wed, 18 Aug 2021 11:37:14 +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 149921CED2 for ; Wed, 18 Aug 2021 13:37:14 +0200 (CEST) Received: from localhost ([::1]:44388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGJsf-0006Ou-6N for larch@yhetil.org; Wed, 18 Aug 2021 07:37:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGJsU-0006M9-0i for bug-guix@gnu.org; Wed, 18 Aug 2021 07:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGJsT-0001QS-QH for bug-guix@gnu.org; Wed, 18 Aug 2021 07:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGJsT-0003gi-Ne for bug-guix@gnu.org; Wed, 18 Aug 2021 07:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#30290: guix-daemon slows to a crawl when a substitute server is offline Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Aug 2021 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30290 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 30290-submit@debbugs.gnu.org id=B30290.162928659914142 (code B ref 30290); Wed, 18 Aug 2021 11:37:01 +0000 Received: (at 30290) by debbugs.gnu.org; 18 Aug 2021 11:36:39 +0000 Received: from localhost ([127.0.0.1]:55016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGJs7-0003g2-Hk for submit@debbugs.gnu.org; Wed, 18 Aug 2021 07:36:39 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:42754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGJs5-0003fp-Ur for 30290@debbugs.gnu.org; Wed, 18 Aug 2021 07:36:38 -0400 Received: by mail-wr1-f51.google.com with SMTP id q11so2989931wrr.9 for <30290@debbugs.gnu.org>; Wed, 18 Aug 2021 04:36:37 -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=5uJILfTqLoP7NYakR0DRs8KVr9RjnhbTgUs08UJYZaY=; b=upYcEDkJdgatW+GBa2mk19uIPMPfH512nq3BinULkRUgLWj0uO92LRj87k1J10jQm/ 8YbGB6Dh+Fnw8h80lDq1poVqx05g6fhWZ5M0kSmz+B/xXp5w1SNN1tUXqsfQf10JMmHO ahe+qEL1R68kFWQCPI++hCyO1KQXbEFTRUc3O9QYKuE3HznrE3+CCmCQNLuMAvtwDXaw W/xxohFKFQa274cKeI32rO4YGHBqDBRtpS6NX7744MjEyGTETSqnfyDmly8JziVcYlyB uRHhxUiL97iGk+JeHm0BT2m4ssC8x7IaCgHxzCyrb74ZUVM6fJqQ3L8z8AJoGYh7fAvL w0Aw== 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=5uJILfTqLoP7NYakR0DRs8KVr9RjnhbTgUs08UJYZaY=; b=SE1UsYq9L8mN9UmOjFzekrD9B9SXEXQ/febY78F/7MoTGuX8+ASNF/9Z66AbBqU7m9 VNplSkjUoLEv74PNeUzlrUblXsa9pfsQOCyEKH4JPogevIGhkUT9q0YPWRAh7stMNv21 xc+SR759zlXmykoM5Aaf0jNVxCWq5KHmGz+pUylHSYvOWZcpm7X8dd3hzt+CF1ILUvlh G07Kyud+GkTv17D+aLdbFuZN9IY7YOY7mubl4nVZ14Ny2s/9dAkOascWI5n5E9uQ3RP7 Nxz2kLrHOIV9AIDJELiFj5nkZvTKMuCWGlWPIBliN0VHP9OGTXXIMrzC5H1dwOLxE4ap TNvw== X-Gm-Message-State: AOAM531k2dn2oawpnNiayc8XY0m6FfVG19Noz7okSQ7Q+1tVYyuTdmyu EIyww+f0HCGM5YHrSjt7eKA+XeSvgFGnkA== X-Google-Smtp-Source: ABdhPJy8AWCN7HpItw/OC8hjGHQd3gKEXVvCIfRBLyVxbJdXgF/nxzB9+NEMTH9n9AOcaryft8uW1g== X-Received: by 2002:adf:ee90:: with SMTP id b16mr9855175wro.185.1629286591897; Wed, 18 Aug 2021 04:36:31 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id u6sm5565219wrp.83.2021.08.18.04.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 04:36:31 -0700 (PDT) From: zimoun References: <87fu6o2ge2.fsf@gmail.com> <868s6cb4ji.fsf@gmail.com> <86y2bilo26.fsf@gmail.com> <86wnpuoaxc.fsf@gmail.com> Date: Wed, 18 Aug 2021 13:19:14 +0200 In-Reply-To: <86wnpuoaxc.fsf@gmail.com> (zimoun's message of "Tue, 13 Jul 2021 10:49:51 +0200") Message-ID: <86k0kjknkd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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: Mathieu Othacehe , 30290@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=1629286634; 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=5uJILfTqLoP7NYakR0DRs8KVr9RjnhbTgUs08UJYZaY=; b=vB7l/1ln31YrlRr73r0j3jmQKzTgLOvBvivDpzusJPapoiKDFI5hj++khWuuYGrbbGq+FU oHRPqPNEx6zhA3ZCGIHg7vYR7RpWY/JxWEVCWTIIULNidHUvD1qprqcMvm61IfJNWKA72a EqR6XN60jed9HtpogLqCx4xAQ1xZwPmyFYyZQcKmEiVNg4neFfDJB1VMaKAANK4sJMwnHa 3sX5JKc69b/FumJCFsc62/Hj6ayn8oQ4r0ESuAPEdVwct2QsKoiNnuiwT4ul+lZlIHe82X vnkiiXN6YpmcR8PG8zdB5Tw/b5S+hrJPJiQ+70FoglzBfS41kQT5ED5Fzf7uRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629286634; a=rsa-sha256; cv=none; b=cMj4gQRM9TrJN9OU3zUPZB1LGWJ+cobZLRcw5Uvu5O1m4lzM0iVgjkUudgBZ/mBt7dSdFN ENxVALDZEgi1Sgar8tJ0WVLOag2jNxMKxU5dVdLUprp8upNHiNEeASCPlSILafdCcnk4hn q0m8sCIPPwDv5v5bXXGt57u9lwbxvYwucIHw2yYeuMckjyW5iSIsd0trNoFHpxY4lRysNz I+IfAAo/I6Ptpy8o13swqFBk9xGGV97xji7G2Q8V5pgGcJGqVZSwX8WiNwcy4QUEaB4/Eo h8e1n5gtO9rAVvcgTdUW/N2SyzmZC/QVe22Ajwg4FClj6Pm7+vLHbn4ZETvSQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=upYcEDkJ; 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=upYcEDkJ; 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: 149921CED2 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: YXwVwq8mC40j Hi Maxim, Reading the discussion=E2=80=A6 On Tue, 13 Jul 2021 at 10:49, zimoun wrote: > What is the status of this old bug#30290 [1]? > > 1: > > On Wed, 09 Jun 2021 at 23:34, zimoun wrote: >> On Wed, 24 Mar 2021 at 22:55, zimoun wrote: >>> On Mon, 29 Jan 2018 at 22:07, Maxim Cournoyer >>> wrote: >>>> When a substitute server used by guix-daemon is offline, the daemon wi= ll >>>> keep attempting to connect to it, even when it shouldn't need any data >>>> (ran 'sudo guix system reconfigure my-config.scm' multiple times in a >>>> row. >>>> >>>> With the disconnected server (bayfront in my case), that command would >>>> take close to 8 minutes, with many system calls like: >>>> >>>> connect(14, {sa_family=3DAF_INET, sin_port=3Dhtons(443), >>>> sin_addr=3Dinet_addr("141.255.128.56")}, 16) =3D -1 EINPROGRESS >>>> >>>> which wasted 5 seconds each time. >>>> >>>> After removing this server from my substitute servers list, the same >>>> operation (system reconfigure) is 8 times faster (1 minute). >>>> >>>> Suggestion: the daemon should stop trying to use the offline substitute >>>> server after trying for X times, and print a warning about it. >> >> [...] >> >>> From: Maxim Cournoyer >>> Date: Fri, 18 Dec 2020 22:04:04 -0500 (24 weeks, 4 days, 18 hours ago) >>> >>> I'm not sure if the recent offloading work that Mathieu did touched that >>> topic. I'd need to test the scenario. Perhaps a system test would be >>> useful. >>> ---------- >>> >>> From: Ludovic Court=C3=A8s >>> Date: Tue, 22 Dec 2020 16:16:08 +0100 >>> Date: Tue, 22 Dec 2020 16:16:08 +0100 (24 weeks, 1 day, 6 hours ago) >>> >>> Is it still a problem? Commit 4f5234be0378368e6af25925db46612838d25e58 >>> (Nov. 2019) added a table of unreachable hosts. That way, a =E2=80=98g= uix >>> substitute --query=E2=80=99 process won=E2=80=99t retry connections to = an unreachable >>> host. >>> ---------- >>> >>> From: Efraim Flashner >>> Date: Mon, 28 Dec 2020 14:19:02 +0200 >>> Date: Mon, 28 Dec 2020 14:19:02 +0200 (23 weeks, 2 days, 9 hours ago) >>> >>> Occasionally my internet drops itself, and I find I'm left forever >>> waiting for a timeout to see what sources I have cached locally. >>> ---------- >> >> What is the current stats of this bug? Is it still happening with the >> recent improvements of Cuirass? > > After reading all this, I think this bug can be closed. WDYT? =E2=80=A6I appears to me that this bug could be close. WDYT? Cheers, simon