Hi all,
I tried last week to do traffic shaping on a production system, object of the exercise was simply to throttle the outgoing traffic.
tc qdisc add dev eth4 root tbf rate 300mbit burst 300kb latency 50ms
But the server became rather instable, crashing repeatedly without anything in the logs.
Can anybody spot glaring mistakes in the tc command above, or tell me what I should have done instead?
with kind regards, Bent Terp
From: Bent Terp bent@terp.se
I tried last week to do traffic shaping on a production system, object of the exercise was simply to throttle the outgoing traffic. tc qdisc add dev eth4 root tbf rate 300mbit burst 300kb latency 50ms But the server became rather instable, crashing repeatedly without anything in the logs. Can anybody spot glaring mistakes in the tc command above, or tell me what I should have done instead?
I am no tc expert so last time I tested I had some success with the cbq.init script... There are other (more recent?) ones here: http://linux-ip.net/articles/Traffic-Control-HOWTO/scripts.html
JD
Hi, I'm using a script:
#!/bin/bash NETZWERK_DEVICE="eth0" OUT_REMOTE_SPEED_MAX="7500kbit" OUT_LOCAL_SPEED_MAX="80000kbit" OUTGOING_SPEED_3="$1" INCOMING_SPEED_1="$1" INCOMING_SPEED_2="200kbit"
/sbin/tc qdisc del dev ${NETZWERK_DEVICE} root 2> /dev/null
/sbin/tc qdisc add dev ${NETZWERK_DEVICE} root handle 1:0 htb default 1
/sbin/tc class add dev ${NETZWERK_DEVICE} parent 1:0 classid 1:1 htb rate ${OUT_REMOTE_SPEED_MAX}
This is OK in behavior.
Best regards Helmut Drodofsky
Viele Grüße i.V. Helmut Drodofsky ________________________________
Internet XS Service GmbH Heßbrühlstraße 15 D-70565 Stuttgart Fon : 0711/781941-0 Fax : 0711/781941-79 Geschäftsführer: Dr. Roswitha Hahn-Drodofsky HRB 21091 Stuttgart USt.ID.: DE 190582774
Am 04.02.2013 05:28, schrieb Bent Terp:
Hi all,
I tried last week to do traffic shaping on a production system, object of the exercise was simply to throttle the outgoing traffic.
tc qdisc add dev eth4 root tbf rate 300mbit burst 300kb latency 50ms
But the server became rather instable, crashing repeatedly without anything in the logs.
Can anybody spot glaring mistakes in the tc command above, or tell me what I should have done instead?
with kind regards, Bent Terp _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos