Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

UNIXish systems have a command-line utility called nice that can be used to run programs at a low priority, so that they don't hog the CPU.

Is there anything analogous that will limit the amount of network bandwidth a program uses? Sometimes I'd like to start a big download, but want my web browsing and other interactive network usage to stay responsive.


Related questions:

share|improve this question

1 Answer 1

up vote 13 down vote accepted

trickle -d 10 command runs command, limiting its bandwidth to 10kB/s. This is the analog of nice for bandwidth. It is packaged by at least Debian and Ubuntu.

ip_relay and redir are both tiny TCP proxies that support bandwidth limiting. Neither of them seem to have been maintained recently, but they're packaged by at least Debian and Ubuntu.

But maybe the tool you're using for downloading already supports bandwidth limitation, for instance wget --limit-rate=10k, curl --limit-rate 10k, rsync --bwlimit=10.

share|improve this answer
    
Wish I could upvote this twice. –  whitequark Aug 17 '10 at 0:02
    
made a point to login just so I could upvote this answer. trickle is great! –  hometoast Aug 17 '10 at 17:47
4  
These are not the analog of nice (though they are very useful!). nice defines a priority, not a limit. An analog of nice would give a process unlimited bandwidth if no other process wanted it. –  Ian Mackinnon Sep 12 '10 at 18:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.