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?