From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#30290: guix-daemon slows to a crawl when a substitute server is offline Date: Mon, 29 Jan 2018 22:07:49 -0500 Message-ID: <87fu6o2ge2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egMID-0003NG-Eq for bug-guix@gnu.org; Mon, 29 Jan 2018 22:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egMIA-00037K-9B for bug-guix@gnu.org; Mon, 29 Jan 2018 22:09:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egMIA-000379-4a for bug-guix@gnu.org; Mon, 29 Jan 2018 22:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egMI9-0000RU-Rp for bug-guix@gnu.org; Mon, 29 Jan 2018 22:09:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egMH5-000397-Ac for bug-guix@gnu.org; Mon, 29 Jan 2018 22:07:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egMH2-0002Iw-4V for bug-guix@gnu.org; Mon, 29 Jan 2018 22:07:55 -0500 Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]:51959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egMH1-0002IX-VF for bug-guix@gnu.org; Mon, 29 Jan 2018 22:07:52 -0500 Received: by mail-it0-x231.google.com with SMTP id p139so10790673itb.1 for ; Mon, 29 Jan 2018 19:07:51 -0800 (PST) Received: from apteryx ([45.72.232.234]) by smtp.gmail.com with ESMTPSA id z84sm5079347itc.21.2018.01.29.19.07.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 19:07:50 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30290@debbugs.gnu.org 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: --8<---------------cut here---------------start------------->8--- connect(14, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("141.255.128.56")}, 16) = -1 EINPROGRESS --8<---------------cut here---------------end--------------->8--- 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. Maxim