Re: Speed up snmpwalk

2018-05-24 Thread Claudio Jeker
On Thu, May 24, 2018 at 01:39:28PM +0200, Jeremie Courreges-Anglas wrote: > > > [...] > > > So here's an updated diff that uses a timer to purge the cache after > > 5 seconds: > > LGTM except for... > > > > > Index: usr.sbin/snmpd/mib.c > >

Re: Speed up snmpwalk

2018-05-24 Thread Jeremie Courreges-Anglas
[...] > So here's an updated diff that uses a timer to purge the cache after > 5 seconds: LGTM except for... > > Index: usr.sbin/snmpd/mib.c > === > RCS file: /cvs/src/usr.sbin/snmpd/mib.c,v > retrieving revision 1.86 > diff -u

Re: Speed up snmpwalk

2018-05-22 Thread Gerhard Roth
On Tue, 22 May 2018 11:05:48 +0200 Claudio Jeker wrote: > On Tue, May 22, 2018 at 10:26:30AM +0200, Gerhard Roth wrote: > > Hi, > > > > a snmpwalk of HOST-RESOURCES-MIB::hrSWRunTable doesn't scale very well > > with an increasing number of running processes. > > > >

Re: Speed up snmpwalk

2018-05-22 Thread Claudio Jeker
On Tue, May 22, 2018 at 10:26:30AM +0200, Gerhard Roth wrote: > Hi, > > a snmpwalk of HOST-RESOURCES-MIB::hrSWRunTable doesn't scale very well > with an increasing number of running processes. > > For every process and each of the 7 elements of the table, mib_hrswrun() > would call kinfo_proc()