Search squid archive

Re: size of squid binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/01/11 09:20, Orestes Leal R. wrote:


* Eda FLORAT <edaflorat@xxxxxxxxx>:
Hello,

if accept loosing debug symbols and get stripped binary, can we say
that stripped binary of squid will perform better?


I think it performs pretty much the same, the only differences between
the 2 binary files
(apart from size) are the new section (sections?) for debugging (symbols
sections allocated
by the compiler because requested by the developer in the makefile),
butI think that the
memory space of the .text and .data section must be the same size.
I'm not an expert in the subject so I might be wrong.

You are correct. Modern compilers make sure the symbols are separate and OS don't even load those areas of the binary unless they need to answer a stack trace OS call. All it means is a (much) larger binary size on disk. Running under a debugger is slightly different, where the debugger will manually load the symbols separately for its own uses.

The reason distros such as Debian and Ubuntu strip symbols is to improve their disk package sizes and install times. They also often provide a second package with the non-stripped binary named *-dbg.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.10
  Beta testers wanted for 3.2.0.4


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux