From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id FpVoFeC2W2A8AwEAgWs5BA (envelope-from ) for ; Wed, 24 Mar 2021 23:02:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aO0/EOC2W2CzQwAA1q6Kng (envelope-from ) for ; Wed, 24 Mar 2021 22:02:08 +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 A0750151BB for ; Wed, 24 Mar 2021 23:02:07 +0100 (CET) Received: from localhost ([::1]:53622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPBZm-0007m3-MJ for larch@yhetil.org; Wed, 24 Mar 2021 18:02:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPBWq-0005kN-2e for bug-guix@gnu.org; Wed, 24 Mar 2021 17:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPBWo-0001v0-B0 for bug-guix@gnu.org; Wed, 24 Mar 2021 17:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPBWo-0006Jz-Ay for bug-guix@gnu.org; Wed, 24 Mar 2021 17:59:02 -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, 24 Mar 2021 21:59: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 , Mathieu Othacehe Received: via spool by 30290-submit@debbugs.gnu.org id=B30290.161662311424248 (code B ref 30290); Wed, 24 Mar 2021 21:59:02 +0000 Received: (at 30290) by debbugs.gnu.org; 24 Mar 2021 21:58:34 +0000 Received: from localhost ([127.0.0.1]:36276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPBWM-0006J1-6C for submit@debbugs.gnu.org; Wed, 24 Mar 2021 17:58:34 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:40699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPBWH-0006IT-MR for 30290@debbugs.gnu.org; Wed, 24 Mar 2021 17:58:30 -0400 Received: by mail-wm1-f52.google.com with SMTP id y124-20020a1c32820000b029010c93864955so2017502wmy.5 for <30290@debbugs.gnu.org>; Wed, 24 Mar 2021 14:58:29 -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=phY8xc7EbJm6MstPaMvYf9sMFaEIhTgigQU3rIYOIHw=; b=c/CmF/R4oj6xt1ff0NgUo6V6UiOQsG2xu5Bztps+y7Ii6hAwH/eWhQNE16QqyogISB LvZfv0D002AIhCpTXSsKO9mO/h4eukqjSQJIVUQMlsMyt2qs7Mti/Tm8PqO9mAat6yPZ ul+wRqeATcX4RNCMZ4ViwmtFU+2OiblZN/7NjxbOhITvqxvgKJmwG8k3g/KeaCu3tzIb M2DrFKdVVbQ630qqbpp8JY+rS5yGTvdlFcru44Bd3/Uej0U3m3a8Pfv3O35asdfXkS8s Ye3msXD/yj7H9rFiyaN/VrhhowWzrzp6uCfZlz3KttlxAhHTTAPZEWf0JKJRD4QdyWSq fcHw== 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=phY8xc7EbJm6MstPaMvYf9sMFaEIhTgigQU3rIYOIHw=; b=Iikml5Bu5tTTgVIf9Y2jJbiHMkVPcZvlo0BA/tRDimuZaUD+PISXYIbU75iwVDL1I0 buWKs+L8lTieAwSYZ3P7S8XZTu3rEehCOW82/e9CZA3sDDsc8KpwVHDGoHOa+g6RS4Cp TiE3ojO4zLYb44z47kYhxqXdOFKQQO0LmaGYzaVzNzmCXVXLBA3QunpXrQqTZj61FFxM Xn+3mAzPHV0AUXAIwS18zn2sIMHxKU5gtE6Ew9hKEtaFcaQuAVoRb/z88zdeZy3egNkU cuZU61Ogj10TgR1/jDbybt60HIYGYc/VW3JNRrRN0+aLA2nD1AfVGMkWD2AFudHFvbdo Kzpg== X-Gm-Message-State: AOAM532zeQllQp65mhF8esRDHOeGhsbfPz8cIiCyRUU/035TksILDnuF anE5Hq5Qg3d+xslA8oZlCrX1DOQDq8M= X-Google-Smtp-Source: ABdhPJySPgjnp2T1h/ke7WGeocpn9zdh7uZMeaBiYxO/1x9QnQVAs7wPcwxmEHQSrrZZvH5tglAsXQ== X-Received: by 2002:a05:600c:1548:: with SMTP id f8mr4864462wmg.81.1616623104040; Wed, 24 Mar 2021 14:58:24 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id s3sm3830474wmd.21.2021.03.24.14.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 14:58:23 -0700 (PDT) From: zimoun References: <87fu6o2ge2.fsf@gmail.com> Date: Wed, 24 Mar 2021 22:55:13 +0100 In-Reply-To: <87fu6o2ge2.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 29 Jan 2018 22:07:49 -0500") Message-ID: <868s6cb4ji.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: 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=1616623327; 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=phY8xc7EbJm6MstPaMvYf9sMFaEIhTgigQU3rIYOIHw=; b=nhy8lb5DzP0Icf5wXXGXYA4KHsaGVtNtuE0hdKgDZmFTXWtZkAqYEQEJZUFWrJ0GfBQuKO gSImhh859eroHlzRj3fZKe2J39GoL2i2WtV6IRi3bM0vmuDRK9ek0OIYbMEheF0HthGogD NFEKZLcoZ6RBSFglyoQiC2rbj6ecY6b8dpJjhxgJ+VDQPl0hlGWvCf++hMgIrODXv8qi6k tizYInK40DR90B1EwfU/S+h5ME1cGcbi9UnkMPk0YL/G8IxTTzJ+Qj2vqg/9TzBzbc7oEd hulUH1oIvM75+EroD3cwPvgYFcLpQM5qi5ddSYo5rIj11kDZQ5WjlxxCD310pw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616623327; a=rsa-sha256; cv=none; b=dMo9v133lFjOKqsI1VedIiVYpayx5Pw5gku4zo4cBk9JXaNNxfE657kvoHxOnHWAU7mo81 qlx4Y9csKj+1BU8v3U+/Y4RUYfAdMiuu1qknFv1RQ1xmUKPzSyQZ7Qu8m+bJTuoTMyW7+6 EPoPNxQw4EmnE9gPiY7zK1grZbP4DkKvRU3ckOPHuoWNd3P9IpeG1g2fzFpGV0cdbWDzWG JBMPitiqowzwrFEeoouiFCQ370wdOf7yIlxtYgisYEklsY0S3ZHYPCgku9x6ccyOVNE4jh pwZyEHWHN9QV01fzc4kEJhPL+k1KvlWZVKRJKjAAzKwzxN0NTMq8lw4u1ePppw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="c/CmF/R4"; 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.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="c/CmF/R4"; 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: A0750151BB X-Spam-Score: -1.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: t+GNRwGej90w Hi, On Mon, 29 Jan 2018 at 22:07, Maxim Cournoyer w= rote: > 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. > > 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. What is the status of this bug? Especially with the recent additions in Cuirass? Is it still an issue? Is some timeout still happening? Well, in summary, the 3 relevant messages are: -------------------- Start of forwarded message -------------------- From: Maxim Cournoyer Date: Fri, 18 Dec 2020 22:04:04 -0500 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. -------------------- End of forwarded message -------------------- -------------------- Start of forwarded message -------------------- From: Ludovic Court=C3=A8s Date: Tue, 22 Dec 2020 16:16:08 +0100 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. -------------------- End of forwarded message -------------------- -------------------- Start of forwarded message -------------------- Date: Mon, 28 Dec 2020 14:19:02 +0200 From: Efraim Flashner Occasionally my internet drops itself, and I find I'm left forever waiting for a timeout to see what sources I have cached locally. -------------------- End of forwarded message -------------------- Cheers, simon