[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Snmp cpuRawIdle showing double
On 4/6/2011 10:51 AM, Nathan March wrote: > Dug into the net-snmp source code to figure out where it pulls that data > from, here's a test case: > > x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60 && > y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e > "X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc) > > xen1 ~ # x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60 > && y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e > "X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc) > X:15718848 > Y:15730453 > IDLE: 193.400 > Anyone? Could I ask some people to try running this script on their non-loaded dom0 and see what it returns? x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60 && y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e "X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc) The Idle output should close to 100% per cpu in the dom0. - Nathan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |