Change in vdsm[master]: report cpuUser and cpuSys separately

wudxw at linux.vnet.ibm.com wudxw at linux.vnet.ibm.com
Fri Sep 7 09:59:23 UTC 2012


Mark Wu has posted comments on this change.

Change subject: report cpuUser and cpuSys separately
......................................................................


Patch Set 1:

Here's the cpustats of a running vm:

virsh # cpu-stats 3
CPU0:
	cpu_time           152.626922854 seconds
CPU1:
	cpu_time           460.343462849 seconds
CPU2:
	cpu_time            37.569566994 seconds
CPU3:
	cpu_time            21.092908393 seconds
Total:
	cpu_time           671.632861090 seconds
	user_time            3.440000000 seconds
	system_time         18.380000000 seconds

You can see cpu_time is much bigger than the sum of user_time and system_time, because the guest time is not reported here. So most cpu time is used to run guest code. It makes sense!  For a qemu-kvm process, user_time represents the time used by qemu, and system_time represents the time used by kvm module, which doesn't contain guest time. I am not sure if this is what you expect. It could be a little bit confusing for user.

--
To view, visit http://gerrit.ovirt.org/7718
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I663ad25ff3ff5ce426b5159b6c9a65b7f5167605
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <lhornyak at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Gal Hammer <ghammer at redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhornyak at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Royce Lv <lvroyce at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list