What is the Snap store's bandwith?

well, according to that data fastly thinks you can get ~7MBit/s in your downstream …

alan@robot:~$ snap install libreoffice
Download snap "libreoffice" (205) from channel "stable"   22% 10.0MB/s 51.0s

Seems okay for me, here.

@ogra I see that, but I don’t get that speed. Anything else I can try?

@popey I tried refreshing LO to edge channel and got ~450kB/s download speed up until 3% when it dropped to ~180kB/s and is dropping still.

I’ll try a different machine and restarting the current one.

I’m not sure if the store still uses fastly, ISTR that Canonical’s own servers are used for the content caching…

Also look at this thread Extremely slow snap downloads

Ok, weird. It seems to be my machine. I’ve tried installing libreoffice from my laptop and I got ~4MB/s down.

I’ve now switched on my desktop from wired connection to WiFi and I get ~750kB/s down and rising.

the only thing that I can think of is that on the problematic (desktop) machine I’m running the GA kernel on Ubuntu 20.04 as opposed to HWE kernel that Ubuntu now defaulted for 20.04 which I’m running on my laptop.

Although I know it’s anecdotal data at best, fwiw I have been having issues with download speeds from the CDN’s the past few days.

In some cases, the download literally will not start, other times, it will only get 1mbps on a connection that is capable of getting 220mbps download.

It legitimately faster for me to hit control-c and keep retrying the download until it hits an end point that saturates the connection, unless it’s in snapcraft itself, where the slower than usual downloads are actually becoming a significant portion of build time for me locally (I.E, downloading core20/gnome-extensions in the LXD container).

Again, I know it’s anecdotal, but I do think there’s something widespread.
(Using Virgin Media in the UK)

2 Likes

Ok, this is a bit odd.

When I was using a wired connection this was the fastly-debug result: Fastly Debug App

And with the ~7mbps I could only get a snap to download at arround 100kB/s speed.

Now that I’ve switched to WiFi (my mobo has the adapter built in) I get around 1.6mbps speed from fastly-debug: Screenshot_2021-03-12 Fastly Debug App(1)

But android-studio snap is downloading at 1MB/s speed. In fact, it just finished downloading :open_mouth:

edit: and I can now upload images to forum.

Going back to wired connection considerably slows down to download speed. It starts at ~450kB/s and stabilizes at around ~100kB/s.

The thing is, when I use WiFi connection, everything else is slower because the signal is pretty weak but snaps are downloading much faster.

On the wired connection I get much higher speeds at everything else except downloading snaps.

I’m glad to report I no longer have the issue.

The power management was on. Idk why it affected the wired speed too but it did.
I edited /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and changed the number from 3 to 2 to disable it.

1 Like

I always get it 150kb/s down
But if I cancel the download ( Ctrl + C ) and redownload the snap many times, I get full speed 20+ MB/s

2 Likes

test snapcraft speed https://youtu.be/0RRihoXOeoo

Post a screenshot of the results that you get from http://www.fastly-debug.com/

Screenshot_20210313_025206_com.android.chrome

This is not necessary or useful - the snap store stopped using Fastly last year.

This post (Slow snap store downloads, and slow SSO interactions - RESOLVED) contains more up-to-date information on how to test download speed from the store’s current CDN endpoints. Trace route to those host names would also be helpful.

3 Likes

Oh, sorry. I wasn’t aware of that.

Me too, apologies…

Any chance maintaining it under some post under #doc ? The only documentation I found related is Network requirements.

I have been seeing slow downloads since the last few years. It seems speeds don’t go past 100kb/s, sometimes I can get better speeds by just cancelling a slow snap install and running the command again.

Just a small update to add more information to this trail.
Installing a snap (0:49UTC) and have found the following details:

Download speed of gitkraken ~ 290kb/s

Download ip (from the snapd process) 91.189.91.43

And the network path

mtr 91.189.91.43 -z -c 5 -C
Mtr_Version,Start_Time,Status,Host,Hop,Ip,Asn,Loss%,Snt, ,Last,Avg,Best,Wrst,StDev,
MTR.0.93,1617238525,OK,91.189.91.43,1,_gateway,AS???,0.00,5,0,2.75,5.50,1.95,10.07,3.57
MTR.0.93,1617238525,OK,91.189.91.43,2,loop120881240.bng2.otw.bne.aussiebb.net,AS4764,0.00,5,0,29.21,29.89,23.93,35.81,4.32
MTR.0.93,1617238525,OK,91.189.91.43,3,HundredGigE0-0-0-11.core1.otw.bne.aussiebb.net,AS4764,0.00,5,0,192.99,191.84,188.95,196.26,2.88
MTR.0.93,1617238525,OK,91.189.91.43,4,be4.core1.vdc01.syd.aussiebb.net,AS4764,0.00,5,0,190.79,194.66,190.79,200.22,3.66
MTR.0.93,1617238525,OK,91.189.91.43,5,be1.core2.vdc01.syd.aussiebb.net,AS4764,0.00,5,0,197.87,198.11,193.66,204.25,3.84
MTR.0.93,1617238525,OK,91.189.91.43,6,be3.bdr1.coresite-la1.lax.aussiebb.net,AS4764,0.00,5,0,184.30,190.01,184.30,199.61,6.06
MTR.0.93,1617238525,OK,91.189.91.43,7,be1.bdr1.coresite-sv1.sjc.aussiebb.net,AS4764,0.00,5,0,194.24,196.37,192.21,207.21,6.21
MTR.0.93,1617238525,OK,91.189.91.43,8,ce-0-17-0-0.r01.snjsca04.us.bb.gin.ntt.net,AS2914,0.00,5,0,195.33,191.96,189.10,195.33,2.58
MTR.0.93,1617238525,OK,91.189.91.43,9,ae-10.r24.snjsca04.us.bb.gin.ntt.net,AS2914,0.00,5,0,204.90,195.63,190.58,204.90,5.45
MTR.0.93,1617238525,OK,91.189.91.43,10,ae-8.r23.chcgil09.us.bb.gin.ntt.net,AS2914,0.00,5,0,234.16,240.67,231.71,251.93,9.17
MTR.0.93,1617238525,OK,91.189.91.43,11,ae-2.r00.bstnma07.us.bb.gin.ntt.net,AS2914,0.00,5,0,271.62,259.36,252.03,271.62,7.64
MTR.0.93,1617238525,OK,91.189.91.43,12,ce-0-1-0-2.r00.bstnma07.us.ce.gin.ntt.net,AS2914,0.00,5,0,262.35,267.97,256.15,280.69,11.25
MTR.0.93,1617238525,OK,91.189.91.43,13,bbr02-et-0-0-7.bos01.twdx.net,AS27552,0.00,5,0,265.09,262.61,259.04,267.25,3.44
MTR.0.93,1617238525,OK,91.189.91.43,14,dcr03-hu-0-8-0-0.bsn04.twdx.net,AS27552,0.00,5,0,262.04,259.62,257.60,262.38,2.37
MTR.0.93,1617238525,OK,91.189.91.43,15,swp25.lebedev.canonical.com,AS27552,0.00,5,0,262.87,260.93,252.84,270.46,6.46
MTR.0.93,1617238525,OK,91.189.91.43,16,darkbowser.canonical.com,AS41231,0.00,5,0,253.92,254.46,249.38,256.85,3.05