*BSD News Article 32009


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:11090 gnu.misc.discuss:15348
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!warrane.connect.com.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions,gnu.misc.discuss
Subject: Re: Taylor UUCP on FreeBSD???
Date: 23 Jun 1994 08:43:23 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 39
Message-ID: <2uaeqb$onu@kralizec.zeta.org.au>
References: <1994Jun13.040754.17764@kosman.uucp> <RSANDERS.94Jun21155032@hrothgar.mindspring.com> <2u7tcb$6mr@pdq.coe.montana.edu> <RSANDERS.94Jun22110639@hrothgar.mindspring.com>
NNTP-Posting-Host: kralizec.zeta.org.au

In article <RSANDERS.94Jun22110639@hrothgar.mindspring.com>,
Robert Sanders <rsanders@mindspring.com> wrote:
>In article <2u7tcb$6mr@pdq.coe.montana.edu> nate@bsd.coe.montana.edu (Nate Williams) writes:
>
>   >Well, that's a valid argument on Linux, but FreeBSD (and I suppose
>   >NetBSD) think that shared libraries belong in /usr/lib.  I disagree,
>
>   As a FreeBSD developer, I'll give a quick WHY we did it that way.
>
>   1) / (root) should be small.
>   2) Given the above, putting the entire shared library in /root makes
>      no sense due to size, even offsetting the savings in the small
>      number of shared binaries.

>Linux's shared libc and libm add up to about 280K (they look bigger,
>but they contain holes).  I really couldn't tell you for sure how much
>space I save in /bin and /sbin with shared libraries, but I'm sure
>it's close to that.  FreeBSD may have a significantly larger libc.so
>because of its more ELF-like dynamic linking.

I'm sure you save 10 or 20 times 280K.  It depends how much cruft there
is in /bin and /sbin and /etc.  In my version of FreeBSD-1.1, everything
is static except /sbin/ld.so and the sizes (in K) given by du are:

521	/bin
521	/lib
790	/sbin

The sizes on the cdrom are:

1812	filesys/bin
2765	filesys/sbin

The saving is about 2700K.  libc.so is 400K in FreeBSD.  It doesn't
contain such big holes as the linux libc.so, and in general the
savings from compressing holes is very small under FreeBSD because
ufs's block size is too large.
-- 
Bruce Evans  bde@kralizec.zeta.org.au