On Sun, 2007-12-02 at 15:00 +0100, Hannes Gredler wrote:
> hi list,
> 
> pls find attached a pointer for further CPU savings in olsrd.
> even in large networks (>250 nodes) the avg. CPU utilization
> does not get beyond 0.5% CPU load on standard 200Mhz WRT hardware.
> 
> patch is at http://gredler.at/download/olsrd/rib2-refactoring2.diff
> 
> change-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.
[...]

As offered/promised, I did that right now.

> --
> 
> asking for review, testing and inclusion.

Done. Actually it was
http://gredler.at/download/olsrd/rib2-refactoring4.diff plus some
trivial compile fixes.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



