Is there a way to limit the bandwidth used for updates?

Is there a way to limit the bandwidth used for updates?

If I could manage to limit it to 1Mb or 2 Mb maximum, it would be ideal to update without interrupting others who need it for video conferences or even to play games.

And of course, sometimes when no one is around, use the maximum bandwidth allowed.

Regards!


Note: I forgot to write it down, I always use pacman to update my system.

You could use a custom download option for pacman and limit that one, see pacman/Tips and tricks - ArchWiki

For example forwget one could modify the given example to

XferCommand = /usr/bin/wget --limit-rate=2M --passive-ftp -c -O %o %u

Updating would have to be done via pacman for this to have an effect, I doubt pamac would honor this.

1 Like

You could also try wondershaper–available in AUR–as a front end to iproute. It allows throttling at the device level, so you’d want to undo it afterword. I can’t link to the GIT page yet but you might want to check it out for examples…

1 Like

You don’t want to upset Bert huh?

1 Like

Thank you @freggel.doe & @mendizale
As soon as I get rid of an earring, I will try your suggestions.

@chomsky Bert is my brother, really.
I better not consume all the bandwidth. And better not to make him angry..

1 Like

I’ve ben to sesame street, that dude scares me. Hope you figure out the issue for all our sakes!

1 Like

Bert, well… he’s a good guy, but he has too much caffeine; the problem is when he doesn’t drink his morning coffee.

But who doesn’t? :coffee: