[wellylug] Limiting bandwidth used by Debian upgrade

Matt Brown matt at mattb.net.nz
Thu Aug 4 09:50:28 NZST 2005


On Thu, 2005-08-04 at 09:45 +1200, David Antliff wrote:

> Hmmm, after *reading* that last article I posted I realise that it's 
> probably more complicated than it needs to be. You could probably just 
> run:
> 
>    # trickle -s -d 10 apt-get dist-upgrade

The subtlety with this method is that if apt restarts any daemons they
are child processes of trickle and are hence rate limited to 10kbps (or
whatever you chose).

You can get around this by using two steps.

trickle -d $KBPS apt-get --download-only dist-upgrade && apt-get dist-upgrade

Cheers

-- 
Matt Brown
matt at mattb.net.nz
Mob +64 275 611 544 www.mattb.net.nz






More information about the wellylug mailing list