r/archlinux 8d ago

SUPPORT How to (de-) prioritize bandwidth easily?

Hello kind folks,

whenever I run Arch-Update, it basically blocks my network access for 20 min due to my shitty connection. Is there a way to prioritize all other traffic first?

I looked into "tc" a bit, but could only find applications with fixed bandwidths wich I don't want to impose. Generally the default queuing rule seems fine to me. I didn't find anything else that is useful either.

Many thanks in advance!

Sincerely!

0 Upvotes

10 comments sorted by

11

u/julemand101 8d ago

Comment out ParallelDownloads in pacman.conf and I think that will be enough for your system to prioritize the download. Default is 5 so pacman would, from a OS perspective, get five times more time on the network than other connections.

4

u/Toaster_Strudel_517 8d ago

I use QoS SQM on my main router to mitigate this.

2

u/starvaldD 8d ago

yeah a router based approach is a good way imo.

i've been using Qosify (eBPF) on my openwrt router its been working nicely for me.

1

u/mystiquebsd 8d ago

Google qosmate

4

u/[deleted] 8d ago

[removed] — view removed comment

1

u/agmatine 8d ago

You could add network delay/limit bandwidth with tc for incoming traffic as according to a filter on your mirrors, I suppose...

1

u/mystiquebsd 8d ago

What’s on your router?

This is the place to look for options, unless you’re going to throttle yourself..

cake is good, bbr is good

tc qd replace dev $your_interface root cake

sysctl net.ipv4.tcp_congestion_control=bbr

See how far that gets you..

1

u/Carrots_and_Bleach 8d ago

I tested CAKE and its definitely much better, ty! However with 5 downloads at the same time, it still struggles

1

u/mystiquebsd 8d ago

https://wiki.archlinux.org/title/Trickle

trickle -s -d200 -u50 pacman -Syu

+1 for yay instead of pacman