lowering OSPF memory requirements
Martin Mares
mj at ucw.cz
Tue Sep 2 20:38:03 CEST 2003
Hi!
> I am trying to use bird's OSPF implementation in a memory contrained linux
> environment. I have only 2 MB of RAM. Can you give me some tips on how to
> reduce the memory footprint of bird running OSPF? It is currently using about
> 1 MB, and I would like to try to cut that by 200 KB or so..
First of all, configure out all protocols you don't use.
Another thing which could help is switching off BIRD's smart allocators to the
system ones which are slower, but more memory efficient. You can try changing
"#undef FAKE_SLAB" in lib/slab.c to "#define FAKE_SLAB".
(Untested, but could help a lot.) Try linking bird with diet libc (see
http://www.fefe.de/dietlibc/) or uclibc (http://www.uclibc.org/).
In any case, I'll be very glad to hear about the result.
Have a nice fortnight
--
Martin `MJ' Mares <mj at ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"I don't give a damn for a man that can only spell a word one way." -- M. Twain
More information about the Bird-users
mailing list