Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

20.24. 指定したゲスト仮想マシンの CPU 統計の表示

virsh cpu-stats domain --total start count コマンドは、指定したゲスト仮想マシンの CPU 統計情報を提供します。デフォルトでは、すべての CPU の統計および合計が表示されます。--total オプションは、合計統計のみを表示します。--count オプションは、count CPU の統計のみを表示します。

例20.51 ゲスト仮想マシンの CPU 統計を生成する方法

以下の例では、guest1 という名前のゲスト仮想マシンの CPU 統計情報を生成します。
# virsh cpu-stats guest1

CPU0:
	cpu_time           242.054322158 seconds
	vcpu_time          110.969228362 seconds
CPU1:
	cpu_time           170.450478364 seconds
	vcpu_time          106.889510980 seconds
CPU2:
	cpu_time           332.899774780 seconds
	vcpu_time          192.059921774 seconds
CPU3:
	cpu_time           163.451025019 seconds
	vcpu_time           88.008556137 seconds
Total:
	cpu_time           908.855600321 seconds
	user_time           22.110000000 seconds
	system_time         35.830000000 seconds