better limits

This commit is contained in:
goldsquid
2026-01-08 09:41:56 +07:00
parent 624b1da9a6
commit e3dcadfb7c

View File

@@ -243,7 +243,11 @@ case "$ACTION" in
# - You can't control what others send (incoming) # - You can't control what others send (incoming)
# - Dropping incoming packets causes retransmissions and wastes bandwidth # - Dropping incoming packets causes retransmissions and wastes bandwidth
# - P2P protocols have backpressure mechanisms # - 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 # Create root class with high bandwidth
tc class add dev "$BRIDGE" parent 1: classid 1:1 htb rate 1000mbit tc class add dev "$BRIDGE" parent 1: classid 1:1 htb rate 1000mbit