Re: Dynamic symbol table

Michael Matz <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
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@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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.