Re: QUestion about memory footprint of GTK.



On Solaris I get:

pmap `pgrep gnome-panel` | grep atk
FB0F0000 96K r-x-- /usr/lib/libatk-1.0.so.0.1114.0
FB116000 16K rwx-- /usr/lib/libatk-1.0.so.0.1114.0

The 16K is the data segment used by libatk. libatk provides accessibility framework for GTK.

Padraig

David Moffatt wrote:

Hi all,

I am a newbie working on reducing the memory footprint of GTK applications for use on a cell phone. Does anyone know what some of this is? Here is a pmap

Of a trivial gtk app (think hello world with buttons).

These appear to be memory segments with no permissions. They are too big to be guard pages.

40507000 28K ----- /usr/lib/libatk-1.0.so.0.1114.0

4054f000 28K ----- /usr/lib/libpangox-1.0.so.0.801.1

40597000 32K ----- /usr/lib/libpangoft2-1.0.so.0.801.1

There are also anon segments. I have not looked into them yet but I suspect they are malloc()’d or memory mapped files.

/bin # pmap 1125

1125: bar:com.access.apps.duck

00008000 12K r-x-- /opt/alp/bin/alp_NativeProcessLaunchpad_D

00013000 4K rw--- /opt/alp/bin/alp_NativeProcessLaunchpad_D

00014000 536K rwx-- [ anon ]

40000000 84K r-x-- /lib/ld-2.3.5.so

40015000 8K rw--- [ anon ]

4001c000 4K r---- /lib/ld-2.3.5.so

4001d000 4K rw--- /lib/ld-2.3.5.so

4001e000 4096K r-x-- /usr/lib/libgtk-x11-2.0.so.0.600.9

4041e000 52K rw--- /usr/lib/libgtk-x11-2.0.so.0.600.9

4042b000 12K rw--- [ anon ]

4042e000 688K r-x-- /usr/lib/libgdk-x11-2.0.so.0.600.9

404da000 32K ----- /usr/lib/libgdk-x11-2.0.so.0.600.9

404e2000 16K rw--- /usr/lib/libgdk-x11-2.0.so.0.600.9

404e6000 132K r-x-- /usr/lib/libatk-1.0.so.0.1114.0

40507000 28K ----- /usr/lib/libatk-1.0.so.0.1114.0

4050e000 8K rw--- /usr/lib/libatk-1.0.so.0.1114.0

40510000 124K r-x-- /usr/lib/libgdk_pixbuf-2.0.so.0.600.9

4052f000 32K ----- /usr/lib/libgdk_pixbuf-2.0.so.0.600.9

40537000 4K rw--- /usr/lib/libgdk_pixbuf-2.0.so.0.600.9

40538000 32K r-x-- /usr/lib/libpangoxft-1.0.so.0.801.1

40540000 4K rw--- /usr/lib/libpangoxft-1.0.so.0.801.1

40541000 56K r-x-- /usr/lib/libpangox-1.0.so.0.801.1

4054f000 28K ----- /usr/lib/libpangox-1.0.so.0.801.1

40556000 4K rw--- /usr/lib/libpangox-1.0.so.0.801.1

40557000 4K rw--- [ anon ]

40558000 252K r-x-- /usr/lib/libpangoft2-1.0.so.0.801.1

40597000 32K ----- /usr/lib/libpangoft2-1.0.so.0.801.1

4059f000 4K rw--- /usr/lib/libpangoft2-1.0.so.0.801.1

405a0000 300K r-x-- /usr/lib/libpango-1.0.so.0.801.1

405eb000 28K ----- /usr/lib/libpango-1.0.so.0.801.1

405f2000 8K rw--- /usr/lib/libpango-1.0.so.0.801.1

405f4000 312K r-x-- /usr/lib/libgobject-2.0.so.0.800.6

40642000 28K ----- /usr/lib/libgobject-2.0.so.0.800.6

40649000 8K rw--- /usr/lib/libgobject-2.0.so.0.800.6

4064b000 12K r-x-- /usr/lib/libgmodule-2.0.so.0.800.6

4064e000 28K ----- /usr/lib/libgmodule-2.0.so.0.800.6

40655000 4K rw--- /usr/lib/libgmodule-2.0.so.0.800.6

40656000 8K r-x-- /lib/libdl-2.3.5.so

40658000 28K ----- /lib/libdl-2.3.5.so

4065f000 4K r---- /lib/libdl-2.3.5.so

40660000 4K rw--- /lib/libdl-2.3.5.so

40661000 728K r-x-- /usr/lib/libglib-2.0.so.0.800.6

40717000 28K ----- /usr/lib/libglib-2.0.so.0.800.6

4071e000 8K rw--- /usr/lib/libglib-2.0.so.0.800.6

40720000 4K rw--- [ anon ]

40721000 100K r-x-- /usr/lib/libglade-2.0.so.0.0.7

4073a000 32K ----- /usr/lib/libglade-2.0.so.0.0.7

40742000 4K rw--- /usr/lib/libglade-2.0.so.0.0.7

40743000 1716K r-x-- /usr/lib/libxml2.so.2.6.23

408f0000 32K ----- /usr/lib/libxml2.so.2.6.23

408f8000 32K rw--- /usr/lib/libxml2.so.2.6.23

40900000 4K rw--- [ anon ]

40901000 668K r-x-- /lib/libm-2.3.5.so

409a8000 28K ----- /lib/libm-2.3.5.so

409af000 4K r---- /lib/libm-2.3.5.so

409b0000 4K rw--- /lib/libm-2.3.5.so

409b1000 448K r-x-- /usr/lib/libsqlite3.so.0.8.6

40a21000 28K ----- /usr/lib/libsqlite3.so.0.8.6

40a28000 8K rw--- /usr/lib/libsqlite3.so.0.8.6

40a2a000 56K r-x-- /lib/libpthread-0.10.so

40a38000 28K ----- /lib/libpthread-0.10.so

40a3f000 4K r---- /lib/libpthread-0.10.so

40a40000 4K rw--- /lib/libpthread-0.10.so

40a41000 264K rw--- [ anon ]

40a83000 24K r-x-- /opt/alp/lib/libalp_appserver.so

40a89000 28K ----- /opt/alp/lib/libalp_appserver.so

40a90000 4K rw--- /opt/alp/lib/libalp_appserver.so

40a91000 4K rw--- [ anon ]

40a92000 64K r-x-- /opt/alp/lib/libalp_ipc.so

40aa2000 4K rw--- /opt/alp/lib/libalp_ipc.so

40aa3000 152K r-x-- /opt/alp/lib/libalp_packagemgr.so

40ac9000 28K ----- /opt/alp/lib/libalp_packagemgr.so

40ad0000 4K rw--- /opt/alp/lib/libalp_packagemgr.so

40ad1000 76K r-x-- /opt/alp/lib/libalp_max.so

40ae4000 32K ----- /opt/alp/lib/libalp_max.so

40aec000 4K rw--- /opt/alp/lib/libalp_max.so

40aed000 832K r-x-- /lib/libstdc++.so.6.0.3

40bbd000 28K ----- /lib/libstdc++.so.6.0.3

40bc4000 24K rw--- /lib/libstdc++.so.6.0.3

40bca000 24K rw--- [ anon ]

40bd0000 36K r-x-- /lib/libgcc_s.so.1

40bd9000 28K ----- /lib/libgcc_s.so.1

40be0000 4K rw--- /lib/libgcc_s.so.1

40be1000 1060K r-x-- /lib/libc-2.3.5.so

40cea000 32K ----- /lib/libc-2.3.5.so

40cf2000 8K r---- /lib/libc-2.3.5.so

40cf4000 12K rw--- /lib/libc-2.3.5.so

40cf7000 12K rw--- [ anon ]

40cfa000 36K r-x-- /opt/alp/lib/libalp_traces.so

40d03000 28K ----- /opt/alp/lib/libalp_traces.so

40d0a000 4K rw--- /opt/alp/lib/libalp_traces.so

40d0b000 4K rw--- [ anon ]

40d0c000 1380K r-x-- /usr/lib/libX11.so.6.2.0

40e65000 28K ----- /usr/lib/libX11.so.6.2.0

40e6c000 20K rw--- /usr/lib/libX11.so.6.2.0

40e71000 12K r-x-- /usr/lib/libXrandr.so.2.0.0

40e74000 32K ----- /usr/lib/libXrandr.so.2.0.0

40e7c000 4K rw--- /usr/lib/libXrandr.so.2.0.0

40e7d000 76K r-x-- /usr/lib/libXext.so.6.4.0

40e90000 32K ----- /usr/lib/libXext.so.6.4.0

40e98000 4K rw--- /usr/lib/libXext.so.6.4.0

40e99000 108K r-x-- /usr/lib/libXft.so.2.1.2

40eb4000 28K ----- /usr/lib/libXft.so.2.1.2

40ebb000 4K rw--- /usr/lib/libXft.so.2.1.2

40ebc000 52K r-x-- /usr/lib/libXrender.so.1.3.0

40ec9000 28K ----- /usr/lib/libXrender.so.1.3.0

40ed0000 4K rw--- /usr/lib/libXrender.so.1.3.0

40ed1000 4K rw--- [ anon ]

40ed2000 220K r-x-- /usr/lib/libfontconfig.so.1.0.4

40f09000 32K ----- /usr/lib/libfontconfig.so.1.0.4

40f11000 20K rw--- /usr/lib/libfontconfig.so.1.0.4

40f16000 4K rw--- [ anon ]

40f17000 632K r-x-- /usr/lib/libfreetype.so.6.3.8

40fb5000 28K ----- /usr/lib/libfreetype.so.6.3.8

