From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Thu, 06 Sep 2007 21:14:51 +0000 Subject: Re: [LARTC] About "b" meaning "byte" and bit Message-Id: <46E06DCB.8000305@andyfurniss.entadsl.com> List-Id: References: <20070831162624.GA6133@DervishD> In-Reply-To: <20070831162624.GA6133@DervishD> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org DervishD wrote: > Hi Indunil :) >=20 > * Indunil Jayasooriya dixit: >> On 8/31/07, DervishD wrote: >>> Hi all :) >>> >>> I think that this issue has already been discussed on this list, but >>> google didn't find anything interesting, so I'm bringing the subject >>> again. >>> >>> The output of "tc" uses "b" meaning "byte" and "bit" for "bit". The >>> "official" suffixes for those units are "B" and "b", respectively, and >>> on top of this, I'm not sure if "kbit" means "kilobit" or "kibibit" in >>> "tc" output. >>> >> SEE below that was taken form this URL >> >> http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm >> >> >> Please read: tc tool (not only HTB) uses shortcuts to denote units of ra= te. >> kbps means kilobytes and kbit means kilobits ! This is the most FAQ abou= t tc >> in linux. >=20 > Yes, I already knew that, what I was asking is why SI units are not > used and "shortcuts" are used instead: see my original message, I was > not sure if kilobit was being used correctly (meaning 1000 bits) or if > it was being used mistakenly for kibibit (1024 bits), and on top of > that, why "b" was being used as byte when the SI prefix for byte is "B". It got changed so kbit means 1000 when S.Hemminger took over maintenance=20 IIRC. >=20 > I mean, tc doesn't seem to follow any standard except maybe in > kilobit (which should be then used as kb, not kbit). I think changing kb and kbit would break too many existing scripts. >=20 > Ra=FAl N=FA=F1ez de Arenas Coronado >=20 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc