From owner-freebsd-current@FreeBSD.ORG Fri Nov 21 15:59:50 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EC0016A4CE for ; Fri, 21 Nov 2003 15:59:50 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CDA143FD7 for ; Fri, 21 Nov 2003 15:59:49 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org ([66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id hALNxfkX035417; Fri, 21 Nov 2003 15:59:41 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3FBEA6ED.1020200@acm.org> Date: Fri, 21 Nov 2003 15:59:41 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce Evans 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> In-Reply-To: <20031120061110.P8759@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Ken Smith cc: freebsd-current@freebsd.org cc: Marcel Moolenaar Subject: Re: Unfortunate dynamic linking for everything X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 23:59:50 -0000 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