Units of information explained

In digital computing and telecommunications, a unit of information is the capacity of some standard data storage system or communication channel, used to measure the capacities of other systems and channels. In information theory, units of information are also used to measure information contained in messages and the entropy of random variables.

The most commonly used units of data storage capacity are the bit, the capacity of a system that has only two states, and the byte (or octet), which is equivalent to eight bits. Multiples of these units can be formed from these with the SI prefixes (power-of-ten prefixes) or the newer IEC binary prefixes (power-of-two prefixes).

Primary units

In 1928, Ralph Hartley observed a fundamental storage principle, which was further formalized by Claude Shannon in 1945: the information that can be stored in a system is proportional to the logarithm of N possible states of that system, denoted . Changing the base of the logarithm from b to a different number c has the effect of multiplying the value of the logarithm by a fixed constant, namely .Therefore, the choice of the base b determines the unit used to measure information. In particular, if b is a positive integer, then the unit is the amount of information that can be stored in a system with b possible states.

When b is 2, the unit is the shannon, equal to the information content of one "bit" (a portmanteau of binary digit). A system with 8 possible states, for example, can store up to bits of information. Other units that have been named include:

Base b = 3 : the unit is called "trit", and is equal to (≈ 1.585) bits.
  • Base b = 10 : the unit is called decimal digit, hartley, ban, decit, or dit, and is equal to log2 10 (≈ 3.322) bits.
  • Base b = e, the base of natural logarithms : the unit is called a nat, nit, or nepit (from Neperian), and is worth (≈ 1.443) bits.The trit, ban, and nat are rarely used to measure storage capacity; but the nat, in particular, is often used in information theory, because natural logarithms are mathematically more convenient than logarithms in other bases.
  • Units derived from bit

    Several conventional names are used for collections or groups of bits.

    Byte

    Historically, a byte was the number of bits used to encode a character of text in the computer, which depended on computer hardware architecture, but today it almost always means eight bits – that is, an octet. An 8-bit byte can represent 256 (28) distinct values, such as non-negative integers from 0 to 255, or signed integers from −128 to 127. The IEEE 1541-2002 standard specifies "B" (upper case) as the symbol for byte (IEC 80000-13 uses "o" for octet in French, but also allows "B" in English). Bytes, or multiples thereof, are almost always used to specify the sizes of computer files and the capacity of storage units. Most modern computers and peripheral devices are designed to manipulate data in whole bytes or groups of bytes, rather than individual bits.

    Nibble

    A group of four bits, or half a byte, is sometimes called a nibble, nybble or nyble. This unit is most often used in the context of hexadecimal number representations, since a nibble has the same number of possible values as one hexadecimal digit has.

    Word, block, and page

    Computers usually manipulate bits in groups of a fixed size, conventionally called words. The number of bits in a word is usually defined by the size of the registers in the computer's CPU, or by the number of data bits that are fetched from its main memory in a single operation. In the IA-32 architecture more commonly known as x86-32, a word is 32 bits, but other past and current architectures use words with 4, 8, 9, 12, 13, 16, 18, 20, 21, 22, 24, 25, 29, 30, 31, 32, 33, 35, 36, 38, 39, 40, 42, 44, 48, 50, 52, 54, 56, 60, 64, 72 bits or others.

    Some machine instructions and computer number formats use two words (a "double word" or "dword"), or four words (a "quad word" or "quad").

    Computer memory caches usually operate on blocks of memory that consist of several consecutive words. These units are customarily called cache blocks, or, in CPU caches, cache lines.

    Virtual memory systems partition the computer's main storage into even larger units, traditionally called pages.

    Systematic multiples

    See main article: article and Binary prefix. Terms for large quantities of bits can be formed using the standard range of SI prefixes for powers of 10, e.g., kilo = 103 = 1000 (as in kilobit or kbit), mega = 106 = (as in megabit or Mbit) and giga = 109 = (as in gigabit or Gbit). These prefixes are more often used for multiples of bytes, as in kilobyte (1 kB = 8000 bit), megabyte (1 MB =), and gigabyte (1 GB =).

    However, for technical reasons, the capacities of computer memories and some storage units are often multiples of some large power of two, such as 228 = bytes. To avoid such unwieldy numbers, people have often repurposed the SI prefixes to mean the nearest power of two, e.g., using the prefix kilo for 210 = 1024, mega for 220 =, and giga for 230 =, and so on. For example, a random access memory chip with a capacity of 228 bytes would be referred to as a 256-megabyte chip. The table below illustrates these differences.

    SymbolPrefixSI MeaningBinary meaningSize difference
    kkilo103   = 10001210 = 102412.40%
    Mmega106   = 10002220 = 102424.86%
    Ggiga109   = 10003230 = 102437.37%
    Ttera1012 = 10004240 = 102449.95%
    Ppeta1015 = 10005250 = 1024512.59%
    Eexa1018 = 10006260 = 1024615.29%
    Zzetta1021 = 10007270 = 1024718.06%
    Yyotta1024 = 10008280 = 1024820.89%
    Rronna1027 = 10009290 = 1024923.79%
    Qquetta1030 = 1000102100 = 10241026.77%

    In the past, uppercase K has been used instead of lowercase k to indicate 1024 instead of 1000. However, this usage was never consistently applied.

    On the other hand, for external storage systems (such as optical discs), the SI prefixes are commonly used with their decimal values (powers of 10). Many attempts have sought to resolve the confusion by providing alternative notations for power-of-two multiples. In 1998 the International Electrotechnical Commission (IEC) issued a standard for this purpose by defining a series of binary prefixes that use 1024 instead of 1000 as the main radix:

    SymbolPrefix
    Kikibi, binary kilo1 kibibyte (KiB)210 bytes1024 B
    Mimebi, binary mega1 mebibyte (MiB)220 bytes1024 KiB
    Gigibi, binary giga1 gibibyte (GiB)230 bytes1024 MiB
    Titebi, binary tera1 tebibyte (TiB)240 bytes1024 GiB
    Pipebi, binary peta1 pebibyte (PiB)250 bytes1024 TiB
    Eiexbi, binary exa1 exbibyte (EiB)260 bytes1024 PiB

    The JEDEC memory standard JESD88F notes that the definitions of kilo (K), giga (G), and mega (M) based on powers of two are included only to reflect common usage, but are otherwise deprecated.

    Size examples

    Obsolete and unusual units

    Several other units of information storage have been named:

    Some of these names are jargon, obsolete, or used only in very restricted contexts.

    See also

    External links

    Notes and References

    1. Web site: Maleval . Jean Jacques . 2021-02-12 . Nimbus Data SSDs Certified for Use With Dell EMC PowerEdge Servers . 2024-05-30 . StorageNewsletter . en-US.
    2. Book: Raymond . Eric S. . The New Hacker's Dictionary . 1996 . MIT Press . 0262680920 . 333 . 3.