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 simple fix is to add cache helper around the whole dskTable.
But the table is registered using REGISTER_MIB and I don't have its
netsnmp_handler_registration to inject the cache handler into.

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.

Jan

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to