Dynamic symbol table

Michael Matz matz at kde.org
Wed Jul 21 15:56:39 CEST 2004


Hi,

On Tue, 20 Jul 2004, Karl Vogel wrote:

> $ ls -l /usr/bin/kedit
> -rwxr-xr-x  1 root root 32620 May  6 19:03 /usr/bin/kedit
> [kvo at localhost kvo]$ ls -l /usr/lib/libkdeinit_kedit.so
> -rwxr-xr-x  1 root root 151040 May  6 19:03 /usr/lib/libkdeinit_kedit.so
> 
> From /usr/bin/kedit only 1 page is executed/accessed (x86 pagesize = 4Kb)
> and from the libkdeinit_kedit.so 28 pages are executed/accessed (=112Kb)
> 
> I'm not sure if loading 151040 bytes instead of 114688 bytes is really 
> hurting.

The madvise patch to ld.so madivses exactly those pages which are also 
mmap'ed.  I.e. those which contain executable code and data.  It does not 
load the whole file.

> Something I'm planning on looking into after the symbol pruning
> stuff.


Ciao,
Michael.


More information about the Kde-optimize mailing list