Slow large pings
Hello lartc,
Testing some rules I found out that any rules are slowing down large pings! For example:
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit prio 1 ceil 100Mbit tc class add dev eth0 parent 1:1 classid 1:2 htb rate 100Mbit prio 2 ceil 100Mbit
tc filter add dev eth0 parent 1:0 prio 5 u32 \
match ip src 10.10.10.1 \
match ip dst 10.10.10.10 \
flowid 1:2tc qdisc add dev eth0 parent 1:2 handle 2: sfq perturb 10
Small pings are ok - <10ms, here is output for 65500 byte pings:
Pinging test [10.10.10.1] with 65500 bytes of data:
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
Ping statistics for 10.10.10.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 120ms, Maximum = 120ms, Average = 120msIf I don't use any rules, 65500 byte pings are about ~10ms Any filters are slowing large pings for 10 times!!! What can I do to tune it up?
Signature · 6 lines
Best regards, kasp mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · kasp
Hello lartc,
Testing some rules I found out that any rules are slowing down large pings!
I can't reproduce this.
Quoted 7 lines
For example:
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit prio 1 ceil 100Mbit tc class add dev eth0 parent 1:1 classid 1:2 htb rate 100Mbit prio 2 ceil 100Mbittc filter add dev eth0 parent 1:0 prio 5 u32 \
Error for me unless I add protocol ip
Quoted 6 lines
match ip src 10.10.10.1 \ match ip dst 10.10.10.10 \ flowid 1:2tc qdisc add dev eth0 parent 1:2 handle 2: sfq perturb 10
Small pings are ok - <10ms, here is output for 65500 byte pings:
10ms is high I get 0.3 with p200mmx +rtl8139 + cheapest switch I could find + cables made without crimping tool.
Quoted 8 lines
Pinging test [10.10.10.1] with 65500 bytes of data:
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
Reply from 10.10.10.1: bytese500 time0ms TTLd
I see 14ms
Quoted 9 lines
Ping statistics for 10.10.10.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 120ms, Maximum = 120ms, Average = 120msIf I don't use any rules, 65500 byte pings are about ~10ms Any filters are slowing large pings for 10 times!!! What can I do to tune it up?
What kernel and hardware are you using?
Andy.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/