[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Snmp cpuRawIdle showing double


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Nathan March <nathan@xxxxxx>
  • Date: Thu, 07 Apr 2011 11:04:24 -0700
  • Delivery-date: Thu, 07 Apr 2011 11:05:28 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gt.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=u6RYzy deewGWl0NrklLKXuFIsDf4VebVfBu4rdVvFTg+g14iho1fzNCfeTOwc+xbJ/GjTs tpRPs6NEI4KYfBqkWoCrKaXX3Gi/zTrKkWTAEpl/zzgLimzHRfB5EfKnYBRo/yGV ZmXy5xwXC8W5rQWiUqzFzFBJJLx3ucvJg1/Pc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.