[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cgroup & net_prio

Higher numbers denote higher priorities. By the way, net_prio seems to be really simple compared to tc traffic shapping. E.g.


set -e
set -x

APPS="chromium iceweasel rdesktop"

grep net_prio /proc/mounts > /dev/null 2>&1 || \
        mount -t cgroup -o net_prio net_prio $DIR

[ -d $DIR/high ] || mkdir $DIR/high
cd $DIR/high

echo "wlan0 10" > net_prio.ifpriomap

for pid in $(pidof $APPS); do
        echo $pid > tasks

On Sun, May 26, 2013 at 12:16 PM, Serkan Sakar <mrserkansakar@gmail.com> wrote:

the kernel documentation doesn't seem to state whether the priorities
for cgroup/net_prio are like unix process priorities or not. The default
prio is 0 and I'm not sure if increasing the numeric value also
increases the priority. My short tests are inconclusive. E.g.:

echo "wlan0 5" > net_prio.ifpriomap


Reply to: