Unknown memory blocks in gstreamer runtime memory map

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


Hej,

Jan Schmidt schrieb:
> <quote who="Gireesh Kumar M">
> 
>>    Hi,
>>     
>>    I'm running GStreamer, built with CodeSourcery arm toolchain [version:
>>    (CodeSourcery Sourcery G++ Lite 2007q3-51) 4.2.1], on TI's OMAP board. 
>>    The runtime memory consumption (as reported by 'top' command) is 38% on a
>>    128MB RAM (~48MBytes), which is very high. Verifying the memory map log
>>    (using pmap), I found the presence of some un-named memory blocks of size
>>    8188 KBytes which contributes major share to the 38% RAM usage (PMAP log
>>    attached). Is this a GStreamer bug or a memory leak? Can anyone help me to
>>    fix this?
> 
> I'd guess they're probably thread stacks. I think the default is 8MB, but
> you can make it smaller, possibly by using g_thread_create_full in the right
> places in GStreamer core (in gsttask.c somewhere)

We're using g_thread_pools for GstTasks and for g_thread_pools you can't change 
this.

Stefan

> 
> J.
> 
>>    Currently I'm using the mp3 playback with the following pipeline
>>    $gst-launch filesrc location=test.mp3 ! queue ! mad ! alsasink
>>     
>>    Any help on this is highly appreciated.
>>     
>>    Thank you,
>>    Gireesh
>>     
>>     
> 
>> /home/gst-gireesh/gstreamer/bin/gst-launch-0.10(320)
>> 00008000 (16 KB)       r-xp (00:0d 1669206)  /home/gst-gireesh/gstreamer/bin/gst-launch-0.10
>> 00013000 (4 KB)        rw-p (00:0d 1669206)  /home/gst-gireesh/gstreamer/bin/gst-launch-0.10
>> 00014000 (1452 KB)     rwxp (00:00 0)        [heap]
>> 40000000 (112 KB)      r-xp (00:0d 2502123)  /lib/ld-2.5.so
>> 4001c000 (24 KB)       rw-p (00:00 0)        
>> 40023000 (8 KB)        rw-p (00:0d 2502123)  /lib/ld-2.5.so
>> 40025000 (592 KB)      r-xp (00:0d 1102627)  /home/gst-gireesh/gstreamer/lib/libgstreamer-0.10.so.0.10.0
>> 400b9000 (32 KB)       ---p (00:0d 1102627)  /home/gst-gireesh/gstreamer/lib/libgstreamer-0.10.so.0.10.0
>> 400c1000 (12 KB)       rw-p (00:0d 1102627)  /home/gst-gireesh/gstreamer/lib/libgstreamer-0.10.so.0.10.0
>> 400c4000 (4 KB)        rw-p (00:00 0)        
>> 400c5000 (232 KB)      r-xp (00:0d 1102632)  /home/gst-gireesh/gstreamer/lib/libgobject-2.0.so.0.1200.4
>> 400ff000 (32 KB)       ---p (00:0d 1102632)  /home/gst-gireesh/gstreamer/lib/libgobject-2.0.so.0.1200.4
>> 40107000 (4 KB)        rw-p (00:0d 1102632)  /home/gst-gireesh/gstreamer/lib/libgobject-2.0.so.0.1200.4
>> 40108000 (12 KB)       r-xp (00:0d 1685611)  /home/gst-gireesh/gstreamer/lib/libgthread-2.0.so.0.1200.4
>> 4010b000 (32 KB)       ---p (00:0d 1685611)  /home/gst-gireesh/gstreamer/lib/libgthread-2.0.so.0.1200.4
>> 40113000 (4 KB)        rw-p (00:0d 1685611)  /home/gst-gireesh/gstreamer/lib/libgthread-2.0.so.0.1200.4
>> 40114000 (8 KB)        r-xp (00:0d 1685622)  /home/gst-gireesh/gstreamer/lib/libgmodule-2.0.so.0.1200.4
>> 40116000 (32 KB)       ---p (00:0d 1685622)  /home/gst-gireesh/gstreamer/lib/libgmodule-2.0.so.0.1200.4
>> 4011e000 (4 KB)        rw-p (00:0d 1685622)  /home/gst-gireesh/gstreamer/lib/libgmodule-2.0.so.0.1200.4
>> 4011f000 (8 KB)        r-xp (00:0d 2502098)  /lib/libdl-2.5.so
>> 40121000 (28 KB)       ---p (00:0d 2502098)  /lib/libdl-2.5.so
>> 40128000 (4 KB)        r--p (00:0d 2502098)  /lib/libdl-2.5.so
>> 40129000 (4 KB)        rw-p (00:0d 2502098)  /lib/libdl-2.5.so
>> 4012a000 (596 KB)      r-xp (00:0d 1685596)  /home/gst-gireesh/gstreamer/lib/libglib-2.0.so.0.1200.4
>> 401bf000 (32 KB)       ---p (00:0d 1685596)  /home/gst-gireesh/gstreamer/lib/libglib-2.0.so.0.1200.4
>> 401c7000 (4 KB)        rw-p (00:0d 1685596)  /home/gst-gireesh/gstreamer/lib/libglib-2.0.so.0.1200.4
>> 401c8000 (80 KB)       r-xp (00:0d 2502115)  /lib/libpthread-2.5.so
>> 401dc000 (28 KB)       ---p (00:0d 2502115)  /lib/libpthread-2.5.so
>> 401e3000 (4 KB)        r--p (00:0d 2502115)  /lib/libpthread-2.5.so
>> 401e4000 (4 KB)        rw-p (00:0d 2502115)  /lib/libpthread-2.5.so
>> 401e5000 (8 KB)        rw-p (00:00 0)        
>> 401e7000 (1100 KB)     r-xp (00:0d 2502090)  /lib/libc-2.5.so
>> 402fa000 (32 KB)       ---p (00:0d 2502090)  /lib/libc-2.5.so
>> 40302000 (4 KB)        r--p (00:0d 2502090)  /lib/libc-2.5.so
>> 40303000 (8 KB)        rw-p (00:0d 2502090)  /lib/libc-2.5.so
>> 40305000 (12 KB)       rw-p (00:00 0)        
>> 40308000 (24 KB)       r-xp (00:0d 2502114)  /lib/librt-2.5.so
>> 4030e000 (28 KB)       ---p (00:0d 2502114)  /lib/librt-2.5.so
>> 40315000 (4 KB)        r--p (00:0d 2502114)  /lib/librt-2.5.so
>> 40316000 (4 KB)        rw-p (00:0d 2502114)  /lib/librt-2.5.so
>> 40317000 (1160 KB)     r-xp (00:0d 1685687)  /home/gst-gireesh/gstreamer/lib/libxml2.so.2.6.26
>> 40439000 (32 KB)       ---p (00:0d 1685687)  /home/gst-gireesh/gstreamer/lib/libxml2.so.2.6.26
>> 40441000 (20 KB)       rw-p (00:0d 1685687)  /home/gst-gireesh/gstreamer/lib/libxml2.so.2.6.26
>> 40446000 (4 KB)        rw-p (00:00 0)        
>> 40447000 (888 KB)      r-xp (00:0d 1685378)  /home/gst-gireesh/gstreamer/lib/libiconv.so.2.4.0
>> 40525000 (28 KB)       ---p (00:0d 1685378)  /home/gst-gireesh/gstreamer/lib/libiconv.so.2.4.0
>> 4052c000 (4 KB)        rw-p (00:0d 1685378)  /home/gst-gireesh/gstreamer/lib/libiconv.so.2.4.0
>> 4052d000 (644 KB)      r-xp (00:0d 2502092)  /lib/libm-2.5.so
>> 405ce000 (28 KB)       ---p (00:0d 2502092)  /lib/libm-2.5.so
>> 405d5000 (4 KB)        r--p (00:0d 2502092)  /lib/libm-2.5.so
>> 405d6000 (4 KB)        rw-p (00:0d 2502092)  /lib/libm-2.5.so
>> 405d7000 (44 KB)       r-xp (00:0d 2502109)  /lib/libgcc_s.so.1
>> 405e2000 (28 KB)       ---p (00:0d 2502109)  /lib/libgcc_s.so.1
>> 405e9000 (4 KB)        rw-p (00:0d 2502109)  /lib/libgcc_s.so.1
>> 405ea000 (36 KB)       r-xp (00:0d 2502117)  /lib/libnss_files-2.5.so
>> 405f3000 (28 KB)       ---p (00:0d 2502117)  /lib/libnss_files-2.5.so
>> 405fa000 (4 KB)        r--p (00:0d 2502117)  /lib/libnss_files-2.5.so
>> 405fb000 (4 KB)        rw-p (00:0d 2502117)  /lib/libnss_files-2.5.so
>> 405fc000 (140 KB)      r-xp (00:0d 2717769)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstcoreelements.so
>> 4061f000 (28 KB)       ---p (00:0d 2717769)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstcoreelements.so
>> 40626000 (8 KB)        rw-p (00:0d 2717769)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstcoreelements.so
>> 40628000 (136 KB)      r-xp (00:0d 1102629)  /home/gst-gireesh/gstreamer/lib/libgstbase-0.10.so.0.10.0
>> 4064a000 (28 KB)       ---p (00:0d 1102629)  /home/gst-gireesh/gstreamer/lib/libgstbase-0.10.so.0.10.0
>> 40651000 (4 KB)        rw-p (00:0d 1102629)  /home/gst-gireesh/gstreamer/lib/libgstbase-0.10.so.0.10.0
>> 40652000 (60 KB)       r-xp (00:0d 2717682)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstmad.so
>> 40661000 (32 KB)       ---p (00:0d 2717682)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstmad.so
>> 40669000 (4 KB)        rw-p (00:0d 2717682)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstmad.so
>> 4066a000 (24 KB)       r-xp (00:0d 1685581)  /home/gst-gireesh/gstreamer/lib/libgsttag-0.10.so.0.8.0
>> 40670000 (28 KB)       ---p (00:0d 1685581)  /home/gst-gireesh/gstreamer/lib/libgsttag-0.10.so.0.8.0
>> 40677000 (4 KB)        rw-p (00:0d 1685581)  /home/gst-gireesh/gstreamer/lib/libgsttag-0.10.so.0.8.0
>> 40678000 (84 KB)       r-xp (00:0d 1685600)  /home/gst-gireesh/gstreamer/lib/libmad.so.0.2.1
>> 4068d000 (28 KB)       ---p (00:0d 1685600)  /home/gst-gireesh/gstreamer/lib/libmad.so.0.2.1
>> 40694000 (4 KB)        rw-p (00:0d 1685600)  /home/gst-gireesh/gstreamer/lib/libmad.so.0.2.1
>> 40695000 (112 KB)      r-xp (00:0d 1685668)  /home/gst-gireesh/gstreamer/lib/libid3tag.so.0.3.0
>> 406b1000 (28 KB)       ---p (00:0d 1685668)  /home/gst-gireesh/gstreamer/lib/libid3tag.so.0.3.0
>> 406b8000 (8 KB)        rw-p (00:0d 1685668)  /home/gst-gireesh/gstreamer/lib/libid3tag.so.0.3.0
>> 406ba000 (72 KB)       r-xp (00:0d 2717683)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstalsa.so
>> 406cc000 (28 KB)       ---p (00:0d 2717683)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstalsa.so
>> 406d3000 (4 KB)        rw-p (00:0d 2717683)  /home/gst-gireesh/gstreamer/lib/gstreamer-0.10/libgstalsa.so
>> 406d4000 (724 KB)      r-xp (00:0d 2211260)  /home/gst-gireesh/gstreamer/lib/libasound.so.2.0.0
>> 40789000 (32 KB)       ---p (00:0d 2211260)  /home/gst-gireesh/gstreamer/lib/libasound.so.2.0.0
>> 40791000 (16 KB)       rw-p (00:0d 2211260)  /home/gst-gireesh/gstreamer/lib/libasound.so.2.0.0
>> 40795000 (28 KB)       r-xp (00:0d 1685618)  /home/gst-gireesh/gstreamer/lib/libgstinterfaces-0.10.so.0.8.0
>> 4079c000 (28 KB)       ---p (00:0d 1685618)  /home/gst-gireesh/gstreamer/lib/libgstinterfaces-0.10.so.0.8.0
>> 407a3000 (4 KB)        rw-p (00:0d 1685618)  /home/gst-gireesh/gstreamer/lib/libgstinterfaces-0.10.so.0.8.0
>> 407a4000 (88 KB)       r-xp (00:0d 1685645)  /home/gst-gireesh/gstreamer/lib/libgstaudio-0.10.so.0.8.0
>> 407ba000 (32 KB)       ---p (00:0d 1685645)  /home/gst-gireesh/gstreamer/lib/libgstaudio-0.10.so.0.8.0
>> 407c2000 (4 KB)        rw-p (00:0d 1685645)  /home/gst-gireesh/gstreamer/lib/libgstaudio-0.10.so.0.8.0
>> 407c3000 (4 KB)        ---p (00:00 0)        
>> 407c4000 (8188 KB)     rwxp (00:00 0)        
>> 40fc3000 (4 KB)        ---p (00:00 0)        
>> 40fc4000 (8188 KB)     rwxp (00:00 0)        
>> 417c3000 (4 KB)        ---p (00:00 0)        
>> 417c4000 (8188 KB)     rwxp (00:00 0)        
>> 41fc3000 (4 KB)        ---p (00:00 0)        
>> 41fc4000 (8188 KB)     rwxp (00:00 0)        
>> 427c3000 (4 KB)        ---p (00:00 0)        
>> 427c4000 (8188 KB)     rwxp (00:00 0)        
>> beeb0000 (84 KB)       rwxp (00:00 0)        [stack]
>> mapped:   50460 KB writable/private: 42684 KB shared: 0 KB
> 
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Don't miss this year's exciting event. There's still time to save $100. 
>> Use priority code J8TL2D2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Gstreamer-embedded mailing list
>> Gstreamer-embedded at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded
> 
> 





[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux