Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2011 08:55:52 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:        Sylvio C?sar Teixeira Amorim <scjamorim@bsd.com.br>
Subject:   Re: bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses OID
Message-ID:  <20110906155552.GA77408@icarus.home.lan>

next in thread | raw e-mail | index | archive | help
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110906155552.GA77408>