all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Lo Peter <peterloleungyau@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Very slow download speed of substitutes
Date: Fri, 24 Jul 2020 16:41:51 +0200	[thread overview]
Message-ID: <87blk56kls.fsf@gnu.org> (raw)
In-Reply-To: <CAEM+zmjWG9uOg=OFYF100RaOGNN-Y_p93p7aOjJdb2spXVzwuw@mail.gmail.com> (Lo Peter's message of "Sun, 28 Jun 2020 22:06:32 +0800")

Hi,

Lo Peter <peterloleungyau@gmail.com> skribis:

> I am trying guix import from cran, and building some R packages, which
> sometimes needs to download substitutes. i noticed that the download
> speed can be ridiculously slow and seems especially during night in
> HKT.
>
> Here is a snippet of the downloading:
>
> substituting /gnu/store/njhd9w4pvp2c6mbdngg1xvvld82a2c1l-ghc-ansi-wl-pprint-0.6.9...
> downloading from
> https://ci.guix.gnu.org/nar/lzip/njhd9w4pvp2c6mbdngg1xvvld82a2c1l-ghc-ansi-wl-pprint-0.6.9
> ...
>  ghc-ansi-wl-pprint-0.6.9  123KiB            25KiB/s 00:05
> [##################] 100.0%
>
> substituting /gnu/store/p035ilg1b6ywpxxj8df494x8zxnnwg12-ghc-data-default-instances-containers-0.0.1...
> downloading from
> https://ci.guix.gnu.org/nar/lzip/p035ilg1b6ywpxxj8df494x8zxnnwg12-ghc-data-default-instances-containers-0.0.1
> ...
>  ghc-data-default-instances-containers-0.0.1  42KiB 37KiB/s 00:01
> [##################] ghc-data-default-instances-containers-0.0.1
> 42KiB 37KiB/s 00:01 [##################] 100.0%

These are all small files so the download speed that is displayed may be
inaccurate.  I’d encourage you to check and report the download speed
for large files, say LibreOffice.

That said, the code in Guix could be improved by arranging to keep the
HTTPS connection alive between downloads instead of reopening it every
time.  This is especially expensive when downloading lots of small files
as is the case above.

Thanks,
Ludo’.


      reply	other threads:[~2020-07-24 14:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 14:06 Very slow download speed of substitutes Lo Peter
2020-07-24 14:41 ` Ludovic Courtès [this message]

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=87blk56kls.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=help-guix@gnu.org \
    --cc=peterloleungyau@gmail.com \
    /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.