20.24. Displaying CPU Statistics for a Specified Guest Virtual Machine

download PDF
The virsh cpu-stats domain --total start count command provides the CPU statistical information on the specified guest virtual machine. By default, it shows the statistics for all CPUs, as well as a total. The --total option will only display the total statistics. The --count option will only display statistics for count CPUs.

Example 20.51. How to generate CPU statistics for the guest virtual machine

The following example generates CPU statistics for the guest virtual machine named guest1.
# virsh cpu-stats guest1

	cpu_time           242.054322158 seconds
	vcpu_time          110.969228362 seconds
	cpu_time           170.450478364 seconds
	vcpu_time          106.889510980 seconds
	cpu_time           332.899774780 seconds
	vcpu_time          192.059921774 seconds
	cpu_time           163.451025019 seconds
	vcpu_time           88.008556137 seconds
	cpu_time           908.855600321 seconds
	user_time           22.110000000 seconds
	system_time         35.830000000 seconds
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.