From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 09 17:43:53 2021 Received: (at 30290) by debbugs.gnu.org; 9 Jun 2021 21:43:54 +0000 Received: from localhost ([127.0.0.1]:34800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lr5zN-0003Z6-Gk for submit@debbugs.gnu.org; Wed, 09 Jun 2021 17:43:53 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:45898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lr5zJ-0003Yk-KD for 30290@debbugs.gnu.org; Wed, 09 Jun 2021 17:43:51 -0400 Received: by mail-wm1-f54.google.com with SMTP id v206-20020a1cded70000b02901a586d3fa23so5122124wmg.4 for <30290@debbugs.gnu.org>; Wed, 09 Jun 2021 14:43:49 -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=UxHsHEt+SAL86OWzSp4gM+5EWgdjjEC/fsuWSFKmHz8=; b=LGrWRKNsKIvXs4rIz6W1GFjnN9iR0IP7/8++czCRCnFdbVFZMJf3myMf/iY2XolZue gd7HuQ2p6c6ku7F2CO9eQF+xUo9zW3dKHInvRwKrp7L1f0uCv+j7G+v/BbYj8SK9uZZL I/9wxJ5C4v1reKuxh4IR7u+kIB/4Em/J7w+pkMREQiy/O70LRyRuIa6PR4QiDnKTyGJm iDH3LUfAd6Rgvaw5lrPpnZNlXJofSxW8yl8+QmCsiVODbJjmn4Ht8ngyWR2pvvuD9FFS yaxE4AyM4qe95OkmfHXGRVnt+q9RSQh2RrDBBi7Eq8MfNi2T6m4emkkVTmxsXw/RKOeN fltA== 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=UxHsHEt+SAL86OWzSp4gM+5EWgdjjEC/fsuWSFKmHz8=; b=JnPzFNC3L7Rw/I9ZVvfbAKcI2Jg1meEsgjsq200H/u6gcUPYO939kt6AoFlZ9k33/i zb51mXWfBKo6jhOrS1rju2FudbxzxubH25ODPi1kL+pxv/yZk0wqtiSyOzwT24KsAZaH N2EWkm+93D+DCTY81K5Qr85I2foYgAcrgrphhyBj7sv45K7Wuz69Ec8trtBH2h2k1sLI T9ZLWySvldO2U1i3EBCvS4JBrp219PXJIBJRJ464xxLO2es73Oc0HhlfLBQEsedFsxLh n5FZ1pfhUDcFwLwjsRSDCCi8j5fY1RbgKmnEQvKndYc6rstZRbdnTSMWJTUeFygTdWBE ULHQ== X-Gm-Message-State: AOAM530jM9nSEhkDLyUogAoBbmQundw+wEtvWqRsfj3TImfQAVGTD9UT e8zP5T1bQuRKIY/HYdyHcuqX3Be0RSo= X-Google-Smtp-Source: ABdhPJxQou9nZXU0vy5mfszeDc9VvMbOXZCiS79d4BF72z2+SBUdjIdAcc0SfhzdaiD4OKwmK6+6YQ== X-Received: by 2002:a1c:98d0:: with SMTP id a199mr11914498wme.22.1623275023800; Wed, 09 Jun 2021 14:43:43 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j7sm1136495wrm.93.2021.06.09.14.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 14:43:43 -0700 (PDT) From: zimoun To: Maxim Cournoyer Subject: Re: bug#30290: guix-daemon slows to a crawl when a substitute server is offline References: <87fu6o2ge2.fsf@gmail.com> <868s6cb4ji.fsf@gmail.com> Date: Wed, 09 Jun 2021 23:34:41 +0200 In-Reply-To: <868s6cb4ji.fsf@gmail.com> (zimoun's message of "Wed, 24 Mar 2021 22:55:13 +0100") Message-ID: <86y2bilo26.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: Mathieu Othacehe , 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 Wed, 24 Mar 2021 at 22:55, zimoun wrote: > On Mon, 29 Jan 2018 at 22:07, Maxim Cournoyer = wrote: >> 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. [...] > From: Maxim Cournoyer > Date: Fri, 18 Dec 2020 22:04:04 -0500 (24 weeks, 4 days, 18 hours ago) > > 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. > ---------- > > From: Ludovic Court=C3=A8s > Date: Tue, 22 Dec 2020 16:16:08 +0100 > Date: Tue, 22 Dec 2020 16:16:08 +0100 (24 weeks, 1 day, 6 hours ago) > > 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. > ---------- > > From: Efraim Flashner > Date: Mon, 28 Dec 2020 14:19:02 +0200 > Date: Mon, 28 Dec 2020 14:19:02 +0200 (23 weeks, 2 days, 9 hours ago) > > Occasionally my internet drops itself, and I find I'm left forever > waiting for a timeout to see what sources I have cached locally. > ---------- What is the current stats of this bug? Is it still happening with the recent improvements of Cuirass? Cheers, simon