bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses
freebsd at jdc.parodius.com
Tue Sep 6 16:00:08 UTC 2011
The following reply was made to PR bin/160494; it has been noted by GNATS.
From: Jeremy Chadwick <freebsd at jdc.parodius.com>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-bugs at FreeBSD.org
Cc: Sylvio C?sar Teixeira Amorim <scjamorim at bsd.com.br>
Subject: Re: bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses
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,
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 |
More information about the freebsd-bugs