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
Andreas Hasenack wrote:> > 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.EXPLAINThose docs are old. tc was changed at the request of several members of this ML. Search the history in May and June of 2004 or read the Changelog in the source code. -- gypsy