From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UMZIKNvzGl+MIAAA0tVLHw (envelope-from ) for ; Fri, 24 Jul 2020 14:44:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eLwpJNvzGl9xMAAAB5/wlQ (envelope-from ) for ; Fri, 24 Jul 2020 14:44:43 +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 38D289408FE for ; Fri, 24 Jul 2020 14:44:43 +0000 (UTC) Received: from localhost ([::1]:51430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyywE-0004fy-6x for larch@yhetil.org; Fri, 24 Jul 2020 10:44:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyytV-0000BW-Rx for help-guix@gnu.org; Fri, 24 Jul 2020 10:41:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53661) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyytV-000672-HT; Fri, 24 Jul 2020 10:41:53 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=50216 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jyytV-0006qf-4f; Fri, 24 Jul 2020 10:41:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Lo Peter Subject: Re: Very slow download speed of substitutes References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Thermidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Jul 2020 16:41:51 +0200 In-Reply-To: (Lo Peter's message of "Sun, 28 Jun 2020 22:06:32 +0800") Message-ID: <87blk56kls.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: jDi9LGeKLKZb Hi, Lo Peter 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-ppri= nt-0.6.9... > downloading from > https://ci.guix.gnu.org/nar/lzip/njhd9w4pvp2c6mbdngg1xvvld82a2c1l-ghc-ans= i-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-dat= a-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=E2=80=99d encourage you to check and report the download spe= ed 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=E2=80=99.