From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 6 16:00:08 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 280BB1065670 for ; Tue, 6 Sep 2011 16:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0AEFC8FC0A for ; Tue, 6 Sep 2011 16:00:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p86G072l003451 for ; Tue, 6 Sep 2011 16:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p86G07Vu003450; Tue, 6 Sep 2011 16:00:07 GMT (envelope-from gnats) Date: Tue, 6 Sep 2011 16:00:07 GMT Message-Id: <201109061600.p86G07Vu003450@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jeremy Chadwick Cc: Subject: Re: bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses OID X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeremy Chadwick List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 16:00:08 -0000 The following reply was made to PR bin/160494; it has been noted by GNATS. From: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: Sylvio C?sar Teixeira Amorim Subject: Re: bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses OID Date: Tue, 6 Sep 2011 08:55:52 -0700 On Tue, Sep 06, 2011 at 08:41:39AM -0300, Sylvio C?sar Teixeira Amorim wrote: > Do a patch and send me. I had a chance to review the net-snmp code. My previous claim was incorrect -- net-snmp DOES NOT suffer from the problem documented in this PR. The code in net-snmp which uses kvm_getprocs(3) is for the hrSW*Run OIDs, which (properly) uses KERN_PROC_ALL to ensure they count kernel threads for kernel modules. The hrSystemProcesses OID with net-snmp returns the correct number of system processes (not including threads). Verification: icarus# snmpwalk -v2c -c public localhost hrSystemProcesses HOST-RESOURCES-MIB::hrSystemProcesses.0 = Gauge32: 60 So this PR/issue is specific to bsnmpd. Sorry to waste your time, Sylvio! The PR should remain open as bsnmpd needs to be fixed. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |