From: Meiyo Peng <meiyo.peng@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel@gnu.org, 33600@debbugs.gnu.org
Subject: Re: CDN performance
Date: Mon, 17 Dec 2018 14:48:42 +0800 [thread overview]
Message-ID: <87d0q01wdx.fsf@gmail.com> (raw)
In-Reply-To: <877egdyk82.fsf@gmail.com> (Chris Marusich's message of "Wed, 12 Dec 2018 23:11:25 -0800")
Hi Chris,
Chris Marusich <cmmarusich@gmail.com> writes:
> Meiyo Peng <meiyo.peng@gmail.com> writes:
>
>> After careful thought, I realized the new CDN won't benefit China
>> residents as planned. Any popular CDN outside China is significantly
>> throttled by ISP/GFW and the situation is worse every year. A CDN will
>> be a great improvement for western countries but not for many asia
>> countries.
>
> Could you try running the measure_get shell function I included in the
> following email?
>
> https://lists.gnu.org/archive/html/guix-devel/2018-12/msg00192.html
>
> For convenience, here is the definition:
>
> measure_get () {
> curl -L \
> -o /dev/null \
> -w "url_effective: %{url_effective}\\n\
> http_code: %{http_code}\\n\
> num_connects: %{num_connects}\\n\
> num_redirects: %{num_redirects}\\n\
> remote_ip: %{remote_ip}\\n\
> remote_port: %{remote_port}\\n\
> size_download: %{size_download} B\\n\
> speed_download: %{speed_download} B/s\\n\
> time_appconnect: %{time_appconnect} s\\n\
> time_connect: %{time_connect} s\\n\
> time_namelookup: %{time_namelookup} s\\n\
> time_pretransfer: %{time_pretransfer} s\\n\
> time_redirect: %{time_redirect} s\\n\
> time_starttransfer: %{time_starttransfer} s\\n\
> time_total: %{time_total} s\\n" \
> "$1"
> }
>
> Specifically, I am curious to know what performance you get when you run
>
> measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-linux-libre-4.19
>
> from a computer in China. Please be sure to run it two times in a row,
> to ensure that CloudFront has cached the object.
>
> CloudFront has edge locations in Hong Kong, so I am curious to know what
> performance improvement, if any, you observe.
Sorry for the delay. My computer was reinstalled with Windows and taken
away by my girlfriend. So I have been waiting for my new computer that I
bought online to arrive. Finally, it arrived yesterday and I
successfully installed Guix on it.
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.
#+BEGIN_EXAMPLE
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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:57 17733
url_effective: https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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)
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
2. Tested 3 days ago at my office. China Telecom enterprise broadband. 50Mb/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
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
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
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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:54 0^C%
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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:01 0^C%
➜ ~ measure_get https://berlin-mirror.marusich.info/nar/gzip/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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/1bq783rbkzv9z9zdhivbvfzhsz2s5yac-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
#+END_EXAMPLE
Well. As you see, the network in China is both slow and unstable.
next prev parent reply other threads:[~2018-12-17 6:48 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-03 15:43 [PATCH 0/3] Defaulting to ci.guix.info (aka. berlin.guixsd.org) Ludovic Courtès
2018-12-03 16:12 ` Using a CDN or some other mirror? Ludovic Courtès
2018-12-03 20:47 ` Ricardo Wurmus
2018-12-04 10:40 ` Hartmut Goebel
2018-12-04 14:05 ` Ludovic Courtès
2018-12-04 17:03 ` Pjotr Prins
2018-12-04 17:58 ` Thompson, David
2018-12-05 2:32 ` Meiyo Peng
2018-12-05 5:38 ` Leo Famulari
2018-12-05 10:59 ` Pierre Neidhardt
2018-12-05 11:46 ` Hartmut Goebel
2018-12-07 14:05 ` Ludovic Courtès
2018-12-09 9:44 ` Hartmut Goebel
2018-12-04 21:15 ` ng0
2018-12-04 21:50 ` Thompson, David
2018-12-05 9:28 ` ng0
2018-12-09 3:33 ` Chris Marusich
2018-12-09 12:12 ` Hartmut Goebel
2018-12-09 13:58 ` Ludovic Courtès
2018-12-11 16:38 ` Giovanni Biscuolo
2018-12-14 8:35 ` Hartmut Goebel
2018-12-14 9:02 ` Pierre Neidhardt
2018-12-14 14:48 ` Compressing nars with lzip or similar Ludovic Courtès
2018-12-14 15:21 ` Pierre Neidhardt
2018-12-15 12:17 ` Pierre Neidhardt
2018-12-15 18:06 ` Ludovic Courtès
2019-03-05 11:36 ` Pierre Neidhardt
2018-12-15 18:04 ` Ludovic Courtès
2018-12-14 14:45 ` Using a CDN or some other mirror? Ludovic Courtès
2018-12-09 15:59 ` CDN performance Ludovic Courtès
2018-12-11 5:17 ` Meiyo Peng
[not found] ` <CAAYZrgbOZYyKhaHzziWfKz-nHVcUWS6WCo4TAq8bbDn9=YMTZA@mail.gmail.com>
2018-12-11 5:59 ` Meiyo Peng
[not found] ` <CAAYZrgb431xW1RD0Hf0d15T3AiW5yZWLL6oqHsyanv1qSf8Zuw@mail.gmail.com>
2018-12-11 6:14 ` Meiyo Peng
2018-12-13 7:11 ` Chris Marusich
2018-12-17 6:48 ` Meiyo Peng [this message]
2018-12-21 10:22 ` Chris Marusich
2018-12-21 16:04 ` Meiyo Peng
2018-12-13 8:05 ` Chris Marusich
2018-12-13 10:41 ` Giovanni Biscuolo
2018-12-15 1:40 ` Mark H Weaver
2018-12-19 12:40 ` Giovanni Biscuolo
2018-12-21 0:23 ` Trustworthiness of build farms (was Re: CDN performance) Mark H Weaver
2018-12-21 20:47 ` CDN performance Marius Bakke
2018-12-24 14:47 ` Ricardo Wurmus
2018-12-14 10:26 ` guix.gnu.org sub-domain Ludovic Courtès
2018-12-15 23:20 ` Chris Marusich
2019-01-25 4:54 ` Amin Bandali
2018-12-14 10:35 ` CDN performance Ludovic Courtès
2018-12-13 9:21 ` Using a CDN or some other mirror? Giovanni Biscuolo
2018-12-14 12:17 ` Chris Marusich
2018-12-03 18:20 ` [PATCH 0/3] Defaulting to ci.guix.info (aka. berlin.guixsd.org) Amin Bandali
2018-12-04 14:11 ` Ludovic Courtès
2018-12-11 5:41 ` Amin Bandali
2018-12-03 23:44 ` Mark H Weaver
2018-12-04 5:55 ` Ricardo Wurmus
2018-12-04 9:03 ` [bug#33600] " Ludovic Courtès
2018-12-04 10:08 ` Andreas Enge
2018-12-04 8:59 ` Andreas Enge
2018-12-04 10:28 ` Ludovic Courtès
2018-12-04 10:46 ` Andreas Enge
2018-12-04 14:12 ` Ludovic Courtès
2018-12-04 3:40 ` Meiyo Peng
2018-12-04 14:13 ` 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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0q01wdx.fsf@gmail.com \
--to=meiyo.peng@gmail.com \
--cc=33600@debbugs.gnu.org \
--cc=cmmarusich@gmail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).