David Schwartz staggered into the Black Sun and said:
> Dances With Crows wrote:
>> tc qdisc add dev eth1 root tbf burst 20480 limit 20480 \
>> mtu 1514 rate 32000bps
>> ...as was mentioned in the Traffic Control HOWTO. However, sustained
>> transfer rates weren't 64K/sec, but were 15K/sec.
> It's hard to figure out what exactly happened. You claim you set a
> traffic limit of 32,000 bits per second, and expected a transfer rate
> of 64,000 somethings per second (bits? bytes?) but got 15,000.
That's 64K/sec (kilobytes) expected, got 15K/sec. (Actually I should
have expected 32K/sec, but 32 still != 15.)
> What was the command you used?
See first paragraph. That was the exact syntax given in the HOWTO for
limiting an interface to 256 kbit/second. All right, they might have
gotten their math wrong, but I usually expect HOWTOs to be reasonably
accurate. Please also note that removing the rule, then replacing it
with the numbers doubled, quadrupled or *ed by 8 for burst, limit, and
rate produced the same measured 15K/sec. I said that in the first
message, but it's worth repeating.
> And how did you measure it?
Sustained transfer rate using scp.
> It also may be that you are expecting *application* cooked data
> throughput to equal raw network throughput.
The overhead isn't *that* high with scp, and see above.
> It's hard to tell though because your command seems not to match any
> expectation, with or without such errors.
That's sort of why I posted here, since what I saw is so different from
what I expected. So: Who's using tc, how are you using it, and how
do you make it work the way you want it to?
--
That which does not kill us makes us stranger.
--Trevor Goodchild, Aeon Flux
My blog and resume:
http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see