[Xorp-hackers] Size concerns

Kristian Larsson kristian@juniks.net
Mon, 12 Sep 2005 21:20:25 +0200


Gentoo Linux 2.6.12-r4
gcc 3.3.5-20050130

floffy local # du -sh xorp
631M    xorp
<strip>
floffy local # du -sh xorp
38M     xorp

still, as John says, it's not of much use on an
embedded system where you have only a few meggs of
available space.

//Kristian

On Mon, Sep 12, 2005 at 11:55:28AM -0700, Atanu Ghosh wrote:
> Hi,
> 
> I installed xorp on a FreeBSD 4.10 using gcc version 2.95.4. I then stripped
> all the executables. I then removed some old core files from
> /usr/local/xorp/bin.
> 
> $ du -sh  /usr/local/xorp
>  50M    /usr/local/xorp
> 
> No single binary is larger than 2M.
> 
>    Atanu.
> 
> >>>>> "Weaver" == Weaver John <John.Weaver@motorola.com> writes:
> 
>     Weaver> 10% is not going to help out a lot unless my 210MB was
>     Weaver> wrong.  I cannot deal with an executable to put in the root
>     Weaver> file system that is over 5MB.
> 
>     Weaver> -----Original Message----- From: Kristian Larsson
>     Weaver> [mailto:kristian@juniks.net] Sent: Monday, September 12,
>     Weaver> 2005 1:27 PM To: Weaver John-JWEAVER1 Cc:
>     Weaver> xorp-hackers@xorp.org Subject: Re: [Xorp-hackers] Size
>     Weaver> concerns
> 
>     Weaver> On Mon, Sep 12, 2005 at 11:32:43AM -0500, Weaver
>     Weaver> John-JWEAVER1 wrote:
>     >> What is the smallest possible size that I could get to for just
>     >> PIM and IGMP with the xorpsh?  This would be the part that I need
>     >> to put into the root file system.  I would assume this is the
>     >> 'make install' that I do?  I took that directory in
>     >> /usr/local/xorp and stripped everything.  Without bgp and rip I
>     >> am looking at 210MB, is this right?
> 
>     Weaver> I just noticed this a little while ago (see my thread last
>     Weaver> weekish something).  Anyway try to strip your binaries;
>     Weaver> bash; cd /usr/local/xorp/; for xfile in `find . -perm 755`;
>     Weaver> do strip $xfile; done The usual disclaimer goes for the
>     Weaver> above.. ;)
> 
>     Weaver> You should end up with 10% of the original file size. To get
>     Weaver> even lower you have to do more magic - read the other thread
>     Weaver> :)
> 
>     Weaver> Regards, Kristian
>     Weaver> _______________________________________________ Xorp-hackers
>     Weaver> mailing list Xorp-hackers@icir.org
>     Weaver> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers@icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers