Saving even more CPU
Hannes Gredler <firstname.lastname@example.org> improved the RIB handling further saving even more CPU power. That patch ran for a few weeks on my node and we sorted some minor things out. So I decided to put it into the CVS. Read his text:
pls find attached a pointer for further CPU savings in olsrd.even in large networks (>250 nodes) the avg. CPU utilizationdoes not get beyond 0.5% CPU load on standard 200Mhz WRT hardware.patch from http://gredler.at/download/olsrd/rib2-refactoring4.diffchange-list:
- avoid the periodical rib-tree insertion
- add a FOR_ALL_HNA_RT_ENTRIES() macro for the snmp folks (or any parties who want to walk HNA entries).
- add an olsr_cnf option 'flat_fib_metrics' which defaults to TRUE.
this is as per sven-olas request who has expressed concerns that the current flap-metric style is a bit unpleasant for troubleshooting.
note that i have not yet added the cfg file parser routine for that - just the required tweaks in the change-processing FIB code.