Skip to contentSkip to conversation

Config.in: Use CDN kernel.org mirror

PATCH New Alexey Brodkin 3 participants 10 messages May 23, 2016 – May 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

It turned out for quite some time CDN-powered mirror of kernel.org is available. See this announce:
https://www.kernel.org/introducing-fastly-cdn.html

This change switches to that faster mirror by default.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 Config.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Config.in +4 -1
index 93b4f69..71f0161 100644
@@ -225,7 +225,7 @@ config BR2_BACKUP_SITE
 
 config BR2_KERNEL_MIRROR
 	string "Kernel.org mirror"
-	default "https://www.kernel.org/pub"
+	default "https://cdn.kernel.org/pub"
 	help
 	  kernel.org is mirrored on a number of servers around the world.
 	  The following allows you to select your preferred mirror.
@@ -236,6 +236,9 @@ config BR2_KERNEL_MIRROR
 	     http://www.XX.kernel.org/pub (XX = country code)
 	     http://mirror.aarnet.edu.au/pub/ftp.kernel.org
 
+	  Now when kernel.org is mirrored by CDN as well we'll be using
+	  it by default to speed-up downloads all over the world.
+
 config BR2_GNU_MIRROR
 	string "GNU Software mirror"
 	default "http://ftp.gnu.org/pub/gnu"
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Hello,

Quoted 9 lines · Alexey Brodkin

It turned out for quite some time CDN-powered mirror of kernel.org is available. See this announce:
https://www.kernel.org/introducing-fastly-cdn.html

This change switches to that faster mirror by default.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>

That's a good change. It was suggested some time ago on IRC, and we should do it.

Config.in config BR2_KERNEL_MIRROR · line 237

Quoted 10 lines

config BR2_KERNEL_MIRROR

Config.in +1 -1
 	string "Kernel.org mirror"
-	default "https://www.kernel.org/pub"
+	default "https://cdn.kernel.org/pub"
 	help
 	  kernel.org is mirrored on a number of servers around the world.
 	  The following allows you to select your preferred mirror.
@@ -236,6 +236,9 @@ config BR2_KERNEL_MIRROR
 	     http://www.XX.kernel.org/pub (XX = country code)
 	     http://mirror.aarnet.edu.au/pub/ftp.kernel.org

Should this list of mirrors be removed?

Config.in config BR2_KERNEL_MIRROR · line 240

Quoted 2 lines
Config.in +2 -0
+	  Now when kernel.org is mirrored by CDN as well we'll be using
+	  it by default to speed-up downloads all over the world.

I'm sorry, but I don't understand this sentence.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 9 lines · Alexey Brodkin

It turned out for quite some time CDN-powered mirror of kernel.org is available. See this announce:
https://www.kernel.org/introducing-fastly-cdn.html

This change switches to that faster mirror by default.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>

That's a good change. It was suggested some time ago on IRC, and we should do it.

Quoted 12 lines
Quoted 10 lines

config BR2_KERNEL_MIRROR
string "Kernel.org mirror"

Config.in +1 -1
-	default "https://www.kernel.org/pub"
+	default "https://cdn.kernel.org/pub"

help
kernel.org is mirrored on a number of servers around the world. The following allows you to select your preferred mirror.

Config.in +0 -0
@@ -236,6 +236,9 @@ config BR2_KERNEL_MIRROR
 http://www.XX.kernel.org/pub (XX = country code)

http://mirror.aarnet.edu.au/pub/ftp.kernel.org

Should this list of mirrors be removed?

Does it even make sense to have a configuration option for it if the CDN is used?

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#3 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Hello,

Quoted 4 lines · Peter Korsgaard
Quoted 1 line

Should this list of mirrors be removed?

Does it even make sense to have a configuration option for it if the CDN is used?

I asked the exact same question when a person came on IRC to suggest this change. I referred to what we did for the SourceForge situation.

