[Xorp-hackers] Size concerns
Atanu Ghosh
atanu@ICSI.Berkeley.EDU
Mon, 12 Sep 2005 11:55:28 -0700
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