swupd-client icon indicating copy to clipboard operation
swupd-client copied to clipboard

swupd has terrible download speed

Open nhandt64 opened this issue 4 years ago • 18 comments

Hi, I had jumped over to Clear Linux. I've just found out that swupd only used ~25% of the bandwidth. Because whenever I downloads the ISO file from the alternative CDN, it uses the whole bandwidth (5.7MB/s), but when I download the packages bundle with swupd, the speed is just reaches ~1.7MB/s. I do know about --max-parallel-download but it's still happen the same. How do I resolve this issue? Thanks.

nhandt64 avatar Mar 02 '20 23:03 nhandt64

Thank you for the report.

Are you using the same mirror for the ISO download and the swupd? You can check that by running

swupd mirror

If not, try to set the mirror using

swupd mirror -set <url_to_mirror>

otaviobp avatar Mar 05 '20 22:03 otaviobp

I've tried: download.clearlinux.org, cdn.download.clearlinux.org, cdn-alt.download.clearlinux.org and they're all the same one, same CDN deploy from one server but alternative subdomain.

nhandt64 avatar Mar 05 '20 23:03 nhandt64

Note: I do know about swupd mirror since I had read all the docs before rolled to Clear Linux

nhandt64 avatar Mar 05 '20 23:03 nhandt64

Nice. I'll set this as a feature request then. We had an effort on getting download speed better in the past, but it looks like something we need to readdress. Thank you for the feedback.

otaviobp avatar Mar 06 '20 00:03 otaviobp

I suggest to add something like parallel threads downloading for it.

nhandt64 avatar Mar 06 '20 00:03 nhandt64

For what is worth as another data-point; I'm down in Australia but on a 100/40mbps fiber connection. The highest swupd download speed I've recorded in the last few months is 100KB/sec, with an average of around 50KB/sec. This is very tediously slow.

Would love a way to run threads in parallel for the same file as the bundle-add often bogs down when it hits a 100MB+ bundle.

Ralim avatar Apr 20 '20 23:04 Ralim

It's look like getting hard for devs to solving the swupd's problems in milestones since the spread of COVID-19.

nhandt64 avatar Apr 21 '20 01:04 nhandt64

Any progress on this ?

sn99 avatar Dec 22 '20 17:12 sn99

Any progress on this ?

Pretty sure nope. I have waited so long so I chose Fedora anyways.

nhandt64 avatar Dec 22 '20 23:12 nhandt64

Don't think anything has changed much. Feels like for myself at least, that files are not staying cached for longer than an hour or so.

If I update two machines back to back, the second one is nice and fast (200mbit or so), by the first one is painfully slow.

If I do one machine in the morning and one in the afternoon both are very slow.

Ralim avatar Dec 22 '20 23:12 Ralim

It is still incredible slow, swupd can average around a few kbit/s while other CDNs can average around 300-500 Mbit/s on the same machine under the same conditions.

lars-whta avatar May 11 '22 15:05 lars-whta

I tried to compare the speed of the repo server with debian's. Download speeds on Debian repos reach 60MBps while Clear Linux is only about 4.8MBps.

Test using the OS files available in the repo.

FrozzDay avatar May 17 '22 12:05 FrozzDay

Wow, it's been 2 years already and I forgot about this issue! I currently am using Arch Linux, it was a great journey along the way.

nhandt64 avatar May 24 '22 16:05 nhandt64

Yup, still the case. Would be great if the mirrors would be auto selected.

jmakov avatar Aug 19 '23 01:08 jmakov

better leave it auto update, as cached on akaimai

FrozzDay avatar Aug 24 '23 13:08 FrozzDay

I can confirm also that the speed was so low after 2h still was downloading packages. I ended up ditching this distro because of this low mirror speed. Unfortunately. Hope for a fix in the future, i was really eager to try it on my nas.

Keltere avatar Aug 25 '23 14:08 Keltere

will this be ever addressed?

username0136 avatar Nov 14 '23 00:11 username0136

we are constantly keeping an eye out but it seems to greatly depend on where in the world you are for the CDN to decide to be slow or fast

On Mon, Nov 13, 2023 at 4:04 PM Hmmm @.***> wrote:

will this be ever addressed?

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/swupd-client/issues/1341#issuecomment-1809327584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FKVEZST6R2VKRIUC7TYEKYR5AVCNFSM4K767D22U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQHEZTENZVHA2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fenrus75 avatar Nov 14 '23 00:11 fenrus75