nusenu / ContactInfo-Information-Sharing-Specification

A specification for tor's ContactInfo field.
https://nusenu.github.io/ContactInfo-Information-Sharing-Specification/
12 stars 3 forks source link

Decimal or binary prefixes? #3

Closed lucaswerkmeister closed 6 years ago

lucaswerkmeister commented 6 years ago

The specification refers to SI prefixes several times (MBit/s, TB, MB). It should clarify whether those prefixes are intended as decimal or binary prefixes.

IMHO this is especially important for memory, because /proc/meminfo and free by default use kB (kibibytes according to free(1)), but the specification calls for MB, so the relay operator needs to divide by either 1000 or 1024.

nusenu commented 6 years ago

In practice I see the following:

For traffic accounting I'm not entirely sure what most hosting companies actually mean when they say 50TB included. I'll try to figure out what most hosting companies mean.

nusenu commented 6 years ago

reference for one major provider (Tebibyte) https://twitter.com/LucasWerkmeistr/status/920777837195472896

nusenu commented 6 years ago

this should be fixed with: https://github.com/nusenu/ContactInfo-Information-Shareing-Specification/commit/71e8c271f1496255afc8ba851707eb09d731dfc6