search for: total_cpu_time

Displaying 1 result from an estimated 1 matches for "total_cpu_time".

2015 Jul 24
0
Re: virsh dominfo does not show correct cpuTime
...se time outside of guest with libvirt-python API, and them calculate utilization with (cpuTime2 - cpuTime1) / (t2 - t1). I was not doing this inside the guest os. 2015-07-24 15:09 GMT+08:00 2020human <human2020@qq.com>: > You calculate is vCPU 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日(星期五) 中午...