From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 18 07:36:39 2021 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 To: Maxim Cournoyer Subject: Re: bug#30290: guix-daemon slows to a crawl when a substitute server is offline 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30290 Cc: Mathieu Othacehe , 30290@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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