Displaying 2 results from an estimated 2 matches for "zuochangqian".
2015 Jul 24
0
Re: virsh dominfo does not show correct cpuTime
...use time not utilization。
>
> use_time/total_cpu_time is utilization。
>
> total_cpu_time=`cat /proc/stat |sed -n '1p'|awk '{ print
> sum=$2+$3+$4+$5+$6+$7+$8+$9+$10}'`
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "changqian zuo";<zuochangqian@gmail.com>;
> *发送时间:* 2015年7月24日(星期五) 中午1:51
> *收件人:* "libvirt-users"<libvirt-users@redhat.com>;
> *主题:* [libvirt-users] virsh dominfo does not show correct cpuTime
>
> Hi,
>
> I am doing some domain resource monitoring work. I use
>
> cat /dev/urando...
2015 Jul 24
0
virsh dominfo does not show correct cpuTime
Hi,
I am doing some domain resource monitoring work. I use
cat /dev/urandom | md5sum
to simulate vCPU load and write a script to calculate vCPU utilization. It
seems all good at the beginning. After I abort the ``cat ... md5sum``
command in domain, I see some strange data as below:
CPU time: 8410960000000
CPU util: 99.8410609331%
CPU time: 8411970000000
CPU util: 100.843672381%
CPU time: