From owner-freebsd-arch@FreeBSD.ORG Wed Jun 23 11:31:58 2010 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88C8C1065676; Wed, 23 Jun 2010 11:31:58 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.freebsd.org (Postfix) with ESMTP id 091B18FC12; Wed, 23 Jun 2010 11:31:57 +0000 (UTC) Received: from c122-106-145-229.carlnfd1.nsw.optusnet.com.au (c122-106-145-229.carlnfd1.nsw.optusnet.com.au [122.106.145.229]) by mail05.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o5NBVWuX015723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jun 2010 21:31:35 +1000 Date: Wed, 23 Jun 2010 21:31:32 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86r5jy3m6l.fsf@ds4.des.no> Message-ID: <20100623204143.N45440@delplex.bde.org> References: <86wrtte830.fsf@ds4.des.no> <20100622.102058.69891821692792062.imp@bsdimp.com> <86d3vi53b9.fsf@ds4.des.no> <20100622.131232.1004138037621847577.imp@bsdimp.com> <86r5jy3m6l.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1364095537-1277292692=:45440" Cc: stefan@fafoe.narf.at, gcooper@FreeBSD.org, jilles@stack.nl, freebsd-arch@FreeBSD.org Subject: Re: Further sh(1) plans X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 11:31:58 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1364095537-1277292692=:45440 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 22 Jun 2010, [utf-8] Dag-Erling Sm=C3=B8rgrav wrote: > "M. Warner Losh" writes: >> Dag-Erling Sm=C3=B8rgrav writes: >> "M. Warner Losh" writes: >>>> ~4k isn't worth a fuss. However, ~315k from libncurses and ~110k from >>>> libedit is, They aren't quite that bad. More like 220K for both of them combined (static bloat of text size; their shared library and/or memory footprint may be worse). This is up from 180K in RELENG_5 and IIRC 150K in RELENG_4. "optimizing" these libraries by compiling them with -O2 cannot help. 220K is still disgusting, since it is more than twice the size of the whole stripped file /bin/sh (90K) in FreeBSD-1. (I have to use the file size for comparison with old binaries since `size' is broken on aout format.) The file size in FreeBSD-2 was only 270K IIRC. This was with aout and its extra padding, and with libedit and possible /etc/passwd support, and even with builtin printf, so it had more features than now! Omitting /etc/passwd support (just 1 getpwnam() call) as well as history reduces the text size by another 350K. Its file size, for essentially the same features as the FreeBSD-1 sh, is 285K (the full reduction is from 1059K, giving a total reduction of 774K). (I have to use the file size for comparison since `size' is broken on aout format.) In FreeBSD-5, the reduction is to 170K. malloc() is responsible for many of the extra 115K. >>> Oh come on, they were there already. Don't blame tab completion for >>> this. >> They weren't there before. Guess I missed when they went in. > > Time flies when you're having fun... Not too much fun to watch the bloat. I notice it more since I use static linkage for everything except ports. A 64MB root partition is barely large enough for static everything and 6 kernels. Bruce --0-1364095537-1277292692=:45440--