svn commit: r284198 - head/bin/ls

Steve Kargl sgk at troutmask.apl.washington.edu
Sun Jun 14 19:01:58 UTC 2015


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


More information about the svn-src-all mailing list