Re: [squid-users] size of squid binary

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 15 Jan 2011 14:36:54 +1300

On 15/01/11 09:20, Orestes Leal R. wrote:
>
>
>> * Eda FLORAT <edaflorat_at_gmail.com>:
>>> 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
Received on Sat Jan 15 2011 - 01:37:00 MST

This archive was generated by hypermail 2.2.0 : Sat Jan 15 2011 - 12:00:03 MST