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 ms11 with LMTPS id sNPLAAkO4l+tCAAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 15:17:29 +0000 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 QMAhOAgO4l/6WQAAbx9fmQ (envelope-from ) for ; Tue, 22 Dec 2020 15:17:28 +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 7AC519404FC for ; Tue, 22 Dec 2020 15:17:28 +0000 (UTC) Received: from localhost ([::1]:50212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krjPi-0005Ht-OT for larch@yhetil.org; Tue, 22 Dec 2020 10:17:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krjPK-0005Hk-H2 for bug-guix@gnu.org; Tue, 22 Dec 2020 10:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krjPK-0007Vs-9g for bug-guix@gnu.org; Tue, 22 Dec 2020 10:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krjPK-0001Qg-6R for bug-guix@gnu.org; Tue, 22 Dec 2020 10:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#30290: guix-daemon slows to a crawl when a substitute server is offline Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Dec 2020 15:17:02 +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.16086501765435 (code B ref 30290); Tue, 22 Dec 2020 15:17:02 +0000 Received: (at 30290) by debbugs.gnu.org; 22 Dec 2020 15:16:16 +0000 Received: from localhost ([127.0.0.1]:50693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krjOa-0001Pb-CZ for submit@debbugs.gnu.org; Tue, 22 Dec 2020 10:16:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krjOZ-0001PQ-OP for 30290@debbugs.gnu.org; Tue, 22 Dec 2020 10:16:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59604) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krjOU-0007C6-JQ; Tue, 22 Dec 2020 10:16:10 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44072 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1krjOU-0002MU-2q; Tue, 22 Dec 2020 10:16:10 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87fu6o2ge2.fsf@gmail.com> Date: Tue, 22 Dec 2020 16:16:08 +0100 In-Reply-To: <87fu6o2ge2.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 29 Jan 2018 22:07:49 -0500") Message-ID: <87r1nhzxaf.fsf@gnu.org> 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: 30290@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.82 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: 7AC519404FC X-Spam-Score: -2.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: S0P2w/wL94j6 Hi, Maxim Cournoyer skribis: > When a substitute server used by guix-daemon is offline, the daemon will > 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. Is it still a problem? Commit 4f5234be0378368e6af25925db46612838d25e58 (Nov. 2019) added a table of unreachable hosts. That way, a =E2=80=98guix substitute --query=E2=80=99 process won=E2=80=99t retry connections to an u= nreachable host. Ludo=E2=80=99.