Re: Slow dskTable & caching

2012-11-29 Thread Niels Baggesen
On Thu, Nov 29, 2012 at 01:49:44PM +0100, Jan Safranek wrote: > Is there any simple way, how to inject such cache? I don't want to > rewrite half of disk_hw.c just to update it to new table handler style. You could just check a timestamp of last data load in hw_fsys.c at the call to netsnmp_fsys_a

Slow dskTable & caching

2012-11-29 Thread Jan Safranek
I noticed that UCD-SNMP-MIB::dskTable is unusually slow with NFS mounts and net-snmp-5.7.2. The reason is new implementation of the table in agent/mibgroup/ucd-snmp/disk_hw.c. It re-reads filesystem info on every GET/GETNEXT request, see netsnmp_fsys_load() call in var_extensible_disk. The most si