Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Now i have some processes, e.g 2. named P1, P2. P1 and P2 will need to transmit data from NIC. Maybe we can take P1,P2 as two browser.

I have two questions: 1) I want to limit P1 max to 100KB/s, and P2 max to 200KB/s. How can I do for this? 2) I want to P1 use half of the NIC bandwidth, same to P2. They completely fair splitting bandwidth. How can I do for this? cgroup or tc?

share|improve this question

2 Answers 2

Yes you're right, cgroup + tc is the answer. You have a good example here : http://broadcast.oreilly.com/2009/06/manage-your-performance-with-cgroups-and-projects.html (look for "Networks, Too").

share|improve this answer
    
I'm sorry to reply you so later. the example in your links can help me to solve the question 1. But can't solve question2. cgroup maybe can't fairly splitting bandwidth. –  DaVid Feb 25 '11 at 3:55

The answer to question #2 may be the new net_prio subsystem. It lets you set network priorities per interface. See:

http://docs.fedoraproject.org/en-US/Fedora/17/html-single/Resource_Management_Guide/index.html#net_prio

share|improve this answer

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.