# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2021-04-14 14:39+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: Title == #, no-wrap msgid "Optimizing DRBD latency" msgstr "DRBDレイテンシの最適化" #. type: Plain text msgid "" "This chapter deals with optimizing DRBD latency. It examines some hardware " "considerations with regard to latency minimization, and details tuning " "recommendations for that purpose." msgstr "" "この章では、DRBDのレイテンシの最適化について説明します。レイテンシを最小にす" "るためのハードウェアに関する検討事項と、チューニングを行う際の詳細な推奨事項" "について取り上げます。" #. type: Title === #, no-wrap msgid "Hardware considerations" msgstr "ハードウェアの検討事項" #. type: Plain text msgid "" "DRBD latency is affected by both the latency of the underlying I/O subsystem " "(disks, controllers, and corresponding caches), and the latency of the " "replication network." msgstr "" "DRBDのレイテンシは、配下のI/Oサブシステム(ディスク、コントローラおよび対応す" "るキャッシュ)のレイテンシとレプリケーションネットワークのレイテンシの両方の影" "響を受けます。" #. type: Block title #, no-wrap msgid "I/O subsystem latency" msgstr "I/Oサブシステムのレイテンシ" #. type: Plain text msgid "" "indexterm:[latency]For _rotating media_ the I/O subsystem latency is " "primarily a function of disk rotation speed. Thus, using fast-spinning disks " "is a valid approach for reducing I/O subsystem latency." msgstr "" "indexterm:[latency]HDDなど _回転するメディア_ の場合、I/Oサブシステムのレイテ" "ンシには、主としてディスクの回転速度が影響します。したがって、高速回転のディ" "スクを使用すればI/Oサブシステムのレイテンシが短縮します。" #. type: Plain text msgid "" "For _solid state media_ (like SSDs) the Flash storage controller is the " "determining factor; the next most important thing is the amount of unused " "capacity. Using DRBD's <> will help you provide the " "controller with the needed information which blocks it can recycle. That " "way, when a write requests comes in, it can use a block that got cleaned " "ahead-of-time and doesn't have to wait *now* until there's space " "availablefootnote:[On low-end hardware you can help that a bit by reserving " "some space - just keep 10% to 20% of the total space unpartitioned.]." msgstr "" "SSDなど _回転しないメディア_ の場合は、フラッシュストレージのコントローラが重" "要な要素です。次に重要なのは未使用容量です。DRBDの<>を使用す" "ると、コントローラーにどのブロックがリサイクル可能かについて必要な情報を渡す" "ことができます。そのため書き込み要求があった時に、事前に使用可能になっている" "ブロックを `すぐ` に使用する事ができ、書き込めるスペースが空くまで待つ必要が" "ありません。footnote:[ローエンドのハードウェアの場合は、10~20%のスペースを未" "使用のままにしておくと、多少スペースの節約になります。]" #. type: Plain text msgid "" "Likewise, the use of a indexterm:[battery-backed write cache] indexterm:" "[BBU] battery-backed write cache (BBWC) reduces write completion times, also " "reducing write latency. Most reasonable storage subsystems come with some " "form of battery-backed cache, and allow the administrator to configure which " "portion of this cache is used for read and write operations. The recommended " "approach is to disable the disk read cache completely and use all available " "cache memory for the disk write cache." msgstr "" "indexterm:[BBU] 同様に、indexterm:[battery-backed write cache]BBWC (Battery-" "Backed Write Cache)を使用すると、書き込み完了までの時間が短くなり、書き込みの" "レイテンシを短縮できます。手頃な価格のストレージサブシステムの多くは何らかの" "バッテリバックアップキャッシュを備えており、管理者がキャッシュのどの部分を読" "み書き操作に使用するか設定できます。ディスク読み取りキャッシュを完全に無効に" "し、すべてのキャッシュメモリをディスク書き込みキャッシュとして使用する方法を" "お勧めします。" #. type: Block title #, no-wrap msgid "Network latency" msgstr "ネットワークレイテンシ" #. type: Plain text msgid "" "indexterm:[latency]Network latency is, in essence, the packet indexterm:" "[round-trip-time]indexterm:[RTT] round-trip time (RTT) between hosts. It is " "influenced by a number of factors, most of which are irrelevant on the " "dedicated, back-to-back network connections recommended for use as DRBD " "replication links. Thus, it is sufficient to accept that a certain amount of " "latency always exists in network links, which typically is on the order of " "100 to 200 microseconds (μs) packet RTT for Gigabit Ethernet." msgstr "" "indexterm:[latency]ネットワークレイテンシは、基本的にはホスト間のindexterm:" "[round-trip-time]indexterm:[RTT] round-trip time (RTT)RTT (Packet Round-Trip " "Time)です。 これ以外にもいくつかの要因がありますが、そのほとんどは、DRBDレプ" "リケーションリンクとして推奨する、DRBD専用回線接続の場合は問題になりません。" "イーサネットリンクには常に一定のレイテンシが発生しますが、ギガビットイーサ" "ネットでは通常、100〜200マイクロ秒程度のパケット往復時間です。" #. type: Plain text msgid "" "Network latency may typically be pushed below this limit only by using lower-" "latency network protocols, such as running DRBD over Dolphin Express using " "Dolphin SuperSockets, or a 10GBe direct connection; these are typically in " "the 50µs range. Even better is InfiniBand, which provides even lower latency." msgstr "" "ネットワークレイテンシをこれより短くするには、レイテンシが短いネットワークプ" "ロトコルを利用する以外ありません。たとえば、Dolphin SuperSocketsのDolphin " "Express、10GBeの直結などを介してDRBDを実行します。これらの場合にはおよそ50マ" "イクロ秒程になります。InfiniBandを利用するとさらにレイテンシが小さくなりま" "す。" #. type: Title === #, no-wrap msgid "Latency overhead expectations" msgstr "レイテンシオーバーヘッドの予測値" #. type: Plain text msgid "" "As for throughput, when estimating the latency overhead associated with " "DRBD, there are some important natural limitations to consider:" msgstr "" "スループットに関して、DRBDに関連するレイテンシオーバヘッドを見積もる際には、" "必ず次の制限を考慮してください。" #. type: Plain text msgid "DRBD latency is bound by that of the raw I/O subsystem." msgstr "DRBDのレイテンシは下位I/Oサブシステムのレイテンシにより制限される。" #. type: Plain text msgid "DRBD latency is bound by the available network latency." msgstr "DRBDのレイテンシは使用可能なネットワークレイテンシにより制限される。" #. type: Plain text msgid "" "The _sum_ of the two establishes the theoretical latency _minimum_ incurred " "to DRBDfootnote:[for protocol C, because the other node(s) have to write to " "stable storage, too]. DRBD then adds to that latency a slight additional " "latency overhead, which can be expected to be less than 1 percent." msgstr "" "DRBDの理論上の _最小_ 待ち時間は、上記2つの _合計_ です。footnote:[プロトコル" "Cの場合。他ノードも同様に書き込まなくてはならないため]。さらにわずかなオーバ" "ヘッドが追加されますが、これは1%未満だと予測されます。" #. type: Plain text msgid "" "Consider the example of a local disk subsystem with a write latency of 3ms " "and a network link with one of 0.2ms. Then the expected DRBD latency would " "be 3.2 ms or a roughly 7-percent latency increase over just writing to a " "local disk." msgstr "" "たとえば、ローカルディスクサブシステムの書き込みレイテンシが3msで、 ネット" "ワークリンクのレイテンシが0.2msだとします予測されるDRBDの レイテンシは3.2ms" "で、 ローカルディスクに書き込むだけのときと比べて約7%レイテンシが増加すること" "になります。" #. type: Plain text msgid "" "Latency may be influenced by a number of other factors, including CPU cache " "misses, context switches, and others." msgstr "" "CPUのキャッシュミス、コンテキストスイッチなど、他にも待ち時間に影響する要因が" "あります。" #. type: Title === #, no-wrap msgid "Latency vs. IOPs" msgstr "レイテンシ vs. IOPs" #. type: Plain text msgid "" "indexterm:[latency]indexterm:[IOPs]_IOPs_ is the abbreviation of \"__I/O " "operations per second__\"." msgstr "" "indexterm:[latency]indexterm:[IOPs] _IOPs_ は \"I/O operations per second\" " "の略です。" #. type: Plain text msgid "" "Marketing typically doesn't like numbers that get smaller; press releases " "aren't written with \"__Latency reduced by 10µs, from 50µs to 40µs now!__\" " "in mind, they like \"__Performance increased by 25%, from 20000 to now 25000 " "IOPs__\" much more. Therefore IOPs were invented - to get a number that says " "\"higher is better\"." msgstr "" "一般的にマーケティングでは数字が小さくなったとは書かないものです。プレスリ" "リースでは \"レイテンシが10マイクロ秒小さくなって、50マイクロ秒から40秒になり" "ました!\" とは書かずに、 \"パフォーマンスが25%向上し、20000から25000IPOsにな" "りました!\" と書きます。\"大きいものは良い\" のような事を言うためIOPsは作られ" "ました。" #. type: Plain text msgid "" "So, in other words, IOPs are the reciprocal of latency. What you'll have to " "keep in mind is that the method given in <> gives you the " "latency resp. the number of IOPs for a purely sequential, single-threaded IO " "load, while most other documentation will give numbers for some highly " "parallel loadfootnote:[Like in \"__16 threads, IO-depth of 32__\" - this " "means that 512 I/O-requests are being done in parallel!], because this gives " "much \"prettier\" numbers. With that kind of trick DRBD does offer you " "100000 IOPs, too!" msgstr "" "言い方を換えれば、IOPsとレイテンシは相互的なものです。<>で" "書いた方法は、純粋にシーケンシャルのシングルスレッドのIOロードのIOPsごとのレ" "イテンシです。一方で、よくある他のドキュメントでは、見栄えのいい数字を出すた" "めに多重並行処理でのIOPsを使用しているfootnote:[例えば\"16スレッドでIO-depth" "が32\"これは512のI/O要求が並行して行われたという事です。]という事を覚えておい" "てください。こういったトリックを使うのなら、どんなIOPsにでもできます。" #. type: Plain text msgid "" "So, please don't shy away from measuring serialized, single-threaded " "latency. If you want lots of IOPS, run the `fio` utility with `threads=8` " "and an `iodepth=16`, or some similar settings... But please keep in mind " "that these number will not have any meaning to your setup, unless you're " "driving a database with many tens or hundreds of client connections active " "at the same time." msgstr "" "そのため、シリアルのシングルスレッドでのレイテンシを敬遠しないでください。 " "もっとIOPsが欲しい場合には `fio` を `threads=8` で `iodepth=16` にするなどの" "設定をしてください。しかし、そうした数字はデータベースに多数のクライアントか" "らのコネクションが同時にあった場合など以外には、意味がないという事を覚えてお" "いてください。" #. type: Title === #, no-wrap msgid "Tuning recommendations" msgstr "チューニングの推奨事項" #. type: Title ==== #, no-wrap msgid "Setting DRBD's CPU mask" msgstr "CPUマスクの設定" #. type: Plain text msgid "" "DRBD allows for setting an explicit CPU mask for its kernel threads. This is " "particularly beneficial for applications which would otherwise compete with " "DRBD for CPU cycles." msgstr "" "DRBDでは、カーネルスレッドの明示的なCPUマスクを設定できます。これは、CPUサイ" "クルがDRBDと競合するアプリケーションの場合に特に役立ちます。" #. type: Plain text msgid "" "The CPU mask is a number in whose binary representation the least " "significant bit represents the first CPU, the second-least significant bit " "the second, and so forth. A set bit in the bitmask implies that the " "corresponding CPU may be used by DRBD, whereas a cleared bit means it must " "not. Thus, for example, a CPU mask of 1 (`00000001`) means DRBD may use the " "first CPU only. A mask of 12 (`00001100`) implies DRBD may use the third and " "fourth CPU." msgstr "" "CPUマスクは数字で、バイナリ表現の最下位ビットが第1のCPUを表し、その次のビット" "が第2のCPUを表します。ビットマスクの設定ビットは、対応するCPUがDRBDによって使" "用されていることを示し、クリアされたビットは使用されていないことを示します。" "たとえば、CPUマスク1( `00000001` )は、DRBDが第1のCPUだけを使用することを示し" "ます。マスク12( `00001100` )はDRBDが第3と第4のCPUを使用することを示します。" #. type: Plain text msgid "An example CPU mask configuration for a resource may look like this:" msgstr "次に、リソースのCPUマスク設定の例を示します。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " options {\n" " cpu-mask 2;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " options {\n" " cpu-mask 2;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: Plain text msgid "" "Of course, in order to minimize CPU competition between DRBD and the " "application using it, you need to configure your application to use only " "those CPUs which DRBD does not use." msgstr "" "DRBDとこれを使用するアプリケーションとのCPU競合を最小限に抑えるためには、もち" "ろん、DRBDが使用していないCPUだけをアプリケーションが使用するように設定する必" "要があります。" #. type: Plain text msgid "" "Some applications may provide for this via an entry in a configuration file, " "just like DRBD itself. Others include an invocation of the `taskset` command " "in an application init script." msgstr "" "一部のアプリケーションは、DRBD自体と同様に設定ファイルでこの設定を行うことが" "できます。アプリケーションによっては、initスクリプトで `taskset` コマンドを呼" "び出す必要があります。" #. type: delimited block = msgid "" "It makes sense to keep the DRBD threads running on the same L2/L3 caches." msgstr "" "複数のDRBDスレッドに同一のL2/L3キャッシュを使わせることは意味があります。" #. type: delimited block = msgid "" "But: the numbering of CPUs doesn't have to correlate with the physical " "partitioning. You can try the `lstopo` (or `hwloc-ls`) program for X11 or " "`hwloc-info -v -p` for console output to get an overview of the topology." msgstr "" "しかし、CPU番号の物理パーティショニングとの関連付けは必要ありません。 X11環境" "では `lstopo` (または `hwloc-ls` )プログラムを、コンソールでは `hwloc-info -" "v -p` を使うとトポロジーの概要を確認することができます。" #. type: Title ==== #, no-wrap msgid "Modifying the network MTU" msgstr "ネットワークMTUの変更" #. type: Plain text msgid "" "It may be beneficial to change the replication network's maximum " "transmission unit (MTU) size to a value higher than the default of 1500 " "bytes. Colloquially, this is referred to as indexterm:[Jumbo frames] " "\"enabling Jumbo frames\"." msgstr "" "レプリケーションネットワークの最大転送ユニット(MTU)サイズをデフォルトの1500バ" "イトよりも大きくすることにはメリットがあります。いわゆるindexterm:[Jumbo " "frames] \"ジャンボフレームを使用する\" ことです。" #. type: Plain text msgid "The MTU may be changed using the following commands:" msgstr "MTUは、次のコマンドを使用して変更できます。" #. type: delimited block - #, no-wrap msgid "# ifconfig mtu \n" msgstr "# ifconfig mtu \n" #. type: Plain text msgid "or" msgstr "または" #. type: delimited block - #, no-wrap msgid "# ip link set mtu \n" msgstr "# ip link set mtu \n" #. type: Plain text msgid "" "__ refers to the network interface used for DRBD replication. A " "typical value for __ would be 9000 (bytes)." msgstr "" "__ にはDRBDのレプリケーションに使用するネットワークインタフェース" "名を指定します。__ の一般的な値は9000 (バイト)です。" #. type: Title ==== #, no-wrap msgid "Enabling the deadline I/O scheduler" msgstr "deadline I/Oスケジューラを有効にする" #. type: Plain text msgid "" "indexterm:[io scheduler] When used in conjunction with high-performance, " "write back enabled hardware RAID controllers, DRBD latency may benefit " "greatly from using the simple deadline I/O scheduler, rather than the CFQ " "scheduler. The latter is typically enabled by default." msgstr "" "indexterm:[io scheduler] 高性能なライトバックに対応したハードウェアRAIDコント" "ローラを使う場合、CFQの代わりに単純な `deadline` をI/Oスケジューラに指定する" "方がDRBDのレイテンシを小さくできることがあります。通常はCFQがデフォルトで有効" "になっています。" #. type: Plain text msgid "" "Modifications to the I/O scheduler configuration may be performed via the " "`sysfs` virtual file system, mounted at `/sys`. The scheduler configuration " "is in `/sys/block/__device__`, where __ is the backing device DRBD " "uses." msgstr "" "I/Oスケジューラ構成に変更を加える場合は、`/sys` にマウントされる `sysfs` 仮想" "ファイルシステムを使用できます。スケジューラ構成は `/sys/block/` に置" "かれています。はDRBDが使用する下位デバイスです。" #. type: Plain text msgid "Enabling the deadline scheduler works via the following command:" msgstr "`deadline` スケジューラを有効にするには、次のコマンドを使用します。" #. type: delimited block - #, no-wrap msgid "# echo deadline > /sys/block//queue/scheduler\n" msgstr "# echo deadline > /sys/block//queue/scheduler\n" #. type: Plain text msgid "" "You may then also set the following values, which may provide additional " "latency benefits:" msgstr "次の値も設定することにより、さらに待ち時間を短縮できます。" #. type: Plain text msgid "Disable front merges:" msgstr "フロントマージを無効にします。" #. type: delimited block - #, no-wrap msgid "# echo 0 > /sys/block//queue/iosched/front_merges\n" msgstr "# echo 0 > /sys/block//queue/iosched/front_merges\n" #. type: Plain text msgid "Reduce read I/O deadline to 150 milliseconds (the default is 500ms):" msgstr "読み取りI/O deadlineを150ミリ秒にします(デフォルトは500ms)。" #. type: delimited block - #, no-wrap msgid "# echo 150 > /sys/block//queue/iosched/read_expire\n" msgstr "# echo 150 > /sys/block//queue/iosched/read_expire\n" #. type: Plain text msgid "Reduce write I/O deadline to 1500 milliseconds (the default is 3000ms):" msgstr "書き込みI/Oデッドラインを1500ミリ秒にします(デフォルトは3000ms)。" #. type: delimited block - #, no-wrap msgid "# echo 1500 > /sys/block//queue/iosched/write_expire\n" msgstr "# echo 1500 > /sys/block//queue/iosched/write_expire\n" #. type: Plain text msgid "" "If these values effect a significant latency improvement, you may want to " "make them permanent so they are automatically set at system startup. " "indexterm:[Debian GNU/Linux]Debian and indexterm:[Ubuntu Linux]Ubuntu " "systems provide this functionality via the `sysfsutils` package and the `/" "etc/sysfs.conf` configuration file." msgstr "" "上記の値の変更により待ち時間が大幅に改善した場合は、システム起動時に自動的に" "設定されるようにしておくと便利です。indexterm:[Debian GNU/Linux]Debianおよび " "indexterm:[Ubuntu Linux]Ubuntuシステムの場合は、 `sysfsutils` パッケージと `/" "etc/sysfs.conf` 設定ファイルでこの設定を行うことができます。" #. type: Plain text msgid "" "You may also make a global I/O scheduler selection by passing the `elevator` " "option via your kernel command line. To do so, edit your boot loader " "configuration (normally found in `/etc/default/grub` if you are using the " "GRUB bootloader) and add `elevator=deadline` to your list of kernel boot " "options." msgstr "" "グローバルI/Oスケジューラを選択するには、カーネルコマンドラインを使用して " "`elevator` オプションを渡します。そのためには、ブートローダ構成(GRUBブート" "ローダを使用する場合通常は `/etc/default/grub` に格納)を編集し、カーネルブー" "トオプションのリストに elevator=deadline を追加します。"