Menu [hide]
  Home
  News
  Forums
  Blogs
Google

Forum: Ideas & Requirements

Forums->Ideas & Requirements->huge memory usage

zzy
huge memory usage


just built disko and morphine for an embedded device, with roughly 100MB ram available.

Turns out morphine is using >100MB, which is probably the reason why it doesn't do much (apart from showing the Morphine splash screen on the framebuffer)

Tried to run disko tutorial 01 instead, just a hello world message, and even that used 118MB of ram.

Didn't you claim that disko is a framework for embedded devices?

 
on: 10.Jan 2009 [18:51 UTC] score: 0.00 reads: 1823

Posted messages


author message
Bere
Germany
Re: huge memory usage
on: 12.Jan 2009 [07:14 UTC] score: 0.00
hi zzy,

is tested the memory usage of Morphine.TV and of the Disko tutorial 01 and i can't verify your results.

Tutorial 01:
I started the tutorial 01 and if you compiled Disko with Alsa, Xine and libcrypt support you will see, that all dependencies are loaded. In my case 10 Mb are used by the tutorial and 45 Mb are used by dependent libraries. Please rebuild Disko and try to disable all libs which are not required.

Morphine.TV:
Morphine.TV is a media center showcase and was designed to run on typical set-top boxes. We ported and tested Morphine.TV on different devices which had minimum 256 MB RAM. We need a lot of memory for example to manage the media meta data, like EPG information, weather information, etc.

Please restart your Tutorial 01 test and maybe you can send a short memory report (for example a pmap report).

regards

Guido

> just built disko and morphine for an embedded device, with roughly 100MB ram available.
>
> Turns out morphine is using >100MB, which is probably the reason why it doesn't do much (apart from showing the Morphine splash screen on the framebuffer)
>
> Tried to run disko tutorial 01 instead, just a hello world message, and even that used 118MB of ram.
>
> Didn't you claim that disko is a framework for embedded devices?


author message
zzy
Re: huge memory usage
on: 12.Jan 2009 [07:59 UTC] score: 0.00
Hi Guido,

this is a pmap dump of ./01, most memory is consumed by anon , not sure how to tell which part is to blame?

