[LARTC] 1k: 1000 or 1024?
Andreas Hasenack
ahasenack at terra.com.br
Thu Feb 23 18:12:30 CET 2006
The docs[1][2] suggest it's 1024, but tc says something else:
# tc qdisc add dev eth0 root tbf rate 1kbps latency 50ms burst 1500
# tc -s qdisc ls dev eth0
qdisc tbf 8009: rate 8000bit burst 1499b lat 48.8ms
^^^^^^^
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
If 1k were 1024, then I would have 8192bit above.
1. http://www.docum.org/docum.org/faq/cache/74.html
2.http://ds9a.nl/2.4Networking/howto/lartc.qdisc.html#LARTC.QDISC.EXPLAIN
More information about the LARTC
mailing list