But apparently, this CDN thing is less smart than the SourceForge thing in that it might redirect you to a non-working mirror (i.e it doesn't check).

However, the person on IRC was also suggesting to do the change for BR2_GNU_MIRROR, so maybe the case is different.

So, I would suggest to change the default values for now, leave it this way for a while, and if nobody complains of failed downloads, we can remove the option completely.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Hi Thomas,

Quoted 16 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · Peter Korsgaard

?> Should this list of mirrors be removed???

Does it even make sense to have a configuration option for it if the CDN is used?

I asked the exact same question when a person came on IRC to suggest this change. I referred to what we did for the SourceForge situation.

But apparently, this CDN thing is less smart than the SourceForge thing in that it might redirect you to a non-working mirror (i.e it doesn't check).

Quoted 6 lines

However, the person on IRC was also suggesting to do the change for BR2_GNU_MIRROR, so maybe the case is different.

So, I would suggest to change the default values for now, leave it this way for a while, and if nobody complains of failed downloads, we can remove the option completely.

Agree only real life test may answer how reliable that thing is. But given there's an obvious benefit for users and current BR state we'll have plenty of time to try this out and if people start complaining we'll revert back to a simple www.kernel.org?before the next rc1.

-Alexey

#5 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

In reply to Thomas Petazzoni
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 4 lines · Peter Korsgaard
Quoted 1 line

Should this list of mirrors be removed?

Does it even make sense to have a configuration option for it if the CDN is used?

Quoted 6 lines

I asked the exact same question when a person came on IRC to suggest this change. I referred to what we did for the SourceForge situation.

But apparently, this CDN thing is less smart than the SourceForge thing in that it might redirect you to a non-working mirror (i.e it doesn't check).

:/

Quoted 6 lines

However, the person on IRC was also suggesting to do the change for BR2_GNU_MIRROR, so maybe the case is different.

So, I would suggest to change the default values for now, leave it this way for a while, and if nobody complains of failed downloads, we can remove the option completely.

Ok. Missing files should normally fall back to sources.b.o, so we might not hear about it though.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#6 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

In reply to Thomas Petazzoni

Hi Thomas,

Quoted 17 lines · Thomas Petazzoni

Hello,

Quoted 10 lines · Alexey Brodkin

It turned out for quite some time CDN-powered mirror of kernel.org is available. See this announce:
https://www.kernel.org/introducing-fastly-cdn.html

This change switches to that faster mirror by default.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>

That's a good change. It was suggested some time ago on IRC, and we should do it.

Quoted 1 line
Quoted 11 lines
Quoted 10 lines

?config BR2_KERNEL_MIRROR
? string "Kernel.org mirror"

Config.in +1 -1
-	default "https://www.kernel.org/pub"
+	default "https://cdn.kernel.org/pub"

? help
? ??kernel.org is mirrored on a number of servers around the world.
? ??The following allows you to select your preferred mirror.

(quoted diff) +0 -0
@@ -236,6 +236,9 @@ config BR2_KERNEL_MIRROR
 ?	?????http://www.XX.kernel.org/pub (XX = country code)

? ?????http://mirror.aarnet.edu.au/pub/ftp.kernel.org

Should this list of mirrors be removed?

Well I have no preference here.
I mean user still may have a preferred mirror so why would we limit him or her here?

Quoted 4 lines

Review

Quoted 3 lines
(quoted diff) +2 -0
+	??Now when kernel.org is mirrored by CDN as well we'll be using
+	??it by default to speed-up downloads all over the world.

I'm sorry, but I don't understand this sentence.

If I'm not mistaken CDN allows to use the best server for each user (based on some criteria). Now kerenl.org is mirrored with use of that technology. And in theory users of Buildroot all over the world will benefit from much faster downloads from this CDN mirror (which will be in real life different physical servers for different users).

Not sure if that explanation makes more sense.

But for me use of CDN gave 2.5 boost (1.8 vs 5 Mbit/sec). And still there's a probability that it was our ISP that limited to 5 Mbit'sec and given I have a wider channel download speed might be even higher.

-Alexey

#7 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Hello,

Quoted 7 lines · Alexey Brodkin
Quoted 3 lines
Quoted 2 lines

? ?????http://www.XX.kernel.org/pub (XX = country code)
? ?????http://mirror.aarnet.edu.au/pub/ftp.kernel.org

Should this list of mirrors be removed?

Well I have no preference here.
I mean user still may have a preferred mirror so why would we limit him or her here?

Well, if we're pointing to a CDN then really there is no longer any reason to point users to www.XXX.kernel.org with XX = country code, since that's what a CDN is doing automatically.

Quoted 9 lines
Quoted 3 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+	??Now when kernel.org is mirrored by CDN as well we'll be using
+	??it by default to speed-up downloads all over the world.  

I'm sorry, but I don't understand this sentence.

If I'm not mistaken CDN allows to use the best server for each user (based on some criteria). Now kerenl.org is mirrored with use of that technology. And in theory users of Buildroot all over the world will benefit from much faster downloads from this CDN mirror (which will be in real life different physical servers for different users).

Yes, of course. But I still think the wording is wrong. The wording feels like something for the commit log, not for the help text. A correct wording for the help text could be:

The default value points to kernel.org's CDN, which will automatically redirect you to a mirror geographically close to you.

Quoted 4 lines

But for me use of CDN gave 2.5 boost (1.8 vs 5 Mbit/sec). And still there's a probability that it was our ISP that limited to 5 Mbit'sec and given I have a wider channel download speed might be even higher.

Right.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#8 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · Alexey Brodkin
Quoted 5 lines
Quoted 5 lines

? ?????http://www.XX.kernel.org/pub (XX = country code)
? ?????http://mirror.aarnet.edu.au/pub/ftp.kernel.org??

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Should this list of mirrors be removed???

Well I have no preference here.
I mean user still may have a preferred mirror so why would we limit him or her here?

Well, if we're pointing to a CDN then really there is no longer any reason to point users to www.XXX.kernel.org with XX = country code, since that's what a CDN is doing automatically.

Indeed but given our previous discussion it makes sense to leave those help strings for time being.

Quoted 11 lines
Quoted 11 lines
Quoted 6 lines

Review

Quoted 5 lines
(quoted diff) +2 -0
+	??Now when kernel.org is mirrored by CDN as well we'll be using
+	??it by default to speed-up downloads all over the world.??

I'm sorry, but I don't understand this sentence.??

If I'm not mistaken CDN allows to use the best server for each user (based on some criteria). Now kerenl.org is mirrored with use of that technology. And in theory users of Buildroot all over the world will benefit from much faster downloads from this CDN mirror (which will be in real life different physical servers for different users).

Quoted 7 lines

Yes, of course. But I still think the wording is wrong. The wording feels like something for the commit log, not for the help text. A correct wording for the help text could be:

The default value points to kernel.org's CDN, which will automatically redirect you to a mirror geographically close to you.

Do you want me to resend the patch or you'll do this fixup before patch application?

-Alexey

#9 lore raw

PATCH 1/1 Config.in: Use CDN kernel.org mirror

In reply to Alexey Brodkin

Hello,

Quoted 4 lines · Alexey Brodkin

It turned out for quite some time CDN-powered mirror of kernel.org is available. See this announce:
https://www.kernel.org/introducing-fastly-cdn.html

Quoted 8 lines

This change switches to that faster mirror by default.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 Config.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied to next after slightly tweaking the help text, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com