text
744: ./01
Address Kbytes RSS Anon Locked Mode Mapping
00400000 8 - - - r-x-- 01
00411000 4 - - - rw--- 01
00412000 264 - - - rwx-- anon
2aaa8000 132 - - - r-x-- ld-2.9.so
2aac9000 12 - - - rw--- anon
2aacf000 28 - - - rw--- anon
2aad9000 4 - - - r---- ld-2.9.so
2aada000 4 - - - rw--- ld-2.9.so
2aadc000 4 - - - r-x-- libmmsinfo.so
2aadd000 60 - - - ----- libmmsinfo.so
2aaec000 4 - - - rw--- libmmsinfo.so
2aaf0000 196 - - - r-x-- libmmsconfig.so
2ab21000 60 - - - ----- libmmsconfig.so
2ab30000 24 - - - rw--- libmmsconfig.so
2ab38000 192 - - - r-x-- libmmstools.so
2ab68000 60 - - - ----- libmmstools.so
2ab77000 24 - - - rw--- libmmstools.so
2ab80000 1696 - - - r-x-- libmmsgui.so
2ad28000 60 - - - ----- libmmsgui.so
2ad37000 192 - - - rw--- libmmsgui.so
2ad68000 432 - - - r-x-- libmmsinput.so
2add4000 64 - - - ----- libmmsinput.so
2ade4000 52 - - - rw--- libmmsinput.so
2adf4000 92 - - - r-x-- libmmsbase.so
2ae0b000 64 - - - ----- libmmsbase.so
2ae1b000 12 - - - rw--- libmmsbase.so
2ae20000 196 - - - r-x-- libmmscore.so
2ae51000 64 - - - ----- libmmscore.so
2ae61000 24 - - - rw--- libmmscore.so
2ae68000 128 - - - r-x-- libmmsmedia.so
2ae88000 16 - - - rw--- libmmsmedia.so
2ae8c000 1348 - - - r-x-- libxml2.so.2.7.2
2afdd000 64 - - - ----- libxml2.so.2.7.2
2afed000 24 - - - rw--- libxml2.so.2.7.2
2aff4000 244 - - - r-x-- libcurl.so.4.1.0
2b031000 64 - - - ----- libcurl.so.4.1.0
2b041000 4 - - - rw--- libcurl.so.4.1.0
2b044000 20 - - - r-x-- libsigc-2.0.so.0.0.0
2b049000 60 - - - ----- libsigc-2.0.so.0.0.0
2b058000 4 - - - rw--- libsigc-2.0.so.0.0.0
2b05c000 168 - - - r-x-- libpng12.so.0.31.0
2b086000 64 - - - ----- libpng12.so.0.31.0
2b096000 4 - - - rw--- libpng12.so.0.31.0
2b098000 516 - - - r-x-- libdirectfb-1.2.so.0.3.0
2b119000 64 - - - ----- libdirectfb-1.2.so.0.3.0
2b129000 8 - - - rw--- libdirectfb-1.2.so.0.3.0
2b12c000 892 - - - r-x-- libasound.so.2.0.0
2b20b000 60 - - - ----- libasound.so.2.0.0
2b21a000 20 - - - rw--- libasound.so.2.0.0
2b220000 328 - - - r-x-- libxine.so.1.24.0
2b272000 64 - - - ----- libxine.so.1.24.0
2b282000 16 - - - rw--- libxine.so.1.24.0
2b286000 20 - - - rw--- anon
2b28c000 500 - - - r-x-- libsqlite3.so.0.8.6
2b309000 60 - - - ----- libsqlite3.so.0.8.6
2b318000 8 - - - rw--- libsqlite3.so.0.8.6
2b31c000 36 - - - r-x-- libfusion-1.2.so.0.3.0
2b325000 60 - - - ----- libfusion-1.2.so.0.3.0
2b334000 4 - - - rw--- libfusion-1.2.so.0.3.0
2b338000 96 - - - r-x-- libdirect-1.2.so.0.3.0
2b350000 64 - - - ----- libdirect-1.2.so.0.3.0
2b360000 4 - - - rw--- libdirect-1.2.so.0.3.0
2b364000 92 - - - r-x-- libpthread-2.9.so
2b37b000 60 - - - ----- libpthread-2.9.so
2b38a000 4 - - - r---- libpthread-2.9.so
2b38b000 4 - - - rw--- libpthread-2.9.so
2b38c000 8 - - - rw--- anon
2b390000 264 - - - r-x-- libssl.so.0.9.8
2b3d2000 60 - - - ----- libssl.so.0.9.8
2b3e1000 16 - - - rw--- libssl.so.0.9.8
2b3e8000 820 - - - r-x-- libstdc++.so.6.0.8
2b4b5000 64 - - - ----- libstdc++.so.6.0.8
2b4c5000 80 - - - r---- libstdc++.so.6.0.8
2b4d9000 12 - - - rw--- libstdc++.so.6.0.8
2b4dc000 24 - - - rw--- anon
2b4e4000 836 - - - r-x-- libm-2.9.so
2b5b5000 60 - - - ----- libm-2.9.so
2b5c4000 4 - - - r---- libm-2.9.so
2b5c5000 4 - - - rw--- libm-2.9.so
2b5c8000 64 - - - r-x-- libgcc_s.so.1
2b5d8000 4 - - - rw--- libgcc_s.so.1
2b5dc000 1400 - - - r-x-- libc-2.9.so
2b73a000 60 - - - ----- libc-2.9.so
2b749000 32 - - - r---- libc-2.9.so
2b751000 8 - - - rw--- libc-2.9.so
2b753000 12 - - - rw--- anon
2b758000 8 - - - r-x-- libdl-2.9.so
2b75a000 60 - - - ----- libdl-2.9.so
2b769000 4 - - - r---- libdl-2.9.so
2b76a000 4 - - - rw--- libdl-2.9.so
2b76c000 72 - - - r-x-- libz.so.1.2.3
2b77e000 64 - - - ----- libz.so.1.2.3
2b78e000 4 - - - rw--- libz.so.1.2.3
2b790000 32 - - - r-x-- librt-2.9.so
2b798000 60 - - - ----- librt-2.9.so
2b7a7000 4 - - - r---- librt-2.9.so
2b7a8000 4 - - - rw--- librt-2.9.so
2b7ac000 8 - - - r-x-- libts-1.0.so.0.0.0
2b7ae000 64 - - - ----- libts-1.0.so.0.0.0
2b7be000 4 - - - rw--- libts-1.0.so.0.0.0
2b7c0000 80 - - - r-x-- libresolv-2.9.so
2b7d4000 60 - - - ----- libresolv-2.9.so
2b7e3000 4 - - - r---- libresolv-2.9.so
2b7e4000 4 - - - rw--- libresolv-2.9.so
2b7e5000 8 - - - rw--- anon
2b7e8000 88 - - - r-x-- libnsl-2.9.so
2b7fe000 60 - - - ----- libnsl-2.9.so
2b80d000 4 - - - r---- libnsl-2.9.so
2b80e000 4 - - - rw--- libnsl-2.9.so
2b80f000 8 - - - rw--- anon
2b814000 1344 - - - r-x-- libcrypto.so.0.9.8
2b964000 60 - - - ----- libcrypto.so.0.9.8
2b973000 84 - - - rw--- libcrypto.so.0.9.8
2b988000 76 - - - rw--- anon
2b99c000 52 - - - r-x-- libdirectfb_fbdev.so
2b9a9000 60 - - - ----- libdirectfb_fbdev.so
2b9b8000 4 - - - rw--- libdirectfb_fbdev.so
2b9bc000 40 - - - r-x-- libsysfs.so.2.0.1
2b9c6000 60 - - - ----- libsysfs.so.2.0.1
2b9d5000 4 - - - rw--- libsysfs.so.2.0.1
2b9d6000 4 - - - ----- anon
2b9d7000 8188 - - - rwx-- anon
2c1d8000 16384 - - - rw-s- 0
2d1d8000 12 - - - r-x-- libdirectfb_keyboard.so
2d1db000 60 - - - ----- libdirectfb_keyboard.so
2d1ea000 4 - - - rw--- libdirectfb_keyboard.so
2d1ec000 36 - - - r-x-- libdirectfbwm_default.so
2d1f5000 60 - - - ----- libdirectfbwm_default.so
2d204000 4 - - - rw--- libdirectfbwm_default.so
2d208000 16 - - - r-x-- libidirectfbfont_ft2.so
2d20c000 60 - - - ----- libidirectfbfont_ft2.so
2d21b000 4 - - - rw--- libidirectfbfont_ft2.so
2d250000 16 - - - r-x-- libdirectfb_linux_input.so
2d254000 64 - - - ----- libdirectfb_linux_input.so
2d264000 4 - - - rw--- libdirectfb_linux_input.so
2d265000 4 - - - ----- anon
2d266000 8188 - - - rwx-- anon
2da65000 4 - - - ----- anon
2da66000 8188 - - - rwx-- anon
2e265000 4 - - - ----- anon
2e266000 8188 - - - rwx-- anon
2ea65000 4 - - - ----- anon
2ea66000 8188 - - - rwx-- anon
2f265000 4 - - - ----- anon
2f266000 8188 - - - rwx-- anon
2fa65000 4 - - - ----- anon
2fa66000 8188 - - - rwx-- anon
30265000 1624 - - - rw--- anon
303fb000 4 - - - ----- anon
303fc000 8188 - - - rwx-- anon
30bfb000 4 - - - ----- anon
30bfc000 8188 - - - rwx-- anon
313fb000 1624 - - - rw--- anon
31594000 516 - - - r-x-- libfreetype.so.6.3.17
31615000 60 - - - ----- libfreetype.so.6.3.17
31624000 16 - - - rw--- libfreetype.so.6.3.17
31628000 300 - - - r---- DejaVuSansMono?.ttf
31673000 4 - - - ----- anon
31674000 8188 - - - rwx-- anon
31e73000 1624 - - - rw--- anon
7fb50000 84 - - - rwx-- stack

