> looks like fbdev is included in the map so I assume that the ram on my
> Rage128 (16MB) is included in the memory usage. I can't make sense of what
> the columns are in this map file so I would appreciate pointers on this one.
O.K. - I'll analyze it here for you:
014e3000-014e7000 r-xp 00000000 03:0a 132241
/usr/local/lib/ggi/default/linear_32.so
014e7000-014f3000 ---p 00004000 03:0a 132241
/usr/local/lib/ggi/default/linear_32.so
014f3000-014f7000 rwxp 00000000 03:0a 132241
/usr/local/lib/ggi/default/linear_32.so
These are the segments that make up the linear32 rendering lib. As you can
see, they extend from 014e3000 up to 014f7000 total. This yields a RAM usage
for the linear32 lib of 0x14000 Bytes or 80k.
01507000-01509000 r-xp 00000000 03:0a 132214 /usr/local/lib/ggi/default/color.so
01509000-01517000 ---p 00002000 03:0a 132214 /usr/local/lib/ggi/default/color.so
01517000-01519000 rwxp 00000000 03:0a 132214 /usr/local/lib/ggi/default/color.so
The color lib uses 0x12000 Bytes or 72k.
01529000-0152d000 r-xp 00000000 03:0a 131747 /usr/local/lib/ggi/default/stubs.so
0152d000-01539000 ---p 00004000 03:0a 131747 /usr/local/lib/ggi/default/stubs.so
01539000-0153e000 rwxp 00000000 03:0a 131747 /usr/local/lib/ggi/default/stubs.so
The stubs are 0x15000==84k.
0154e000-01551000 r-xp 00000000 03:0a 786348 /usr/local/lib/ggi/input/mouse.so
01551000-0155e000 ---p 00003000 03:0a 786348 /usr/local/lib/ggi/input/mouse.so
0155e000-01562000 rwxp 00000000 03:0a 786348 /usr/local/lib/ggi/input/mouse.so
Mouse driver: 0x14000=80k.
01572000-01575000 r-xp 00000000 03:0a 786350
/usr/local/lib/ggi/input/linux_mouse.so
01575000-01582000 ---p 00003000 03:0a 786350
/usr/local/lib/ggi/input/linux_mouse.so
01582000-01586000 rwxp 00000000 03:0a 786350
/usr/local/lib/ggi/input/linux_mouse.so
Linux Mouse interface: 0x14000=80k.
01596000-01599000 r-xp 00000000 03:0a 786418 /usr/local/lib/ggi/input/linux_kbd.so
01599000-015a6000 ---p 00003000 03:0a 786418 /usr/local/lib/ggi/input/linux_kbd.so
015a6000-015aa000 rwxp 00000000 03:0a 786418 /usr/local/lib/ggi/input/linux_kbd.so
Linux keyboard interface 80k.
015ba000-015bc000 r-xp 00000000 03:0a 279379 /usr/local/lib/ggi/display/linvtsw.so
015bc000-015ca000 ---p 00002000 03:0a 279379 /usr/local/lib/ggi/display/linvtsw.so
015ca000-015cd000 rwxp 00000000 03:0a 279379 /usr/local/lib/ggi/display/linvtsw.so
Vt-switching support 76k.
015dd000-015e1000 r-xp 00000000 03:0a 279329 /usr/local/lib/ggi/display/fbdev.so
015e1000-015ed000 ---p 00004000 03:0a 279329 /usr/local/lib/ggi/display/fbdev.so
015ed000-015f2000 rwxp 00000000 03:0a 279329 /usr/local/lib/ggi/display/fbdev.so
015f2000-015f3000 rwxp 00000000 00:00 0
Framebuffer driver 84k+4k malloced stuff.
That makes a total of 640k for the sublibs.
01603000-01609000 r-xp 00000000 03:0a 851905 /usr/local/lib/libgii.so.0.0.7
01609000-01613000 ---p 00006000 03:0a 851905 /usr/local/lib/libgii.so.0.0.7
01613000-01619000 rwxp 00000000 03:0a 851905 /usr/local/lib/libgii.so.0.0.7
01619000-0161a000 rwxp 00000000 00:00 0
LibGII: 0x17000=92k
0162a000-0170a000 r-xp 00000000 03:0a 277992 /lib/libc-2.1.3.so
0170a000-0172c000 rwxp 000d0000 03:0a 277992 /lib/libc-2.1.3.so
0172c000-01731000 rwxp 00000000 00:00 0
Libc: 0x107000=263*4=526*2=1052k
01741000-01749000 r-xp 00000000 03:0a 851621 /usr/local/lib/libggi.so.2.0.0
01749000-01751000 ---p 00008000 03:0a 851621 /usr/local/lib/libggi.so.2.0.0
01751000-0175a000 rwxp 00000000 03:0a 851621 /usr/local/lib/libggi.so.2.0.0
LibGGI: 0x19000=100k
0176a000-0176e000 r-xp 00000000 03:0a 851904 /usr/local/lib/libgg.so.0.0.7
0176e000-0177a000 ---p 00004000 03:0a 851904 /usr/local/lib/libgg.so.0.0.7
0177a000-0177f000 rwxp 00000000 03:0a 851904 /usr/local/lib/libgg.so.0.0.7
0177f000-01780000 rwxp 00000000 00:00 0
LibGG: 0x16000=88k
Total for the LibGGI main system libs:280k
Or together with the renderers: 920k.
01790000-01793000 r-xp 00000000 03:0a 278001 /lib/libdl-2.1.3.so
01793000-017a0000 ---p 00003000 03:0a 278001 /lib/libdl-2.1.3.so
017a0000-017a3000 rwxp 00000000 03:0a 278001 /lib/libdl-2.1.3.so
Dynamic loader: 76k.
017b3000-017d6000 r-xp 00000000 03:0a 278003 /lib/libm-2.1.3.so
017d6000-017e3000 ---p 00023000 03:0a 278003 /lib/libm-2.1.3.so
017e3000-017f0000 rwxp 00020000 03:0a 278003 /lib/libm-2.1.3.so
Math lib:0x3c000=60*4k=240k
Libs total=1368k
01800000-019c1000 r-xp 00000000 03:0a 215286
/home/davidc/xggi-1.6.1/xc/programs/Xserver/XGGI
019d0000-019da000 rwxp 001c0000 03:0a 215286
/home/davidc/xggi-1.6.1/xc/programs/Xserver/XGGI
019da000-01b4d000 rwxp 00000000 00:00 0
The XGGI executable itself and some RAM it uses:
(0x1c1000=449*4k=1796k)+(0xa000=40k)+(0x173000=371*4k=1484k)=3310k
30000000-30014000 r-xp 00000000 03:0a 277987 /lib/ld-2.1.3.so
30014000-30015000 rw-p 00000000 00:00 0
3001b000-3001c000 rw-p 00000000 00:00 0
30023000-30027000 rwxp 00013000 03:0a 277987 /lib/ld-2.1.3.so
Dynamic linker: 80k+4k+4k+16k=104k
30027000-31027000 rw-s 94000000 03:0a 997675 /dev/fb0
16M Framebuffer.
31027000-3106d000 rw-p 00000000 00:00 0
3106f000-31228000 rw-p 00048000 00:00 0
Some heap: 280k+(0x1b9000=441*4k=1764k)
7fff4000-80000000 rwxp ffff5000 00:00 0
Stack: 48k.
So it looks like this:
XGGI itself with its own RAM usage gives about 5154k.
It uses standard libs including the dynamic linker for 1472k total.
LibGGI with all its renderers and stuff uses 920k.
You can pretty much safely assume, that much of the standard library stuff
is shared, as other processes will be using the same stuff. This yields
a total memory footprint for XGGI of about 6M.
> Hence XGGI (and ggi etc) would use about 5MB?
Yeah. About that.
CU, ANdy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =