WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Snmp CpuRawIdle showing double?

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Snmp CpuRawIdle showing double?
From: Nathan March <nathan@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Oct 2010 16:54:35 -0700
Delivery-date: Tue, 05 Oct 2010 16:56:00 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=gossamer-threads.com; h= message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mail; bh=W/XfV+VLUipxOM1xtE0hltwlJ WQ=; b=XdOZ6HWjtyJNXOQvm4SokbTsJH84MNS1gJSI7quRaLA2lQ27jlUXvdVZo V91kv4WpLYWsdHF7AbrNQ5D/YxXcLL+Z0PC5sVUOb/6gDbshrsDKcyd5exbfLytI 4eeErcVEP6pGnaFjJfzv9RajJ6+p3pTu8fVdrWmrKMUG2dUf8k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gossamer-threads.com; h= message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=mail; b=RVkVzKbGbxZJmUfxNfY vEGjSHg3YcFo0kZ4EuunSDjygxThgqWDwM5LArQqGC7kP6F3398NRmi83UP89fDN /VAmwPZupgdNrcOPOz3tHzJ3Plg+4tFCqGHVm8CXnzjVcobdL1aYizEiI1rvN2ha EEPCmSbccvCysGt15UKvNk9I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
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 1.3.6.1.4.1.2021.11.53 && sleep 60 && snmpwalk -v 2c -c 'XXXXXXX' nathanxen1 1.3.6.1.4.1.2021.11.53

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.

nathanxen1 ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           L5640  @ 2.27GHz
stepping        : 2
cpu MHz         : 2266.806
cache size      : 12288 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc up rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm ida arat
bogomips        : 4533.61
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
nathanxen1 ~ #

Xm info:
xen1 ~ # xm info
host                   : xen1
release                : 2.6.31.13
version                : #11 SMP Mon Aug 23 16:12:21 PDT 2010
machine                : x86_64
nr_cpus                : 12
nr_nodes               : 2
cores_per_socket       : 6
threads_per_core       : 1
cpu_mhz                : 2266
hw_caps : bfebfbff:2c100800:00000000:00001f40:009ee3fd:00000000:00000001:00000000
virt_caps              : hvm hvm_directio
total_memory           : 24566
free_memory            : 10939
node_to_cpu            : node0:0-5
                         node1:6-11
node_to_memory         : node0:10939
                         node1:0
node_to_dma32_mem      : node0:2996
                         node1:0
max_node_id            : 1
xen_major              : 4
xen_minor              : 0
xen_extra              : .1-rc6-pre
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline : console=com1,com2,vga com1=115200,8n1 com2=115200,8n1 dom0_mem=1024M dom0_max_vcpus=1 dom0_vcpus_pin=true
cc_compiler            : gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5)
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Mon Aug 23 10:52:16 PDT 2010
xend_config_format     : 4


Anyone have any thoughts on this?

Thanks,
Nathan

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

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