This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] Snmp cpuRawIdle showing double

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Snmp cpuRawIdle showing double
From: Nathan March <nathan@xxxxxx>
Date: Thu, 07 Apr 2011 11:04:24 -0700
Delivery-date: Thu, 07 Apr 2011 11:05:28 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=gt.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=mail; bh=RUoGDchDiBqT K4fxXxDZE1i0HT8=; b=v9BxGMZsUgoZp3qlBnn18Zu1DRMXu9NNOgw+a4quxIeL v3WyVdJnz9jhH28ve3HqSbgmxjlVsYW48j1DYbqLHOmQBCbu05M40TWzYA79fSJE ZXeOURweqNQpviSqTYEyFJdeO45ytplQXosEaTuYFGZnmzaB0S7AZoMkVf/opa8=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D9CA833.2060506@xxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4D9B8538.8070908@xxxxxx> <4D9CA833.2060506@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
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


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

<Prev in Thread] Current Thread [Next in Thread>