From e3dcadfb7c10ef0d2c3dd5ca0123dfc5280d5925 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Thu, 8 Jan 2026 09:41:56 +0700 Subject: [PATCH] better limits --- limit-bandwidth.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/limit-bandwidth.sh b/limit-bandwidth.sh index 7aaf823c..bfc163b2 100755 --- a/limit-bandwidth.sh +++ b/limit-bandwidth.sh @@ -243,7 +243,11 @@ case "$ACTION" in # - You can't control what others send (incoming) # - Dropping incoming packets causes retransmissions and wastes bandwidth # - P2P protocols have backpressure mechanisms - tc qdisc add dev "$BRIDGE" root handle 1: htb default 30 + # + # Set r2q (rate to quantum ratio) to handle low bandwidths better + # Higher r2q = smaller quantum = better for low bandwidths + # Default r2q=10, but for low bandwidths we use r2q=40 to avoid quantum warnings + tc qdisc add dev "$BRIDGE" root handle 1: htb r2q 40 default 30 # Create root class with high bandwidth tc class add dev "$BRIDGE" parent 1: classid 1:1 htb rate 1000mbit