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 ms11 with LMTPS id +Py5BX7N6V+6PgAA0tVLHw (envelope-from ) for ; Mon, 28 Dec 2020 12:20:14 +0000 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 +LiJAX7N6V8iIgAAB5/wlQ (envelope-from ) for ; Mon, 28 Dec 2020 12:20: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 656129401CD for ; Mon, 28 Dec 2020 12:20:13 +0000 (UTC) Received: from localhost ([::1]:57502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktrVU-0000aq-Bk for larch@yhetil.org; Mon, 28 Dec 2020 07:20:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktrVL-0000Zi-GC for bug-guix@gnu.org; Mon, 28 Dec 2020 07:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51169) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktrVK-0003PZ-Mw for bug-guix@gnu.org; Mon, 28 Dec 2020 07:20:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktrVK-000160-Gm for bug-guix@gnu.org; Mon, 28 Dec 2020 07:20: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: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Dec 2020 12:20: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 30290-submit@debbugs.gnu.org id=B30290.16091579894186 (code B ref 30290); Mon, 28 Dec 2020 12:20:02 +0000 Received: (at 30290) by debbugs.gnu.org; 28 Dec 2020 12:19:49 +0000 Received: from localhost ([127.0.0.1]:34482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktrV7-00015Q-E0 for submit@debbugs.gnu.org; Mon, 28 Dec 2020 07:19:49 -0500 Received: from flashner.co.il ([178.62.234.194]:55266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktrV5-00015D-4e for 30290@debbugs.gnu.org; Mon, 28 Dec 2020 07:19:48 -0500 Received: from localhost (unknown [5.102.238.249]) by flashner.co.il (Postfix) with ESMTPSA id 4E88840148; Mon, 28 Dec 2020 12:19:41 +0000 (UTC) Date: Mon, 28 Dec 2020 14:19:02 +0200 From: Efraim Flashner Message-ID: References: <87fu6o2ge2.fsf@gmail.com> <87r1nhzxaf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BDZvg5AoZ6C4XZS9" Content-Disposition: inline In-Reply-To: <87r1nhzxaf.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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, Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 656129401CD X-Spam-Score: -3.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: /9HKiEbEP7kB --BDZvg5AoZ6C4XZS9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 22, 2020 at 04:16:08PM +0100, Ludovic Court=C3=A8s wrote: > Hi, >=20 > Maxim Cournoyer skribis: >=20 > > 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=3Dine= t_addr("141.255.128.56")}, 16) =3D -1 EINPROGRESS > > > > which wasted 5 seconds each time. >=20 > 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= unreachable > host. >=20 > Ludo=E2=80=99. >=20 Occasionally my internet drops itself, and I find I'm left forever waiting for a timeout to see what sources I have cached locally. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --BDZvg5AoZ6C4XZS9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl/pzTMACgkQQarn3Mo9 g1F/jhAAj2cB9IKVLCIsvozRZXNMd9WCT25zaNNN6oRPuNoRozDD4555fic0FPdw tv/S3aFnKrHjGuHsMs/qhQd1RzJXsFPO8szbPnwckyC8Cn70+1SvQIMCDfY7osXa r94XBxPl0P9gAYNCmDSIgRGT8WhAlKAeuXAA6DnqrWyU0DvLADGsTLPab+olbe9F 28uIqkQDf0689Z6lYgPd0FvjzRiR869/B3DYY+Kk1hSYWd3xTWan/NCdzHrvNAzg M5oYXUUur1BqLPT+deV2JBvPrJ5p2vsWZIjrx4AvI4cDB/xvYIAhJJuWD9+uP6as 0oZt9wxSsvr8zYwpO2YO1Q6E7a/fuEzhCYGoVtw4pDLx5BKWBYBVWM0K+grrZq5n amJ2fKcDjYHb0wWmk57wzaSqcuPGM22QA+WSehbYrkXsZCuCtGhkIawQAmUHmXDl u05hShPVy0CjhNA35dMlupNdXzOledt87K+H31YVdGAOaHVEd0NJ/RYLkm0aFkhU 5cHFg8gJidOeAfiy1qxgO1msU0EParCBRb2D1c6JaXl1ClWz/8NszWcw6cbIkodV NeglZHLn1f4btEWkdigEjctxM4NL/DhJxleXXBp30VNGMmJ07dMhmgBTDqESK1SO xVZ4LudByowYJU9Pg57y083YuJqSB0XVPJC+laR2Mw8A1nXZT50= =IRoi -----END PGP SIGNATURE----- --BDZvg5AoZ6C4XZS9--