total kB 120040 - - -


sorry, cannot find a way to keep the correct formatting here, so please find the a dump with the pmap output attached.

attachment pmap.txt (10.44 Kb)


author message
sxs
Re: huge memory usage
on: 12.Jan 2009 [09:35 UTC] score: 0.00
hi zzy,

we have no reasonable explanation for the 8188 anon blocks. These seem to consume most of the memory. Could you tell us the DirectFB version you are using, and post us the contents of the diskorc / morphinerc?

have fun
Stefan




author message
zzy
Re: huge memory usage
on: 12.Jan 2009 [11:22 UTC] score: 0.00
I'm using directfb 1.2.3.
And please find the diskorc.xml attached

attachment diskorc.xml (2.11 Kb)

author message
Bere
Germany
Re: huge memory usage
on: 12.Jan 2009 [14:38 UTC] score: 0.00
hi zzy,

we can reproduce the problem and we're going to analyse it. it seems that we have different results with different DirectFB versions.

This will take a while so please be patient and stay tuned. We will post the results as soon as possible.

regards

bere


author message
zzy
Re: huge memory usage
on: 12.Jan 2009 [17:53 UTC] score: 0.00
ok, good news that at least it's reproducable.
In the meantime I could try to move to a different directfb version, do you have a prefered version?



Page: 1/1

Show posts: