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-users] Snmp CpuRawIdle showing double?

To: Nathan March <nathan@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Snmp CpuRawIdle showing double?
From: "Fajar A. Nugraha" <list@xxxxxxxxx>
Date: Wed, 6 Oct 2010 08:33:06 +0700
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 05 Oct 2010 18:34:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CABBABB.8090902@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4CABBABB.8090902@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Oct 6, 2010 at 6:54 AM, Nathan March <nathan@xxxxxxxxxxxxxxxxxxxx> wrote:
 Having a strange issue where snmp polling a vm for the ssCpuRawIdle stats (and all the other raw cpu stats) shows up as double:

snmpwalk -v 2c -c 'XXXX' nathanxen1 && sleep 60 && snmpwalk -v 2c -c 'XXXXXXX' nathanxen1

UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 47631385
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 47643353

(47643353 - 47631385) / 6000 * 100 = 199%

Except that this VM has a single cpu. Polling regular machines works fine with this logic and returns the expected numbers.

My guess is that it's kernel issue. Are you running newer pv_ops kernel? If yes, you should ask to xen-devel. I've checked RHEL's kernel-xen and newer xenlinux kernel, both return the correct values.

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>