7.2. Block I/O Tuning


The virsh blkiotune command allows administrators to set or display a guest virtual machine's block I/O parameters manually in the <blkio> element in the guest XML configuration.
To display current <blkio> parameters for a virtual machine:
# virsh blkiotune virtual_machine
To set a virtual machine's <blkio> parameters, refer to the following command and replace values according to your environment:

# virsh blkiotune virtual_machine [--weight number] [--device-weights string] [--config] [--live] [--current]
Parameters include:
weight
The I/O weight, within the range 100 to 1000.
device-weights
A single string listing one or more device/weight pairs, in the format of /path/to/device,weight,/path/to/device,weight. Each weight must be within the range 100-1000, or the value 0 to remove that device from per-device listings. Only the devices listed in the string are modified; any existing per-device weights for other devices remain unchanged.
config
Add the --config option for changes to take effect at next boot.
live
Add the --live option to apply the changes to the running virtual machine.

Note

The --live option requires the hypervisor to support this action. Not all hypervisors allow live changes of the maximum memory limit.
current
Add the --current option to apply the changes to the current virtual machine.

Note

See # virsh help blkiotune for more information on using the virsh blkiotune command.
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.