Re: [libvirt-users] problem when get the vm cpu stat

2013-04-20 Thread Wangkai (Kevin,C)
> -Original Message- > From: Michal Privoznik [mailto:mpriv...@redhat.com] > Sent: Friday, April 19, 2013 10:53 PM > To: Wangkai (Kevin,C) > Cc: libvirt-users@redhat.com > Subject: Re: [libvirt-users] problem when get the vm cpu stat > > On 19.04.2013 09:40,

Re: [libvirt-users] problem when get the vm cpu stat

2013-04-19 Thread Michal Privoznik
On 19.04.2013 09:40, Wangkai (Kevin,C) wrote: > Hi all, > > > > I try to get vm cpu stat by function “virDomainGetCPUStats”, when the vm > > > > Cpu usage is 100%, I can see from the vm shell by “top”, when the info > > > > Get by the “virDomainGetCPUStats” show only the “cpu_time” in

[libvirt-users] problem when get the vm cpu stat

2013-04-19 Thread Wangkai (Kevin,C)
Hi all, I try to get vm cpu stat by function "virDomainGetCPUStats", when the vm Cpu usage is 100%, I can see from the vm shell by "top", when the info Get by the "virDomainGetCPUStats" show only the "cpu_time" increased, "user_time" and "system_time" was not changed at all. Is that correct