all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sree Harsha Totakura <sreeharsha@totakura.in>
To: guix-devel@gnu.org
Subject: fetching substitutes slow
Date: Tue, 21 Jan 2014 09:33:26 +0100	[thread overview]
Message-ID: <52DE30D6.3090409@totakura.in> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 630 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-remove-timeout.patch --]
[-- Type: text/x-patch; name="0001-remove-timeout.patch", Size: 880 bytes --]

From 50417a01f71f973002171dcd9e5457721b3487ab Mon Sep 17 00:00:00 2001
From: Sree Harsha Totakura <sreeharsha@totakura.in>
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~%")
-- 
1.7.10.4



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

             reply	other threads:[~2014-01-21  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21  8:33 Sree Harsha Totakura [this message]
2014-01-21 13:13 ` fetching substitutes slow Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52DE30D6.3090409@totakura.in \
    --to=sreeharsha@totakura.in \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.