NetBSD Problem Report #47315

From www@NetBSD.org  Wed Dec 12 20:23:38 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id B274663E33E
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 12 Dec 2012 20:23:38 +0000 (UTC)
Message-Id: <20121212202337.7022D63E33E@www.NetBSD.org>
Date: Wed, 12 Dec 2012 20:23:37 +0000 (UTC)
From: bbartlomiej@gmail.com
Reply-To: bbartlomiej@gmail.com
To: gnats-bugs@NetBSD.org
Subject: net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't report load for all processors.
X-Send-Pr-Version: www-1.0

>Number:         47315
>Category:       pkg
>Synopsis:       net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't report load for all processors.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    adam
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 12 20:25:00 +0000 2012
>Closed-Date:    
>Last-Modified:  Fri Apr 05 01:04:00 +0000 2013
>Originator:     Bartek Krawczyk
>Release:        NetBSD 6.0
>Organization:
>Environment:
NetBSD www.tveurosat.net 6.0 NetBSD 6.0 (XEN3_DOMU) amd64

>Description:
Hi
I've recently switched my DomU servers from Debian Linux to NetBSD 6.0. I monitor my servers with cacti and snmp and have few problems with monitoring cpu load. I've installed net-snmp using pkgin from binary packages on a fresh NetBSD 6.0 DomU install.

Cacti monitors load on only one cpu because there is no instance of hrProcessorLoad.769 as you can see from snmpwalk:

HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.769 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.768 = INTEGER: 1

DomU correctly detects both CPUs:
vcpu0 at hypervisor0: Quad-Core AMD Opteron(tm) Processor 2352, id 0x100f23
vcpu1 at hypervisor0: Quad-Core AMD Opteron(tm) Processor 2352, id 0x100f23


www# cpuctl list
Num  HwId Unbound LWPs Interrupts Last change              #Intr
---- ---- ------------ ---------- ------------------------ -----
0    0    online       intr       Sun Dec  2 20:25:25 2012 0    
1    1    online       intr       Sun Dec  2 20:25:25 2012 0    

also "top" reports both CPUs present. 

Any help? I'm not a coder myself but if you point me in the right direction I'll try to debug and maybe fix it myself.


>How-To-Repeat:
Install NetBSD 6.0, net-snmp from binary packages from 2012Q3 using pkgin and try to monitor cpu load on every CPU.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 30 Dec 2012 06:46:06 +0000
Responsible-Changed-Why:
Over to maintainer.


From: David Holland <dholland-gnats@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47315 (net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't
 report load for all processors.)
Date: Mon, 25 Feb 2013 18:48:15 +0000

 Not sent to gnats (send PR mail to gnats-bugs; it resends)

    ------

 From: Bartek Krawczyk <bbartlomiej@gmail.com>
 To: adam@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
 	obache@NetBSD.org, gnats-admin@netbsd.org
 Subject: Re: pkg/47315 (net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't
 	report load for all processors.)
 Date: Sun, 13 Jan 2013 23:13:20 +0100

 Hi, I've added 2 more cpus to the DomU (4 CPUs total) and the problem
 persists. Cpus are listed in snmp but the load is reported only for the
 first cpu id. Other cpu ids OIDs are not even generated.

 Regards,
 -- 
 Pozdrawiam
 Bartek Krawczyk

From: Bartek Krawczyk <bbartlomiej@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Fwd: Re: pkg/47315 (net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't
 report load for all processors.)
Date: Mon, 25 Feb 2013 22:23:07 +0100

 ------ Wiadomość oryginalna ------
 Temat: Re: pkg/47315 (net-snmp from pkgsrc 2012Q3 on NetBSD 6.0 doesn't
 report load for all processors.)
 Data: Sun, 13 Jan 2013 23:13:20 +0100
 Nadawca: Bartek Krawczyk <bbartlomiej@gmail.com>
 Adresat: adam@NetBSD.org, pkg-manager@netbsd.org,
 pkgsrc-bugs@netbsd.org,  obache@NetBSD.org, gnats-admin@netbsd.org

 Hi, I've added 2 more cpus to the DomU (4 CPUs total) and the problem
 persists. Cpus are listed in snmp but the load is reported only for the
 first cpu id. Other cpu ids OIDs are not even generated.

 Regards,
 -- 
 Pozdrawiam
 Bartek Krawczyk

From: Bartek Krawczyk <bbartlomiej@gmail.com>
To: gnats-bugs@gnats.netbsd.org, adam@netbsd.org
Cc: 
Subject: Re: pkg/47315
Date: Wed, 03 Apr 2013 19:42:45 +0200

 Hi, I've just upgraded to pkgsrc 2013Q1 and this bug is still not
 resolved. I don't see any load on any processor now. Also I've got lots of:

 Apr  3 19:33:03 test snmpd[1478]: sysctl vm.bufmem failed (errno 12)

 which prevents me from monitoring memory usage through snmp.

 What's the point of releasing next pkgsrc relase and bumping up the
 version of snmpd if one doesn't resolve any PRs?

 Now I've got 8 CPUS total:
 HOST-RESOURCES-MIB::hrProcessorFrwID.196608 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196609 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196610 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196611 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196612 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196613 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196614 = OID: SNMPv2-SMI::zeroDotZero
 HOST-RESOURCES-MIB::hrProcessorFrwID.196615 = OID: SNMPv2-SMI::zeroDotZero

 but the CPU usage is represented only for the first one:

 HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 1

 And the discussion about vm.bufmem failed (errno 12) in logs is here:
 http://mail-index.netbsd.org/netbsd-users/2013/01/02/msg012263.html

 where Jean-Yves Moulin said he sent a patch to the maintainer. Why such
 a simple patch couldn't have been included in the next stable release of
 pkgsrc?

 PS. those two bugs exist on 6.0, 6.0.1, 6.1_RC1 and 6.1_RC2

 Regards,
 -- 
 Pozdrawiam
 Bartłomiej Krawczyk

State-Changed-From-To: open->feedback
State-Changed-By: christos@NetBSD.org
State-Changed-When: Thu, 04 Apr 2013 21:04:00 -0400
State-Changed-Why:
fixed on pl1 today


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.