UNITS(7) Linux Programmer’s Manual UNITS(7) 名前 units, kilo, kibi, mega, mebi, giga, gibi - 10 進および 2 進の接頭語 説明 10 進の接頭語 SI 単位系では 10 の累乗を示す接頭語を用いる。キロメートルは 1000 メート ル、メガワットは 1000000 ワットである。次に標準的な接頭語を示す。 接頭語 名前 値 y ヨクト(yocto) 10^-24 = 0.000000000000000000000001 z ゼプト(zepto) 10^-21 = 0.000000000000000000001 a アト(atto) 10^-18 = 0.000000000000000001 f フェムト(femto) 10^-15 = 0.000000000000001 p ピコ(pico) 10^-12 = 0.000000000001 n ナノ(nano) 10^-9 = 0.000000001 u マイクロ(micro) 10^-6 = 0.000001 m ミリ(milli) 10^-3 = 0.001 c センチ(centi) 10^-2 = 0.01 d デシ(deci) 10^-1 = 0.1 da デカ(deka) 10^ 1 = 10 h ヘクト(hecto) 10^ 2 = 100 k キロ(kilo) 10^ 3 = 1000 M メガ(mega) 10^ 6 = 1000000 G ギガ(giga) 10^ 9 = 1000000000 T テラ(tera) 10^12 = 1000000000000 P ペタ(peta) 10^15 = 1000000000000000 E エクサ(exa) 10^18 = 1000000000000000000 Z ゼタ(zetta) 10^21 = 1000000000000000000000 Y ヨタ(yotta) 10^24 = 1000000000000000000000000 マイクロの記号はギリシャ文字のμであるが、 ASCII でテキストが記述され て いて、ギリシャ文字が使えない場合は u と書かれることが多い。 http://physics.nist.gov/cuu/Units/prefixes.html も参考にしてほしい。 2 進の接頭語 2 進の接頭語は 10 進の接頭語と似ているが、後ろに 'i' が付く (また "Ki" については大文字の 'K') で始まる)。名前は、だいたい同じくらいの 10 進接 頭語の最初の音節に、 2 進数であることを意味する "bi" を足したものになる 。 接頭語 名前 値 Ki キビ(kibi) 2^10 = 1024 Mi メビ(mebi) 2^20 = 1048576 Gi ギビ(gibi) 2^30 = 1073741824 Ti テビ(tebi) 2^40 = 1099511627776 Pi ペビ(pebi) 2^50 = 1125899906842624 Ei エクシビ(exbi) 2^60 = 1152921504606846976 http://physics.nist.gov/cuu/Units/binary.html も参考にしてほしい。 考察 これらの 2 進の接頭語が導入される前は、 k=1000 と K=1024 のように使うの が 割に良く知られた習慣だった (b=ビット、B=バイト の関係に似ている)。残 念ながら M は最初から大文字なので、 2 進であることを示すためにさらに 大 文字にすることはできなかった。 当 初はこのことはあまり大きな問題ではなかった。なぜならメモリモジュール やディスクは 2 の累乗になるものだったので、皆そのようなところでは「キロ バイト」を 1024 バイト、「メガバイト」を 1048576 バイトであるとみなして いたからである。最初は接頭語の「キロ」とか「メガ」を曖昧に援用してい た の だが、そのうちコンピュータに関連する話題では、こちらが「実際の意味」 になっていった。しかしその後ディスクのテクノロジーが代わり、ディスク サ イ ズは任意の数値をとるようになった。どっちつかずの時期がしばらく続いた あと、ディスクのメーカーすべてが、標準を使うことに合意した。す な わ ち k=1000, M=1000k, G=1000M である。 状 況 は ひ ど くなった。14.4k モデムでは k=1000, 1.44MB フロッピーでは M=1024000 になった。 1998 年に、IEC は上記のような 2 進用の接頭語を承認 し、これによって両者をはっきり区別することが可能になった。 したがって今日では、MB=1000000B で、MiB = 1048576B なのである。 フ リーソフトウェアの世界でも、プログラムたちはゆっくりとこれらに準拠し てきている。 Linux カーネルは、ブートすると次のようなメッセージを出す。 hda: 120064896 sectors (61473 MB) w/2048KiB Cache MB はメガバイトで、KiB はキビバイトである。 Linux 2001-12-22 UNITS(7)
UNITS(7) Linux Programmer’s Manual UNITS(7) NAME units, kilo, kibi, mega, mebi, giga, gibi - decimal and binary prefixes DESCRIPTION Decimal prefixes The SI system of units uses prefixes that indicate powers of ten. A kilometer is 1000 meter, and a megawatt is 1000000 watt. Below the standard prefixes. Prefix Name Value y yocto 10^-24 = 0.000000000000000000000001 z zepto 10^-21 = 0.000000000000000000001 a atto 10^-18 = 0.000000000000000001 f femto 10^-15 = 0.000000000000001 p pico 10^-12 = 0.000000000001 n nano 10^-9 = 0.000000001 u micro 10^-6 = 0.000001 m milli 10^-3 = 0.001 c centi 10^-2 = 0.01 d deci 10^-1 = 0.1 da deka 10^ 1 = 10 h hecto 10^ 2 = 100 k kilo 10^ 3 = 1000 M mega 10^ 6 = 1000000 G giga 10^ 9 = 1000000000 T tera 10^12 = 1000000000000 P peta 10^15 = 1000000000000000 E exa 10^18 = 1000000000000000000 Z zetta 10^21 = 1000000000000000000000 Y yotta 10^24 = 1000000000000000000000000 The symbol for micro is the Greek letter mu, often written u in an ASCII context where this Greek letter is not available. See also http://physics.nist.gov/cuu/Units/prefixes.html Binary prefixes The binary prefixes resemble the decimal ones, but have an additional 'i' (and "Ki" starts with a capital 'K'). The names are formed by tak- ing the first syllable of the names of the decimal prefix with roughly the same size, followed by "bi" for "binary". Prefix Name Value Ki kibi 2^10 = 1024 Mi mebi 2^20 = 1048576 Gi gibi 2^30 = 1073741824 Ti tebi 2^40 = 1099511627776 Pi pebi 2^50 = 1125899906842624 Ei exbi 2^60 = 1152921504606846976 See also http://physics.nist.gov/cuu/Units/binary.html Discussion Before these binary prefixes were introduced, it was fairly common to use k=1000 and K=1024, just like b=bit, B=byte. Unfortunately, the M is capital already, and cannot be capitalized to indicate binary-ness. At first that didn’t matter too much, since memory modules and disks came in sizes that were powers of two, so everyone knew that in such contexts "kilobyte" and "megabyte" meant 1024 and 1048576 bytes, respectively. What originally was a sloppy use of the prefixes "kilo" and "mega" started to become regarded as the "real true meaning" when computers were involved. But then disk technology changed, and disk sizes became arbitrary numbers. After a period of uncertainty all disk manufacturers settled on the standard, namely k=1000, M=1000k, G=1000M. The situation was messy: in the 14k4 modems, k=1000; in the 1.44MB diskettes, M=1024000; etc. In 1998 the IEC approved the standard that defines the binary prefixes given above, enabling people to be precise and unambiguous. Thus, today, MB = 1000000B and MiB = 1048576B. In the free software world programs are slowly being changed to con- form. When the Linux kernel boots and says hda: 120064896 sectors (61473 MB) w/2048KiB Cache the MB are megabytes and the KiB are kibibytes. COLOPHON This page is part of release 3.22 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2001-12-22 UNITS(7)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa