Skip to contentSkip to conversation

1k: 1000 or 1024?

LARTC Andreas Hasenack 2 participants 2 messages Feb 23, 2006 – Feb 24, 2006

lore
Share & tools
lore
#0 lore raw

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

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 11 lines · Andreas Hasenack

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
Quoted 4 lines

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

Those 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
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc