Show Table of Contents
6.2. 块 I/O 调试
virsh blkiotune 命令允许管理员在客机 XML 配置的 <blkio> 元素中,手动设置或显示客户虚拟机的块 I/O 参数。
为虚拟机显示当前的
<blkio> 参数:
# virsh blkiotune virtual_machine
设置虚拟机的
<blkio> 参数,请参照以下命令并依据环境替换属性值:
# virsh blkiotune virtual_machine [--weight number] [--device-weights string] [--config] [--live] [--current]
参数包括:
weight- I/O 的权重范围在 100 到 1,000 之间。
device-weights- 列出一个或多个设备/权值组群的单独字符串,以
为格式。每一个权值必须在 100-1,000 范围内,或者 0 值从每一个设备列表删除该设备。只修改字符串中列出的设备;任何现有的其它设备的权值保持不改变。/path/to/device,weight,/path/to/device,weight config- 添加
选项,使更改在下次启动时生效。--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.