Show Table of Contents
第7章 ブロック I/O
本章では、仮想化環境における I/O の最適化について説明します。
7.1. ブロック I/O チューニング
virsh blkiotune コマンドを使うと、管理者はゲスト仮想マシンのブロック I/O パラメーターをゲスト XML 設定の <blkio> 要素に手動で設定したり、表示したりすることができます。
仮想マシンの現在の
<blkio> パラメーターを表示するには、以下を実行します。
# virsh blkiotune virtual_machine
仮想マシンの
<blkio> パラメーターを設定するには、以下のコマンドを参照し、ご使用の環境に応じて値を置き換えます。
# virsh blkiotune virtual_machine [--weight number] [--device-weights string] [--config] [--live] [--current]
パラメーターには以下が含まれます。
weight- I/O ウェイト値 (100 から 1000 の範囲内)。
device-weights形式で 1 つ以上の device/weight のペアを一覧表示する単一文字列です。それぞれのウェイトは 100-1000 の範囲内にあるか、またはデバイスごとの一覧からデバイスを削除するには値は 0 である必要があります。文字列に一覧表示されているデバイスのみが変更されます。他のデバイスの既存のデバイスごとのウェイトは変更されません。/path/to/device,weight,/path/to/device,weightconfig- 次回の起動時に変更を有効にするには、
オプションを追加します。--config live- 実行中の仮想マシンに変更を適用するには、
オプションを追加します。--live注記
オプションは、ハイパーバイザーがこのアクションをサポートするように要求します。すべてのハイパーバイザーがメモリー上限のライブの変更を許可する訳ではありません。--live current- 変更を現在の仮想マシンに適用するには、
オプションを追加します。--current
注記
virsh blkiotune コマンド使用の詳細については、virsh help blkiotune コマンドを使用してください。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.