From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sree Harsha Totakura Subject: fetching substitutes slow Date: Tue, 21 Jan 2014 09:33:26 +0100 Message-ID: <52DE30D6.3090409@totakura.in> Reply-To: sreeharsha@totakura.in Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2PVXVPHDVTMXEWTHTFWLB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5WmY-0008F4-5I for guix-devel@gnu.org; Tue, 21 Jan 2014 03:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5WmS-0003nu-S8 for guix-devel@gnu.org; Tue, 21 Jan 2014 03:34:02 -0500 Received: from mail-out1.informatik.tu-muenchen.de ([131.159.0.8]:44633 helo=smtp1.informatik.tu-muenchen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5WmS-0003nH-L8 for guix-devel@gnu.org; Tue, 21 Jan 2014 03:33:56 -0500 Received: from [131.159.20.91] (nautophone.net.in.tum.de [131.159.20.91]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.in.tum.de (Postfix) with ESMTPSA id 9E4B32401F4 for ; Tue, 21 Jan 2014 09:33:53 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2PVXVPHDVTMXEWTHTFWLB Content-Type: multipart/mixed; boundary="------------040306090208060904080902" This is a multi-part message in MIME format. --------------040306090208060904080902 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Over the last week I tried to fetch substitutes with no success from hydra.gnu.org. It always showed the error "server is unresponsive". However, the nar packages get downloaded with wget. So, I removed the timeout with the attached patch and the substitute downloads are working again. This time I observed that the speed at which the substitute-binary.scm downloads the nar file is far low than when the same file is downloaded through wget. I haven't done extensive testing on this to confirm firmly, but it looks like the http-fetch implementation is not efficient. Can anyone confirm this? - Sree --------------040306090208060904080902 Content-Type: text/x-patch; name="0001-remove-timeout.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-remove-timeout.patch" =46rom 50417a01f71f973002171dcd9e5457721b3487ab Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 21 Jan 2014 08:56:37 +0100 Subject: [PATCH] - remove timeout --- guix/scripts/substitute-binary.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/substitute-binary.scm b/guix/scripts/substitute= -binary.scm index 901b3fb..ec620c5 100755 --- a/guix/scripts/substitute-binary.scm +++ b/guix/scripts/substitute-binary.scm @@ -142,7 +142,7 @@ provide." ;; sudo tc qdisc del dev eth0 root (let ((port #f)) (with-timeout (if (or timeout? (guile-version>? "2.0.5")) - %fetch-timeout + 0 0) (begin (warning (_ "while fetching ~a: server is unresponsive~%") --=20 1.7.10.4 --------------040306090208060904080902-- ------enig2PVXVPHDVTMXEWTHTFWLB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlLeMNoACgkQO2+K8UPCHzvGgQCg0Vkmq/lHY8a2WEcVKvjXmptN lMgAoL0zYhLUhUkQXTvUoNl8WfMo2HHs =iFHv -----END PGP SIGNATURE----- ------enig2PVXVPHDVTMXEWTHTFWLB--