From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 24 17:58:34 2021 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 To: Maxim Cournoyer , Mathieu Othacehe Subject: Re: bug#30290: guix-daemon slows to a crawl when a substitute server is offline 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-Spam-Score: 0.0 (/) 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: -1.0 (-) 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