Skip to content

Commit

Permalink
simple_qos: limit fq_codel to 600 packets max
Browse files Browse the repository at this point in the history
As I've almost never seen codel get past 200 packets, except in
truly pathological situations, limit it here to 600.
  • Loading branch information
Dave Taht committed Jun 17, 2012
1 parent 326629e commit b80f2db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions net/debloat/files/simple_qos.sh
Expand Up @@ -178,9 +178,9 @@ tc class add dev $IFACE parent 1:1 classid 1:13 htb rate ${BK_RATE}kbit ceil ${B
# A depth of 16 is better at low rates, but no lower. I'd argue for a floor of 22
# Packet aggregation suggests 42-64.

tc qdisc add dev $IFACE parent 1:11 handle 110: fq_codel
tc qdisc add dev $IFACE parent 1:12 handle 120: fq_codel
tc qdisc add dev $IFACE parent 1:13 handle 130: fq_codel
tc qdisc add dev $IFACE parent 1:11 handle 110: fq_codel limit 600
tc qdisc add dev $IFACE parent 1:12 handle 120: fq_codel limit 600
tc qdisc add dev $IFACE parent 1:13 handle 130: fq_codel limit 600

tc filter add dev $IFACE parent 1:0 protocol ip prio 1 handle 1 fw classid 1:11
tc filter add dev $IFACE parent 1:0 protocol ip prio 2 handle 2 fw classid 1:12
Expand Down Expand Up @@ -226,9 +226,9 @@ tc class add dev $DEV parent 1:1 classid 1:13 htb rate ${BK_RATE}kibit ceil ${BE

# I'd prefer to use a pre-nat filter but that causes permutation...

tc qdisc add dev $DEV parent 1:11 handle 110: fq_codel
tc qdisc add dev $DEV parent 1:12 handle 120: fq_codel
tc qdisc add dev $DEV parent 1:13 handle 130: fq_codel
tc qdisc add dev $DEV parent 1:11 handle 110: fq_codel limit 600
tc qdisc add dev $DEV parent 1:12 handle 120: fq_codel limit 600
tc qdisc add dev $DEV parent 1:13 handle 130: fq_codel limit 600

diffserv

Expand Down

0 comments on commit b80f2db

Please sign in to comment.