Dynamic symbol table

Lubos Lunak l.lunak at suse.cz
Wed Jul 21 09:58:28 CEST 2004


On Tuesday 20 of July 2004 18:37, Karl Vogel wrote:
> Lubos Lunak wrote:
> > On Friday 16 of July 2004 16:56, Karl Vogel wrote:
> >> Lubos Lunak <l.lunak at suse.cz> wrote in
> >>
> Well I had a look at some load patters... ie starting kedit and directly
> stopping it gives pattern as shown below:
>
> X 08048520        0 X 008 paddr 08048000 acc 08048520 pgoff 00000000 foff
> 00000000 fnam=/usr/bin/kedit A 002498a3        0 X 002 paddr 00432000 acc
> 004323f4 pgoff 00000000 foff 00000000 fnam=/usr/lib/libkdeinit_kedit.so A
> 002498ba     8192 X 002 paddr 00434000 acc 004342ec pgoff 00000000 foff
> 00002000 fnam=/usr/lib/libkdeinit_kedit.so A 002498ba     4096 X 002 paddr
> 00433000 acc 00433a5c pgoff 00000000 foff 00001000
> fnam=/usr/lib/libkdeinit_kedit.so

 How did you get this? Is it some profiling tool? I don't see anything similar 
in /proc.

> > $ 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

 Not everything from the file is supposed to be loaded when executing it. 
There may be debug data or similar. If you run 'objdump --headers' on the 
file, find first sections that is not marked LOAD, and its file offset column 
gives in hex how much of the file is actually loaded. (If you just strip the 
file it gives almost the same number.)

>
> >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. Something I'm planning on looking into after the symbol pruning
> stuff.

 Cool.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/


More information about the Kde-optimize mailing list