From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: CDN performance Date: Fri, 21 Dec 2018 02:22:18 -0800 Message-ID: <87o99f9o2t.fsf@gmail.com> References: <20181203154335.10366-1-ludo@gnu.org> <87tvju6145.fsf@gnu.org> <87ftv7l6gy.fsf@gmail.com> <871s6qzo6m.fsf_-_@gnu.org> <874lbk63se.fsf@gmail.com> <877egdyk82.fsf@gmail.com> <87d0q01wdx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaHww-0003eo-Nf for guix-devel@gnu.org; Fri, 21 Dec 2018 05:22:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaHws-0000Na-Iz for guix-devel@gnu.org; Fri, 21 Dec 2018 05:22:34 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:34499) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaHws-0000JI-9p for guix-devel@gnu.org; Fri, 21 Dec 2018 05:22:30 -0500 Received: by mail-pf1-x432.google.com with SMTP id h3so2419553pfg.1 for ; Fri, 21 Dec 2018 02:22:25 -0800 (PST) In-Reply-To: <87d0q01wdx.fsf@gmail.com> (Meiyo Peng's message of "Mon, 17 Dec 2018 14:48:42 +0800") 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" To: Meiyo Peng Cc: guix-devel@gnu.org, 33600@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Meiyo, Thank you for sharing this information with us! Can you also share what numbers you get when you run measure_get against berlin.guixsd.org directly? Clearly, the connection from you to CloudFront is not as performant as it is for others in other parts of the world, but I wonder if it's still better than accessing berlin directly. If you could run measure_get against berlin directly and share the numbers, we can see if it represents any significant improvement for you. Meiyo Peng writes: > I tested your script several times. > > 1. Tested today at home. China Unicom home broadband. 50Mb/s. > > The result is slow as usual. curl failed once. > berlin-mirror.marusich.info is resolved to Seattle, WA, US. Well, that's not great. Perhaps it's still better than it would be if the DNS name resolved to a location in Europe, though. > #+BEGIN_EXAMPLE > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 55 66.6M 55 36.9M 0 0 17926 0 1:04:59 0:36:02 0:28:5= 7 17733 > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 52.85.158.151 > remote_port: 443 > size_download: 38764357 B > speed_download: 17926.000 B/s > time_appconnect: 6.078850 s > time_connect: 3.006821 s > time_namelookup: 2.659785 s > time_pretransfer: 6.079097 s > time_redirect: 0.000000 s > time_starttransfer: 9.626001 s > time_total: 2162.379211 s > curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err = 2) I see, this is about 143 Kbps (not Mbps) of throughput, and 347 ms after DNS name resolution. > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 109k 0 0:10:25 0:10:25 --:--:-= - 241k > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 52.85.158.22 > remote_port: 443 > size_download: 69899433 B > speed_download: 111816.000 B/s > time_appconnect: 3.507528 s > time_connect: 2.650373 s > time_namelookup: 2.261801 s > time_pretransfer: 3.507637 s > time_redirect: 0.000000 s > time_starttransfer: 5.995298 s > time_total: 625.129571 s > > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 109k 0 0:10:23 0:10:23 --:--:-= - 141k > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 52.85.158.22 > remote_port: 443 > size_download: 69899433 B > speed_download: 112187.000 B/s > time_appconnect: 2.280972 s > time_connect: 1.407197 s > time_namelookup: 1.056180 s > time_pretransfer: 2.281234 s > time_redirect: 0.000000 s > time_starttransfer: 3.167703 s > time_total: 623.061584 s > #+END_EXAMPLE 897 Kbps, 351 ms after the name lookup. > 2. Tested 3 days ago at my office. China Telecom enterprise broadband. 50= Mb/s. > > Unusually fast! berlin-mirror.marusich.info is resolved to Seattle, WA, > US. I have no idea why it's so fast that day. > > #+BEGIN_EXAMPLE > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 1364k 0 0:00:50 0:00:50 --:--:-= - 1352k > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 13.35.20.109 > remote_port: 443 > size_download: 69899433 B > speed_download: 1397429.000 B/s > time_appconnect: 2.432387 s > time_connect: 0.200842 s > time_namelookup: 0.000446 s > time_pretransfer: 2.432659 s > time_redirect: 0.000000 s > time_starttransfer: 2.673045 s > time_total: 50.020945 s 11 Mbps, 200 ms after the name lookup. > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 1592k 0 0:00:42 0:00:42 --:--:-= - 2506k > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 13.35.20.109 > remote_port: 443 > size_download: 69899433 B > speed_download: 1630687.000 B/s > time_appconnect: 0.653270 s > time_connect: 0.209455 s > time_namelookup: 0.001582 s > time_pretransfer: 0.658399 s > time_redirect: 0.000000 s > time_starttransfer: 0.883126 s > time_total: 42.865868 s > #+END_EXAMPLE 13 Mbps, 208 ms after the name lookup. > 3. Tested today at my office. China Telecom enterprise broadband. 50Mb/s. > > Slow as usual. berlin-mirror.marusich.info is still resolved to Seattle, > WA, US. I killed the program several times because it hung there with no > data transfer for a few minutes. The TCP connection was probably closed > by GFW. This is very common here. > > #+BEGIN_EXAMPLE > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 48110 0 0:24:12 0:24:12 --:--:-= - 41808 > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 52.85.158.151 > remote_port: 443 > size_download: 69899433 B > speed_download: 48110.000 B/s > time_appconnect: 0.872926 s > time_connect: 0.282048 s > time_namelookup: 0.000524 s > time_pretransfer: 0.873099 s > time_redirect: 0.000000 s > time_starttransfer: 1.187467 s > time_total: 1452.904154 s 385 Kbps, 282 ms. > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 2 66.6M 2 1809k 0 0 5760 0 3:22:15 0:05:21 3:16:5= 4 0^C% > > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 52 66.6M 52 34.9M 0 0 16772 0 1:09:27 0:36:26 0:33:0= 1 0^C% > > =E2=9E=9C ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1= bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > % Total % Received % Xferd Average Speed Time Time Time = Current > Dload Upload Total Spent Left = Speed > 100 66.6M 100 66.6M 0 0 58181 0 0:20:01 0:20:01 --:--:-= - 87975 > url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv= 9z9zdhivbvfzhsz2s5yac-linux-libre-4.19 > http_code: 200 > num_connects: 1 > num_redirects: 0 > remote_ip: 52.85.158.22 > remote_port: 443 > size_download: 69899433 B > speed_download: 58181.000 B/s > time_appconnect: 2.297713 s > time_connect: 1.904176 s > time_namelookup: 1.727602 s > time_pretransfer: 2.297974 s > time_redirect: 0.000000 s > time_starttransfer: 2.503263 s > time_total: 1201.408929 s 465 Kbps, 177 ms. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlwcvtoACgkQ3UCaFdgi Rp1IGg//Qza4bHAjMAfJGjgsps/Rvw6CjD9cnDd1pImeqKpNohplRu+FX3A8J9B7 bjtzJSyX4KbGu4RlPWGq2PlfV3DwR3DXkYBTTPWnRsbXQs5NQ42YABjBP0dwLOTn zBv64nn7LVG46Cf2GTTKCNURB5QQd0Z/wzPaLM48Ij72wBdYlLapDxYdVlldFtFT UW+f8z6UGUfgZZo5FJKzEy1QvrWyHAHgMPn7zteJttTHoltUKw3VWhVfMxePzcVj WL0/zRMLvs1i9HfZqgmrA0fTMa+HPQqtJI0tIGf+ito1Ra62rpXegOcjyVAgsk9F n4BExTKdIHkWWr/NAKS5HUbiit5RMzHacaWwpe+JnNUEnu9Gsg1/Q6tljf0hok1U HOhrqN3xs7rD5nWVOMBybYeZv5aeK9ZBBa50rYCeziOxluKeL8VGyEDu4Vft4ehD EkzE2rOZ5WYm3DOsigIlnpKrhNSjV9bOV4tSiAMbCNvzLe+wchDn4nqpysvQI1x3 GY59hnFKzy+dEr6jQxobS8b1mMDaioVwmn1X8gaYHNMKp2VKs86Fl3pqBeobQgJ/ pd2PqAGsTCLtOQ777EknuXw8Wp56CGiT1m4WXgLYcax7N/Scv2GK5FtOfuUVm9zJ MIpucCTcksX+7Rk5KvjUXsfpiRU2ySZ7H+lf3AfKZgg8pNKu6vs= =JveL -----END PGP SIGNATURE----- --=-=-=--