Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I'm playing a game, I don't want Dropbox taking hogging my network connection. I have been able to noticeably reduce my latency by turning it off while playing. The same is true to a lesser extend for web browsing.

I'm looking for network equivalents for niceness and scheduling policies (SCHED_BATCH etc. in schedtool). Does such a thing exist? Alternatively, automatically cutting off network access for a specific process while another one is running would work too.

share|improve this question

Generally this is work for a traffic shaper, so that is what you should look for. As for identifying what packets belong to what application, you will probably want to look at network namespaces and/or Cgroups, but I would expect there to be some ready-to-use solutions (likely based on these).

share|improve this answer
I already knew about these building blocks but never used them before. A ready-made solution is what I am in fact looking for. – Erik Apr 2 '13 at 16:59

Your Answer


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.