40fbc000 12K rw--- /usr/lib/libfreetype.so.6.3.8

40fbf000 112K r-x-- /usr/lib/libz.so.1.2.2

40fdb000 28K ----- /usr/lib/libz.so.1.2.2

40fe2000 4K rw--- /usr/lib/libz.so.1.2.2

40fe3000 20K r-x-- /usr/lib/libXfixes.so.3.0.0

40fe8000 28K ----- /usr/lib/libXfixes.so.3.0.0

40fef000 4K rw--- /usr/lib/libXfixes.so.3.0.0

40ff0000 44K r-x-- /usr/lib/libXcursor.so.1.0.2

40ffb000 32K ----- /usr/lib/libXcursor.so.1.0.2

41003000 4K rw--- /usr/lib/libXcursor.so.1.0.2

41004000 4K rw--- [ anon ]

41005000 204K r-x-- /usr/lib/libexpat.so.0.5.0

41038000 28K ----- /usr/lib/libexpat.so.0.5.0

4103f000 8K rw--- /usr/lib/libexpat.so.0.5.0

41041000 12K r-x-- /opt/alp/lib/libalp_notifymgr.so

41044000 28K ----- /opt/alp/lib/libalp_notifymgr.so

4104b000 4K rw--- /opt/alp/lib/libalp_notifymgr.so

4104c000 8K r-x-- /opt/alp/lib/libalp_volumesvcs.so

4104e000 32K ----- /opt/alp/lib/libalp_volumesvcs.so

41056000 4K rw--- /opt/alp/lib/libalp_volumesvcs.so

41057000 12K r-x-- /usr/lib/libXau.so.6.0.0

4105a000 28K ----- /usr/lib/libXau.so.6.0.0

41061000 4K rw--- /usr/lib/libXau.so.6.0.0

41062000 20K r-x-- /usr/lib/libXdmcp.so.6.0.0

41067000 28K ----- /usr/lib/libXdmcp.so.6.0.0

4106e000 8K rw--- /usr/lib/libXdmcp.so.6.0.0

41070000 8K rw--- [ anon ]

41072000 8K r-x-- /opt/alp/packages/com.access.apps.duck/libalp_duck.so

41074000 28K ----- /opt/alp/packages/com.access.apps.duck/libalp_duck.so

4107b000 4K rw--- /opt/alp/packages/com.access.apps.duck/libalp_duck.so

4107c000 28K r-x-- /lib/libnss_compat-2.3.5.so

41083000 28K ----- /lib/libnss_compat-2.3.5.so

4108a000 4K r---- /lib/libnss_compat-2.3.5.so

4108b000 4K rw--- /lib/libnss_compat-2.3.5.so

4108c000 64K r-x-- /lib/libnsl-2.3.5.so

4109c000 28K ----- /lib/libnsl-2.3.5.so

410a3000 4K r---- /lib/libnsl-2.3.5.so

410a4000 4K rw--- /lib/libnsl-2.3.5.so

410a5000 8K rw--- [ anon ]

410a7000 36K r-x-- /lib/libnss_nis-2.3.5.so

410b0000 28K ----- /lib/libnss_nis-2.3.5.so

410b7000 4K r---- /lib/libnss_nis-2.3.5.so

410b8000 4K rw--- /lib/libnss_nis-2.3.5.so

410b9000 36K r-x-- /lib/libnss_files-2.3.5.so

410c2000 28K ----- /lib/libnss_files-2.3.5.so

410c9000 4K r---- /lib/libnss_files-2.3.5.so

410ca000 4K rw--- /lib/libnss_files-2.3.5.so

410cb000 8K r-x-- /usr/lib/gconv/ISO8859-1.so

410cd000 28K ----- /usr/lib/gconv/ISO8859-1.so

410d4000 4K r---- /usr/lib/gconv/ISO8859-1.so

410d5000 4K rw--- /usr/lib/gconv/ISO8859-1.so

410d7000 16K r-x-- /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so

410db000 28K ----- /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so

410e2000 4K rw--- /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so

410e3000 204K r-x-- /usr/lib/libjpeg.so.62.0.0

41116000 28K ----- /usr/lib/libjpeg.so.62.0.0

4111d000 4K rw--- /usr/lib/libjpeg.so.62.0.0

4111e000 8K r-x-- /usr/lib/pango/1.4.0/modules/pango-basic-fc.so

41120000 28K ----- /usr/lib/pango/1.4.0/modules/pango-basic-fc.so

41127000 4K rw--- /usr/lib/pango/1.4.0/modules/pango-basic-fc.so

41128000 68K r---- /usr/lib/X11/fonts/TTF/luxisr.ttf

41139000 192K rw-s- [ shmid=0x30000 ]

bea04000 84K rwx-- [ stack ]

Thanks in advance.

David Moffatt, david moffatt palmsource com <mailto:david moffatt palmsource com>.

------------------------------------------------------------------------

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]