From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +dNaDOowyF8LfQAA0tVLHw (envelope-from ) for ; Thu, 03 Dec 2020 00:27:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CDj+B+owyF+jGwAAbx9fmQ (envelope-from ) for ; Thu, 03 Dec 2020 00:27:22 +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 C9B329402DD for ; Thu, 3 Dec 2020 00:27:21 +0000 (UTC) Received: from localhost ([::1]:45130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkcSu-0005LW-KK for larch@yhetil.org; Wed, 02 Dec 2020 19:27:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkcRe-0004km-52 for bug-guix@gnu.org; Wed, 02 Dec 2020 19:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkcRd-00049R-Sk for bug-guix@gnu.org; Wed, 02 Dec 2020 19:26:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkcRd-0002U9-PY for bug-guix@gnu.org; Wed, 02 Dec 2020 19:26:01 -0500 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: Thu, 03 Dec 2020 00:26:01 +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 Received: via spool by 30290-submit@debbugs.gnu.org id=B30290.16069551469529 (code B ref 30290); Thu, 03 Dec 2020 00:26:01 +0000 Received: (at 30290) by debbugs.gnu.org; 3 Dec 2020 00:25:46 +0000 Received: from localhost ([127.0.0.1]:37742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkcRN-0002Td-QP for submit@debbugs.gnu.org; Wed, 02 Dec 2020 19:25:45 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:43942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkcRN-0002TN-5f for 30290@debbugs.gnu.org; Wed, 02 Dec 2020 19:25:45 -0500 Received: by mail-wr1-f52.google.com with SMTP id s8so80734wrw.10 for <30290@debbugs.gnu.org>; Wed, 02 Dec 2020 16:25:45 -0800 (PST) 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; bh=Lk8z8s7PCaULIiFoulALFpITb8aPYRTgtDUhAj2cgKw=; b=SZ9FS1jN3Xob7FpECAbPQOYH0seMwuxX8NpVuwHLcZyyHTKmO2k86A5dgyvsK9Romz 1ql7M+S+quHurGZxee88X5RVGs7W5K0A83cd8bvR3Q7VsNv+3xPSTDyBmYaJALzgBreb 8lwPhEfUGiN7VJAaCxDsVmbjmEuZQ2Hl8Yen1V2cZ6tKI0GCH48UqdacQZiNAAL6ImUm gVU95eK0a4YVygvs5NTH98T9LL1irviIL4edRo3SVQRQbYi1LyfbwaZZdXfhO/k8p/P6 ycTbAIIH1zAyUlP9q72yYOzOYrx2mV59BGPOrzlTfW9iaVqm+3CZUdWaVkbCp4vMc/aY 5CWA== 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; bh=Lk8z8s7PCaULIiFoulALFpITb8aPYRTgtDUhAj2cgKw=; b=uewiQKSnfFpYzUs6/VvWvX5b0cigrC3t2VSgOoWVDNO1HKfQbTiGR7sI63vICY7Mqz oMzOeKIowEsp3CPLwZ8Vzg879ciWAMX1/NKE0h1aFlvkTJ9Yn6967sTI7UuUyzMARo9m GVdKp8dquJsU4X4AiOglOCfuvlc5SuZzT3SNUVu71hxgnQke8As5vaPTOD4QH4fanTP7 UgVX7P4ATR2OL3dxvuzhU7oHZNwQ4KcKIPZGXDIDa5xDNE6Sb3+VbPVrWEw/GzPvNKOn OcY5QJX7NqDdM0/rfA1VMiF24VsxhTHttphboGuVOXN7Z4qVifPNl1OSsi7lqp1mskmy z91w== X-Gm-Message-State: AOAM531DF3VzSPSmDB1iRiGTj4RZZBF6EsdyC2A4rbq7BOv0vUVgnZX7 RFnLd1AizGsTGjuIqpD7Km/XhHruz47Cbw== X-Google-Smtp-Source: ABdhPJztoTpiwKemPBfBuaCOy6Oc1zHl5xX1o3pWqm+5yrpfWtxkp9FcUjCqDuPWJSYD+YyQVUu5UA== X-Received: by 2002:adf:fa05:: with SMTP id m5mr688564wrr.26.1606955139112; Wed, 02 Dec 2020 16:25:39 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l24sm373003wrb.28.2020.12.02.16.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 16:25:38 -0800 (PST) From: zimoun References: <87fu6o2ge2.fsf@gmail.com> Date: Thu, 03 Dec 2020 01:20:07 +0100 In-Reply-To: <87fu6o2ge2.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 29 Jan 2018 22:07:49 -0500") Message-ID: <86mtyvzqo8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 X-Migadu-Spam-Score: -1.18 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=SZ9FS1jN; 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: C9B329402DD X-Spam-Score: -1.18 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: OjEi6QGyQkn3 Hi Maxim, 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=AF_INET, sin_port=htons(443), sin_addr=inet_addr("141.255.128.56")}, 16) = -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. This looks like as a wishlist, right? Do it make sense to include such feature to the recent discussions about the revamp of offloading, Cuirass, publish, etc. All the best, simon