[Xorp-hackers] Size of xorps binaries
Atanu Ghosh
atanu@ICSI.Berkeley.EDU
Sat, 10 Sep 2005 09:24:48 -0700
We made an attempt to get shared libraries working last year.
If I remember correctly we discovered that some of our code uses static
initialization, which prevented the building of shared libraries.
It looked like automake requires that all libraries are either shared or
static, which meant we couldn't even move incrementally towards shared
libraries.
Atanu.
>>>>> "Mark" == Mark Handley <M.Handley@cs.ucl.ac.uk> writes:
Mark> I think for developers, it's something we probably have to accept. For
Mark> operational use, the first thing to do is build with the optimiser (to improve
Mark> speed not size), and strip the binaries (to improve size). This makes a huge
Mark> difference:
Mark> [[echidna.cs.ucl.ac.uk]]: ls -l xorp_bgp
Mark> -rwxr-xr-x 1 mjh mjh 34545650 Jul 13 18:10 xorp_bgp
Mark> [[echidna.cs.ucl.ac.uk]]: strip xorp_bgp
Mark> [[echidna.cs.ucl.ac.uk]]: ls -l xorp_bgp
Mark> -rwxr-xr-x 1 mjh mjh 2840504 Sep 10 14:55 xorp_bgp
Mark> We've discussed off-and-on over the years using shared libraries. So far,
Mark> we've not taken the plunge - it makes some things more complex, but it would
Mark> probably be essential if you wanted a relatively small memory footprint. More
Mark> non-embedded uses though, stripping the binaries seems to be sufficient.
Mark> - Mark
Kristian> On 9/10/05, Kristian Larsson <[[kristian@juniks.net]]> wrote:
Kristian> I just noticed after compiling xorp on my Linux
Kristian> laptop the size of the binaries are approximately
Kristian> twice that of the binaries compiled on a FreeBSD
Kristian> machine. Why is this?
Kristian> The xorpsh is just huge - 26MB! And the bgp
Kristian> process weighs in at a hefty 44MB.
Kristian> Could this also be the reason it takes ~30 seconds
Kristian> to start the fea, rib and an ospf process?
Kristian> IMHO that's a very long time.
Kristian> Anything that could be fixed or is it something
Kristian> you just have to accept?
Kristian> //Kristian
Kristian> _______________________________________________
Kristian> Xorp-hackers mailing list
Kristian> [[Xorp-hackers@icir.org]]
Kristian> [[http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers]]