Debian Codegraph @

UG9/ja/latency.po

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2021-04-14 14:39+0900\n"
10 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <[email protected]>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: Title ==
19 #, no-wrap
20 msgid "Optimizing DRBD latency"
21 msgstr "DRBDレイテンシの最適化"
22
23 #. type: Plain text
24 msgid ""
25 "This chapter deals with optimizing DRBD latency. It examines some hardware "
26 "considerations with regard to latency minimization, and details tuning "
27 "recommendations for that purpose."
28 msgstr ""
29 "この章では、DRBDのレイテンシの最適化について説明します。レイテンシを最小にす"
30 "るためのハードウェアに関する検討事項と、チューニングを行う際の詳細な推奨事項"
31 "について取り上げます。"
32
33 #. type: Title ===
34 #, no-wrap
35 msgid "Hardware considerations"
36 msgstr "ハードウェアの検討事項"
37
38 #. type: Plain text
39 msgid ""
40 "DRBD latency is affected by both the latency of the underlying I/O subsystem "
41 "(disks, controllers, and corresponding caches), and the latency of the "
42 "replication network."
43 msgstr ""
44 "DRBDのレイテンシは、配下のI/Oサブシステム(ディスク、コントローラおよび対応す"
45 "るキャッシュ)のレイテンシとレプリケーションネットワークのレイテンシの両方の影"
46 "響を受けます。"
47
48 #. type: Block title
49 #, no-wrap
50 msgid "I/O subsystem latency"
51 msgstr "I/Oサブシステムのレイテンシ"
52
53 #. type: Plain text
54 msgid ""
55 "indexterm:[latency]For _rotating media_ the I/O subsystem latency is "
56 "primarily a function of disk rotation speed. Thus, using fast-spinning disks "
57 "is a valid approach for reducing I/O subsystem latency."
58 msgstr ""
59 "indexterm:[latency]HDDなど _回転するメディア_ の場合、I/Oサブシステムのレイテ"
60 "ンシには、主としてディスクの回転速度が影響します。したがって、高速回転のディ"
61 "スクを使用すればI/Oサブシステムのレイテンシが短縮します。"
62
63 #. type: Plain text
64 msgid ""
65 "For _solid state media_ (like SSDs) the Flash storage controller is the "
66 "determining factor; the next most important thing is the amount of unused "
67 "capacity. Using DRBD's <<s-trim-discard>> will help you provide the "
68 "controller with the needed information which blocks it can recycle. That "
69 "way, when a write requests comes in, it can use a block that got cleaned "
70 "ahead-of-time and doesn't have to wait *now* until there's space "
71 "availablefootnote:[On low-end hardware you can help that a bit by reserving "
72 "some space - just keep 10% to 20% of the total space unpartitioned.]."
73 msgstr ""
74 "SSDなど _回転しないメディア_ の場合は、フラッシュストレージのコントローラが重"
75 "要な要素です。次に重要なのは未使用容量です。DRBDの<<s-trim-discard>>を使用す"
76 "ると、コントローラーにどのブロックがリサイクル可能かについて必要な情報を渡す"
77 "ことができます。そのため書き込み要求があった時に、事前に使用可能になっている"
78 "ブロックを `すぐ` に使用する事ができ、書き込めるスペースが空くまで待つ必要が"
79 "ありません。footnote:[ローエンドのハードウェアの場合は、10~20%のスペースを未"
80 "使用のままにしておくと、多少スペースの節約になります。]"
81
82 #. type: Plain text
83 msgid ""
84 "Likewise, the use of a indexterm:[battery-backed write cache] indexterm:"
85 "[BBU] battery-backed write cache (BBWC) reduces write completion times, also "
86 "reducing write latency. Most reasonable storage subsystems come with some "
87 "form of battery-backed cache, and allow the administrator to configure which "
88 "portion of this cache is used for read and write operations. The recommended "
89 "approach is to disable the disk read cache completely and use all available "
90 "cache memory for the disk write cache."
91 msgstr ""
92 "indexterm:[BBU] 同様に、indexterm:[battery-backed write cache]BBWC (Battery-"
93 "Backed Write Cache)を使用すると、書き込み完了までの時間が短くなり、書き込みの"
94 "レイテンシを短縮できます。手頃な価格のストレージサブシステムの多くは何らかの"
95 "バッテリバックアップキャッシュを備えており、管理者がキャッシュのどの部分を読"
96 "み書き操作に使用するか設定できます。ディスク読み取りキャッシュを完全に無効に"
97 "し、すべてのキャッシュメモリをディスク書き込みキャッシュとして使用する方法を"
98 "お勧めします。"
99
100 #. type: Block title
101 #, no-wrap
102 msgid "Network latency"
103 msgstr "ネットワークレイテンシ"
104
105 #. type: Plain text
106 msgid ""
107 "indexterm:[latency]Network latency is, in essence, the packet indexterm:"
108 "[round-trip-time]indexterm:[RTT] round-trip time (RTT) between hosts. It is "
109 "influenced by a number of factors, most of which are irrelevant on the "
110 "dedicated, back-to-back network connections recommended for use as DRBD "
111 "replication links. Thus, it is sufficient to accept that a certain amount of "
112 "latency always exists in network links, which typically is on the order of "
113 "100 to 200 microseconds (μs) packet RTT for Gigabit Ethernet."
114 msgstr ""
115 "indexterm:[latency]ネットワークレイテンシは、基本的にはホスト間のindexterm:"
116 "[round-trip-time]indexterm:[RTT] round-trip time (RTT)RTT (Packet Round-Trip "
117 "Time)です。 これ以外にもいくつかの要因がありますが、そのほとんどは、DRBDレプ"
118 "リケーションリンクとして推奨する、DRBD専用回線接続の場合は問題になりません。"
119 "イーサネットリンクには常に一定のレイテンシが発生しますが、ギガビットイーサ"
120 "ネットでは通常、100〜200マイクロ秒程度のパケット往復時間です。"
121
122 #. type: Plain text
123 msgid ""
124 "Network latency may typically be pushed below this limit only by using lower-"
125 "latency network protocols, such as running DRBD over Dolphin Express using "
126 "Dolphin SuperSockets, or a 10GBe direct connection; these are typically in "
127 "the 50µs range. Even better is InfiniBand, which provides even lower latency."
128 msgstr ""
129 "ネットワークレイテンシをこれより短くするには、レイテンシが短いネットワークプ"
130 "ロトコルを利用する以外ありません。たとえば、Dolphin SuperSocketsのDolphin "
131 "Express、10GBeの直結などを介してDRBDを実行します。これらの場合にはおよそ50マ"
132 "イクロ秒程になります。InfiniBandを利用するとさらにレイテンシが小さくなりま"
133 "す。"
134
135 #. type: Title ===
136 #, no-wrap
137 msgid "Latency overhead expectations"
138 msgstr "レイテンシオーバーヘッドの予測値"
139
140 #. type: Plain text
141 msgid ""
142 "As for throughput, when estimating the latency overhead associated with "
143 "DRBD, there are some important natural limitations to consider:"
144 msgstr ""
145 "スループットに関して、DRBDに関連するレイテンシオーバヘッドを見積もる際には、"
146 "必ず次の制限を考慮してください。"
147
148 #. type: Plain text
149 msgid "DRBD latency is bound by that of the raw I/O subsystem."
150 msgstr "DRBDのレイテンシは下位I/Oサブシステムのレイテンシにより制限される。"
151
152 #. type: Plain text
153 msgid "DRBD latency is bound by the available network latency."
154 msgstr "DRBDのレイテンシは使用可能なネットワークレイテンシにより制限される。"
155
156 #. type: Plain text
157 msgid ""
158 "The _sum_ of the two establishes the theoretical latency _minimum_ incurred "
159 "to DRBDfootnote:[for protocol C, because the other node(s) have to write to "
160 "stable storage, too]. DRBD then adds to that latency a slight additional "
161 "latency overhead, which can be expected to be less than 1 percent."
162 msgstr ""
163 "DRBDの理論上の _最小_ 待ち時間は、上記2つの _合計_ です。footnote:[プロトコル"
164 "Cの場合。他ノードも同様に書き込まなくてはならないため]。さらにわずかなオーバ"
165 "ヘッドが追加されますが、これは1%未満だと予測されます。"
166
167 #. type: Plain text
168 msgid ""
169 "Consider the example of a local disk subsystem with a write latency of 3ms "
170 "and a network link with one of 0.2ms. Then the expected DRBD latency would "
171 "be 3.2 ms or a roughly 7-percent latency increase over just writing to a "
172 "local disk."
173 msgstr ""
174 "たとえば、ローカルディスクサブシステムの書き込みレイテンシが3msで、 ネット"
175 "ワークリンクのレイテンシが0.2msだとします予測されるDRBDの レイテンシは3.2ms"
176 "で、 ローカルディスクに書き込むだけのときと比べて約7%レイテンシが増加すること"
177 "になります。"
178
179 #. type: Plain text
180 msgid ""
181 "Latency may be influenced by a number of other factors, including CPU cache "
182 "misses, context switches, and others."
183 msgstr ""
184 "CPUのキャッシュミス、コンテキストスイッチなど、他にも待ち時間に影響する要因が"
185 "あります。"
186
187 #. type: Title ===
188 #, no-wrap
189 msgid "Latency vs. IOPs"
190 msgstr "レイテンシ vs. IOPs"
191
192 #. type: Plain text
193 msgid ""
194 "indexterm:[latency]indexterm:[IOPs]_IOPs_ is the abbreviation of \"__I/O "
195 "operations per second__\"."
196 msgstr ""
197 "indexterm:[latency]indexterm:[IOPs] _IOPs_ は \"I/O operations per second\" "
198 "の略です。"
199
200 #. type: Plain text
201 msgid ""
202 "Marketing typically doesn't like numbers that get smaller; press releases "
203 "aren't written with \"__Latency reduced by 10µs, from 50µs to 40µs now!__\" "
204 "in mind, they like \"__Performance increased by 25%, from 20000 to now 25000 "
205 "IOPs__\" much more. Therefore IOPs were invented - to get a number that says "
206 "\"higher is better\"."
207 msgstr ""
208 "一般的にマーケティングでは数字が小さくなったとは書かないものです。プレスリ"
209 "リースでは \"レイテンシが10マイクロ秒小さくなって、50マイクロ秒から40秒になり"
210 "ました!\" とは書かずに、 \"パフォーマンスが25%向上し、20000から25000IPOsにな"
211 "りました!\" と書きます。\"大きいものは良い\" のような事を言うためIOPsは作られ"
212 "ました。"
213
214 #. type: Plain text
215 msgid ""
216 "So, in other words, IOPs are the reciprocal of latency. What you'll have to "
217 "keep in mind is that the method given in <<s-measure-latency>> gives you the "
218 "latency resp. the number of IOPs for a purely sequential, single-threaded IO "
219 "load, while most other documentation will give numbers for some highly "
220 "parallel loadfootnote:[Like in \"__16 threads, IO-depth of 32__\" - this "
221 "means that 512 I/O-requests are being done in parallel!], because this gives "
222 "much \"prettier\" numbers. With that kind of trick DRBD does offer you "
223 "100000 IOPs, too!"
224 msgstr ""
225 "言い方を換えれば、IOPsとレイテンシは相互的なものです。<<s-measure-latency>>で"
226 "書いた方法は、純粋にシーケンシャルのシングルスレッドのIOロードのIOPsごとのレ"
227 "イテンシです。一方で、よくある他のドキュメントでは、見栄えのいい数字を出すた"
228 "めに多重並行処理でのIOPsを使用しているfootnote:[例えば\"16スレッドでIO-depth"
229 "が32\"これは512のI/O要求が並行して行われたという事です。]という事を覚えておい"
230 "てください。こういったトリックを使うのなら、どんなIOPsにでもできます。"
231
232 #. type: Plain text
233 msgid ""
234 "So, please don't shy away from measuring serialized, single-threaded "
235 "latency. If you want lots of IOPS, run the `fio` utility with `threads=8` "
236 "and an `iodepth=16`, or some similar settings... But please keep in mind "
237 "that these number will not have any meaning to your setup, unless you're "
238 "driving a database with many tens or hundreds of client connections active "
239 "at the same time."
240 msgstr ""
241 "そのため、シリアルのシングルスレッドでのレイテンシを敬遠しないでください。 "
242 "もっとIOPsが欲しい場合には `fio` を `threads=8` で `iodepth=16` にするなどの"
243 "設定をしてください。しかし、そうした数字はデータベースに多数のクライアントか"
244 "らのコネクションが同時にあった場合など以外には、意味がないという事を覚えてお"
245 "いてください。"
246
247 #. type: Title ===
248 #, no-wrap
249 msgid "Tuning recommendations"
250 msgstr "チューニングの推奨事項"
251
252 #. type: Title ====
253 #, no-wrap
254 msgid "Setting DRBD's CPU mask"
255 msgstr "CPUマスクの設定"
256
257 #. type: Plain text
258 msgid ""
259 "DRBD allows for setting an explicit CPU mask for its kernel threads. This is "
260 "particularly beneficial for applications which would otherwise compete with "
261 "DRBD for CPU cycles."
262 msgstr ""
263 "DRBDでは、カーネルスレッドの明示的なCPUマスクを設定できます。これは、CPUサイ"
264 "クルがDRBDと競合するアプリケーションの場合に特に役立ちます。"
265
266 #. type: Plain text
267 msgid ""
268 "The CPU mask is a number in whose binary representation the least "
269 "significant bit represents the first CPU, the second-least significant bit "
270 "the second, and so forth. A set bit in the bitmask implies that the "
271 "corresponding CPU may be used by DRBD, whereas a cleared bit means it must "
272 "not. Thus, for example, a CPU mask of 1 (`00000001`) means DRBD may use the "
273 "first CPU only. A mask of 12 (`00001100`) implies DRBD may use the third and "
274 "fourth CPU."
275 msgstr ""
276 "CPUマスクは数字で、バイナリ表現の最下位ビットが第1のCPUを表し、その次のビット"
277 "が第2のCPUを表します。ビットマスクの設定ビットは、対応するCPUがDRBDによって使"
278 "用されていることを示し、クリアされたビットは使用されていないことを示します。"
279 "たとえば、CPUマスク1( `00000001` )は、DRBDが第1のCPUだけを使用することを示し"
280 "ます。マスク12( `00001100` )はDRBDが第3と第4のCPUを使用することを示します。"
281
282 #. type: Plain text
283 msgid "An example CPU mask configuration for a resource may look like this:"
284 msgstr "次に、リソースのCPUマスク設定の例を示します。"
285
286 #. type: delimited block -
287 #, no-wrap
288 msgid ""
289 "resource <resource> {\n"
290 " options {\n"
291 " cpu-mask 2;\n"
292 " ...\n"
293 " }\n"
294 " ...\n"
295 "}\n"
296 msgstr ""
297 "resource <resource> {\n"
298 " options {\n"
299 " cpu-mask 2;\n"
300 " ...\n"
301 " }\n"
302 " ...\n"
303 "}\n"
304
305 #. type: Plain text
306 msgid ""
307 "Of course, in order to minimize CPU competition between DRBD and the "
308 "application using it, you need to configure your application to use only "
309 "those CPUs which DRBD does not use."
310 msgstr ""
311 "DRBDとこれを使用するアプリケーションとのCPU競合を最小限に抑えるためには、もち"
312 "ろん、DRBDが使用していないCPUだけをアプリケーションが使用するように設定する必"
313 "要があります。"
314
315 #. type: Plain text
316 msgid ""
317 "Some applications may provide for this via an entry in a configuration file, "
318 "just like DRBD itself. Others include an invocation of the `taskset` command "
319 "in an application init script."
320 msgstr ""
321 "一部のアプリケーションは、DRBD自体と同様に設定ファイルでこの設定を行うことが"
322 "できます。アプリケーションによっては、initスクリプトで `taskset` コマンドを呼"
323 "び出す必要があります。"
324
325 #. type: delimited block =
326 msgid ""
327 "It makes sense to keep the DRBD threads running on the same L2/L3 caches."
328 msgstr ""
329 "複数のDRBDスレッドに同一のL2/L3キャッシュを使わせることは意味があります。"
330
331 #. type: delimited block =
332 msgid ""
333 "But: the numbering of CPUs doesn't have to correlate with the physical "
334 "partitioning. You can try the `lstopo` (or `hwloc-ls`) program for X11 or "
335 "`hwloc-info -v -p` for console output to get an overview of the topology."
336 msgstr ""
337 "しかし、CPU番号の物理パーティショニングとの関連付けは必要ありません。 X11環境"
338 "では `lstopo` (または `hwloc-ls` )プログラムを、コンソールでは `hwloc-info -"
339 "v -p` を使うとトポロジーの概要を確認することができます。"
340
341 #. type: Title ====
342 #, no-wrap
343 msgid "Modifying the network MTU"
344 msgstr "ネットワークMTUの変更"
345
346 #. type: Plain text
347 msgid ""
348 "It may be beneficial to change the replication network's maximum "
349 "transmission unit (MTU) size to a value higher than the default of 1500 "
350 "bytes. Colloquially, this is referred to as indexterm:[Jumbo frames] "
351 "\"enabling Jumbo frames\"."
352 msgstr ""
353 "レプリケーションネットワークの最大転送ユニット(MTU)サイズをデフォルトの1500バ"
354 "イトよりも大きくすることにはメリットがあります。いわゆるindexterm:[Jumbo "
355 "frames] \"ジャンボフレームを使用する\" ことです。"
356
357 #. type: Plain text
358 msgid "The MTU may be changed using the following commands:"
359 msgstr "MTUは、次のコマンドを使用して変更できます。"
360
361 #. type: delimited block -
362 #, no-wrap
363 msgid "# ifconfig <interface> mtu <size>\n"
364 msgstr "# ifconfig <interface> mtu <size>\n"
365
366 #. type: Plain text
367 msgid "or"
368 msgstr "または"
369
370 #. type: delimited block -
371 #, no-wrap
372 msgid "# ip link set <interface> mtu <size>\n"
373 msgstr "# ip link set <interface> mtu <size>\n"
374
375 #. type: Plain text
376 msgid ""
377 "_<interface>_ refers to the network interface used for DRBD replication. A "
378 "typical value for _<size>_ would be 9000 (bytes)."
379 msgstr ""
380 "_<interface>_ にはDRBDのレプリケーションに使用するネットワークインタフェース"
381 "名を指定します。_<size>_ の一般的な値は9000 (バイト)です。"
382
383 #. type: Title ====
384 #, no-wrap
385 msgid "Enabling the deadline I/O scheduler"
386 msgstr "deadline I/Oスケジューラを有効にする"
387
388 #. type: Plain text
389 msgid ""
390 "indexterm:[io scheduler] When used in conjunction with high-performance, "
391 "write back enabled hardware RAID controllers, DRBD latency may benefit "
392 "greatly from using the simple deadline I/O scheduler, rather than the CFQ "
393 "scheduler. The latter is typically enabled by default."
394 msgstr ""
395 "indexterm:[io scheduler] 高性能なライトバックに対応したハードウェアRAIDコント"
396 "ローラを使う場合、CFQの代わりに単純な `deadline` をI/Oスケジューラに指定する"
397 "方がDRBDのレイテンシを小さくできることがあります。通常はCFQがデフォルトで有効"
398 "になっています。"
399
400 #. type: Plain text
401 msgid ""
402 "Modifications to the I/O scheduler configuration may be performed via the "
403 "`sysfs` virtual file system, mounted at `/sys`. The scheduler configuration "
404 "is in `/sys/block/__device__`, where _<device>_ is the backing device DRBD "
405 "uses."
406 msgstr ""
407 "I/Oスケジューラ構成に変更を加える場合は、`/sys` にマウントされる `sysfs` 仮想"
408 "ファイルシステムを使用できます。スケジューラ構成は `/sys/block/<device>` に置"
409 "かれています。<device>はDRBDが使用する下位デバイスです。"
410
411 #. type: Plain text
412 msgid "Enabling the deadline scheduler works via the following command:"
413 msgstr "`deadline` スケジューラを有効にするには、次のコマンドを使用します。"
414
415 #. type: delimited block -
416 #, no-wrap
417 msgid "# echo deadline > /sys/block/<device>/queue/scheduler\n"
418 msgstr "# echo deadline > /sys/block/<device>/queue/scheduler\n"
419
420 #. type: Plain text
421 msgid ""
422 "You may then also set the following values, which may provide additional "
423 "latency benefits:"
424 msgstr "次の値も設定することにより、さらに待ち時間を短縮できます。"
425
426 #. type: Plain text
427 msgid "Disable front merges:"
428 msgstr "フロントマージを無効にします。"
429
430 #. type: delimited block -
431 #, no-wrap
432 msgid "# echo 0 > /sys/block/<device>/queue/iosched/front_merges\n"
433 msgstr "# echo 0 > /sys/block/<device>/queue/iosched/front_merges\n"
434
435 #. type: Plain text
436 msgid "Reduce read I/O deadline to 150 milliseconds (the default is 500ms):"
437 msgstr "読み取りI/O deadlineを150ミリ秒にします(デフォルトは500ms)。"
438
439 #. type: delimited block -
440 #, no-wrap
441 msgid "# echo 150 > /sys/block/<device>/queue/iosched/read_expire\n"
442 msgstr "# echo 150 > /sys/block/<device>/queue/iosched/read_expire\n"
443
444 #. type: Plain text
445 msgid "Reduce write I/O deadline to 1500 milliseconds (the default is 3000ms):"
446 msgstr "書き込みI/Oデッドラインを1500ミリ秒にします(デフォルトは3000ms)。"
447
448 #. type: delimited block -
449 #, no-wrap
450 msgid "# echo 1500 > /sys/block/<device>/queue/iosched/write_expire\n"
451 msgstr "# echo 1500 > /sys/block/<device>/queue/iosched/write_expire\n"
452
453 #. type: Plain text
454 msgid ""
455 "If these values effect a significant latency improvement, you may want to "
456 "make them permanent so they are automatically set at system startup. "
457 "indexterm:[Debian GNU/Linux]Debian and indexterm:[Ubuntu Linux]Ubuntu "
458 "systems provide this functionality via the `sysfsutils` package and the `/"
459 "etc/sysfs.conf` configuration file."
460 msgstr ""
461 "上記の値の変更により待ち時間が大幅に改善した場合は、システム起動時に自動的に"
462 "設定されるようにしておくと便利です。indexterm:[Debian GNU/Linux]Debianおよび "
463 "indexterm:[Ubuntu Linux]Ubuntuシステムの場合は、 `sysfsutils` パッケージと `/"
464 "etc/sysfs.conf` 設定ファイルでこの設定を行うことができます。"
465
466 #. type: Plain text
467 msgid ""
468 "You may also make a global I/O scheduler selection by passing the `elevator` "
469 "option via your kernel command line. To do so, edit your boot loader "
470 "configuration (normally found in `/etc/default/grub` if you are using the "
471 "GRUB bootloader) and add `elevator=deadline` to your list of kernel boot "
472 "options."
473 msgstr ""
474 "グローバルI/Oスケジューラを選択するには、カーネルコマンドラインを使用して "
475 "`elevator` オプションを渡します。そのためには、ブートローダ構成(GRUBブート"
476 "ローダを使用する場合通常は `/etc/default/grub` に格納)を編集し、カーネルブー"
477 "トオプションのリストに elevator=deadline を追加します。"