[Linux-users] Strip ...

Lonni J Friedman netllama
Thu Aug 16 11:12:58 PDT 2007


On 8/16/07, Bill Campbell <linux-sxs at celestial.com> wrote:
> On Thu, Aug 16, 2007, Lonni J Friedman wrote:
> >On 8/16/07, Ben Duncan <linux4ms at aim.com> wrote:
> >> I came across a Slackware Install script where the author was
> >> using "strip --strip-unneeded" against all of the objects.
> >>
> >> I know that 'strip' is suppose to help reduce the size of OBJECTS, but
> >> on modern systems with BIG hard drives, is that still necessary?
> >
> >Yes.  You don't strip a binary just to reduce its size (although that
> >is a valid reason, as having a big disk is a lame reason not to strip
> >a binary).  You strip a binary to improve its runtime performance.
> >There are other reasons, such as hiding/obfuscating symbols which some
> >vendors want to do.
>
> If you're looking for runtime performance, strip the binaries when building
> packages, not during installation as stripping them will render package
> verfication (rpm -V) useless.

Well sure.  I thought we were talking about build/release tasks, not
install time tasks.

>
> IMHO the performance gain from stripping binaries or using the Red Had
> prelink, is false optimization given the speed of today's machines.

Depends on the binary.  I've seen some fairly substantial differences
on some of the stuff I work with.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       http://netllama.linux-sxs.org



More information about the Linux-users mailing list