Permalink
Browse files

simple_qos: limit fq_codel to 600 packets max

As I've almost never seen codel get past 200 packets, except in
truly pathological situations, limit it here to 600.
  • Loading branch information...
1 parent 326629e commit b80f2db106f25d4a3c885830b63d8c99d592b335 Dave Taht committed Jun 17, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 net/debloat/files/simple_qos.sh
@@ -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
@@ -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

0 comments on commit b80f2db

Please sign in to comment.