From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 22 10:16:16 2020 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#30290: guix-daemon slows to a crawl when a substitute server is offline 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30290 Cc: 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: -3.3 (---) 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.