Trickle : limit your application bandwidth
|Operating System||Debian 7|
trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.
aptitude install trickle
To use it, it's really easy. Simply add a command prefix with desired max bandwidth :
trickled -u 10 -d 20 firefox
Here, the maximum upload is set to 10k and upload to 20k.