Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2003 15:59:41 -0800
From:      Tim Kientzle <kientzle@acm.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Marcel Moolenaar <marcel@xcllnt.net>
Subject:   Re: Unfortunate dynamic linking for everything
Message-ID:  <3FBEA6ED.1020200@acm.org>
In-Reply-To: <20031120061110.P8759@gamplex.bde.org>
References:  <200311182307.hAIN7Wpm000717@dyson.jdyson.com> <20031119141059.GA14308@madman.celabo.org> <20031119142535.GA27610@electra.cse.Buffalo.EDU> <20031119172533.GB9066@dhcp01.pn.xcllnt.net> <20031120061110.P8759@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:
> It obviously uses NSS.  How else could it be so bloated? :
> 
> $ ls -l /sbin/init
> -r-x------  1 root  wheel  453348 Nov 18 10:30 /sbin/init

I believe it's actually DNS, not NSS.

Pre-5.0, the resolver ballooned significantly.
A lot of the bloat in /bin and /sbin came
from the NIS functions which in turn pull in
the resolver.

Example: /bin/date on 5.1 is also over 450k
because of a single call to getservbyname().
Removing that one call shrinks a static /bin/date
to a quite reasonable size. (I seem to recall 80k when
I did this experiment.)

I note that /sbin/init calls getpwnam();
I expect that's where the bloat gets pulled in.

Tim Kientzle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FBEA6ED.1020200>