Thursday 11 January 2018

sd card - 128 MByte vs. 128 GByte


I recently saw a comparison for 2005 vs. 2014 microSD card: in 2005 there was only max 128 MByte microSD cards, and in 2014, 128 GByte.


My question: I'm not 100% sure. Is 128 GByte 1000× bigger than 128 MByte or 1024× bigger?



Answer



Kilobyte, megabyte and gigabyte mean different things depending on whether the international standard that one uses is based on powers of 2 (binary) or of 10 (decimal).


There are three standards involved :


International System of Units (SI)
The modern form of the metric system and the world's most widely used system of measurement, used in both everyday commerce and science.


JEDEC
The specifications for semiconductor memory circuits and similar storage devices promulgated by the Joint Electron Device Engineering Council (JEDEC) Solid State Technology Association, a semiconductor trade and engineering standardization organization.


International Electrotechnical Commission (IEC)
International standards organization that prepares and publishes International Standards for all electrical, electronic and related technologies.


Depending of which industry you are in, and whether you are using Microsoft, the definitions may vary. For example, gigabyte stands "mostly" for 109 bytes (GB). Many computer people use this term for 10243, while others would use for it the term gibibyte (GiB), while still others would write GiB and call it a gigabyte.


The confusion is even greater for kilobyte, which may stand for both 1000 and 1024!
Some would say that a megabyte is 10002, and that 10242 should be called mebibyte, others would disagree.


The wikipedia article Gigabyte describes how these terms were introduced into the international standards and furnishes the following table :


units



In 1998 the International Electrotechnical Commission (IEC) published standards for binary prefixes and requiring the use of gigabyte to strictly denote 10003 bytes and gibibyte to denote 10243 bytes. By the end of 2007, the IEC Standard had been adopted by the IEEE, EU, and NIST, and in 2009 they were incorporated in the International System of Quantities.



In everyday life, programmers usually use megabyte and gigabyte as binary base 2, which is also the case with Microsoft Windows. Disk makers and other companies than Microsoft usually use decimal base 10. This is the reason that Windows reports the capacity of a new disk as smaller than what is written on the box.


Conclusion: A gigabyte is both 1000 times and 1024 times larger than a megabyte. It depends on which international standard you choose to use at the moment. Strictly speaking, the notation that makes the units clearer is :


GB = 1000 x MB
GiB = 1024 x MiB

(but not everyone would agree.)


References :


wikipedia Binary prefix
International System of Units (SI) - Prefixes for binary multiples
units(7) - Linux manual page
Western Digital Settles Capacity Suit (this confusion even caused a law-suit!)


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...