Robert Story wrote: >There are many modules that register alarms to allow them to periodically >receive callbacks to perform some work. > >
>- the new cpu statistics code, used by the host resources modules, @ 5 >seconds. This seems like quite low to me, but I'll leave it to Dave to explain >why such frequent polling is necessary. > > Probably to support the implementation of the hrProcessorLoad object. This is defined as reporting the load over the last minute, so needs to sample the underlying statistics sufficiently frequently to be able to calculate this load reasonably accurately. Polling once every 60s would give more-or-less meaningless results, while polling every second would be ridiculous. I chose every 5s as a compromise between the two - sufficiently frequent to be fairly accurate, but not so frequent as to put an undue load on the agent. But this could easily be adjusted if the load was found to be too great. See line 9 of hardware/cpu/cpu.c Dave Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
