From owner-svn-src-head@FreeBSD.ORG Sun Jun 14 19:01:58 2015 Return-Path: Delivered-To: svn-src-head@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62972F75; Sun, 14 Jun 2015 19:01:58 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 23C5BCAD; Sun, 14 Jun 2015 19:01:58 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.14.9/8.14.9) with ESMTP id t5EJ1jtg006370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 14 Jun 2015 12:01:45 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.9/8.14.9/Submit) id t5EJ1iHe006369; Sun, 14 Jun 2015 12:01:44 -0700 (PDT) (envelope-from sgk) Date: Sun, 14 Jun 2015 12:01:44 -0700 From: Steve Kargl To: Bruce Simpson Cc: Slawa Olhovchenkov , Craig Rodrigues , Marcel Moolenaar , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Marcel Moolenaar , "src-committers@freebsd.org" Subject: Re: svn commit: r284198 - head/bin/ls Message-ID: <20150614190144.GA6295@troutmask.apl.washington.edu> References: <20150613024916.GA98218@troutmask.apl.washington.edu> <1434208622.1415.57.camel@freebsd.org> <557C661F.8080104@freebsd.org> <860017ED-D754-450C-865D-2D81A30C2212@xcllnt.net> <20150614100045.GF58397@zxy.spb.ru> <557D55CB.5050009@fastmail.net> <20150614171031.GA5857@troutmask.apl.washington.edu> <557DCBED.2010804@fastmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <557DCBED.2010804@fastmail.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2015 19:01:58 -0000 On Sun, Jun 14, 2015 at 07:46:05PM +0100, Bruce Simpson wrote: > On 14/06/2015 18:10, Steve Kargl wrote: > > On Sun, Jun 14, 2015 at 11:22:03AM +0100, Bruce Simpson wrote: > >> > >> But I have yet to see a coherent argument here -- size(1) numbers, RSS > >> figures etc. -- about how it allegedly adds bloat. Most of what I've > >> seen so far is POLA, NIH resistance, and hand-wavery. > >> > > > > It is not alleged. I actaully measured the bloat libxo > > caused when w(1) was converted. > ... > > Here's the bloat with ls(1) > ... > > Steve, that's still less than one 4KB page. 4KB for dynamic linking. 38KB for static linking. How many utilities are to be converted? 4KB (or 38KB) can add up quickly. > But not knowing what compile options you used, or having information > about sizes (and working sets - just listing file sizes is hand waving) > across the libxo modified binaries, this still doesn't give a complete > picture of the relative cost of the feature. Default 'make buildworld' options with CPUTYPE?=core2. So, -O2. I also tested with CFLAGS+=-static in w(1) and ls(1)'s Makefile. The numbers that I showed are from 'make buildworld'. The only difference is w(1) and ls(1) with/without the libxo change. I don't need to cook the numbers to fabricate some issue. Choose your favorite CFLAGS. Use svn to get w(1) and ls(1) with/without libxo. It's not difficult. -- Steve