OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man7 / units.7
1 .\" t
2 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH UNITS 7 2001\-12\-22 Linux "Linux Programmer's Manual"
30 .SH 名前
31 units, kilo, kibi, mega, mebi, giga, gibi \- 10 進および 2 進の接頭語
32 .SH 説明
33 .SS "10 進の接頭語"
34 SI 単位系では 10 の累乗を示す接頭語を用いる。 キロメートルは 1000 メートル、メガワットは 1000000 ワットである。
35 次に標準的な接頭語を示す。
36 .RS
37 .TS
38 l l l.
39 接頭語       名前  値
40 y       ヨクト(yocto)        10^\-24 = 0.000000000000000000000001
41 z       ゼプト(zepto)        10^\-21 = 0.000000000000000000001
42 a       アト(atto)    10^\-18 = 0.000000000000000001
43 f       フェムト(femto)     10^\-15 = 0.000000000000001
44 p       ピコ(pico)    10^\-12 = 0.000000000001
45 n       ナノ(nano)    10^\-9  = 0.000000001
46 u       マイクロ(micro)     10^\-6  = 0.000001
47 m       ミリ(milli)   10^\-3  = 0.001
48 c       センチ(centi)        10^\-2  = 0.01
49 d       デシ(deci)    10^\-1  = 0.1
50 da      デカ(deka)    10^ 1  = 10
51 h       ヘクト(hecto)        10^ 2  = 100
52 k       キロ(kilo)    10^ 3  = 1000
53 M       メガ(mega)    10^ 6  = 1000000
54 G       ギガ(giga)    10^ 9  = 1000000000
55 T       テラ(tera)    10^12  = 1000000000000
56 P       ペタ(peta)    10^15  = 1000000000000000
57 E       エクサ(exa)  10^18  = 1000000000000000000
58 Z       ゼタ(zetta)   10^21  = 1000000000000000000000
59 Y       ヨタ(yotta)   10^24  = 1000000000000000000000000
60 .TE
61 .RE
62
63 マイクロの記号はギリシャ文字のμであるが、 ASCII でテキストが記述されていて、ギリシャ文字が使えない場合は u と書かれることが多い。
64 以下も参考にしてほしい。
65 .sp
66 .RS
67 http://physics.nist.gov/cuu/Units/prefixes.html
68 .RE
69 .SS "2 進の接頭語"
70 2 進の接頭語は 10 進の接頭語と似ているが、後ろに \(aqi\(aq が付く (また "Ki" については大文字の \(aqK\(aq)
71 で始まる)。 名前は、だいたい同じくらいの 10 進接頭語の最初の音節に、 2 進数であることを意味する "bi" を足したものになる。
72 .RS
73 .TS
74 l l l.
75 接頭語       名前  値
76 Ki      キビ(kibi)    2^10 = 1024
77 Mi      メビ(mebi)    2^20 = 1048576
78 Gi      ギビ(gibi)    2^30 = 1073741824
79 Ti      テビ(tebi)    2^40 = 1099511627776
80 Pi      ペビ(pebi)    2^50 = 1125899906842624
81 Ei      エクシビ(exbi)      2^60 = 1152921504606846976
82 .TE
83 .RE
84
85 http://physics.nist.gov/cuu/Units/binary.html
86 .sp
87 .RS
88 も参考にしてほしい。
89 .RE
90 .SS 考察
91 これらの 2 進の接頭語が導入される前は、 k=1000 と K=1024 のように使うのが割に良く知られた習慣だった (b=ビット、B=バイト
92 の関係に似ている)。 残念ながら M は最初から大文字なので、 2 進であることを示すためにさらに大文字にすることはできなかった。
93
94 当初はこのことはあまり大きな問題ではなかった。 なぜならメモリモジュールやディスクは 2 の累乗になるものだったので、
95 皆そのようなところでは「キロバイト」を 1024 バイト、 「メガバイト」を 1048576 バイトであるとみなしていたからである。
96 最初は接頭語の「キロ」とか「メガ」を曖昧に援用していたのだが、 そのうちコンピュータに関連する話題では、こちらが「実際の意味」になっていった。
97 しかしその後ディスクのテクノロジーが代わり、 ディスクサイズは任意の数値をとるようになった。 どっちつかずの時期がしばらく続いたあと、
98 ディスクのメーカーすべてが、標準を使うことに合意した。 すなわち k=1000, M=1000k, G=1000M である。
99
100 .\" also common: 14.4k modem
101 状況はひどくなった。14.4k モデムでは k=1000, 1.44MB フロッピーでは M=1024000 になった。 1998 年に、IEC
102 は上記のような 2 進用の接頭語を承認し、 これによって両者をはっきり区別することが可能になった。
103
104 したがって今日では、MB=1000000B で、MiB = 1048576B なのである。
105
106 フリーソフトウェアの世界でも、 プログラムたちはゆっくりとこれらに準拠してきている。 Linux カーネルは、ブートすると次のようなメッセージを出す。
107
108 .RS
109 .nf
110 hda: 120064896 sectors (61473 MB) w/2048KiB Cache
111 .fi
112 .RE
113
114 MB はメガバイトで、KiB はキビバイトである。