Unknown memory blocks in gstreamer runtime

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


Mike and Jan,

Thanks a lot for your responses!

 >Gireesh,

>At a guess, I'd say those are probably thread stacks.

>You're measuring the wrong thing - the virtual size of the
>application. You don't really need to care about the virtual size -
>these thread stacks don't get faulted into actual physical ram.

>Mike
*Mike*,
What I understand from your explanation is
1. The virtual size shown by 'top' and 'pmap' doesn't mean that my
application is eating up much space in the physical memory.
2. I can safely ignore this memory usage shown.
Please correct me if I'm wrong.

Now, how can I confirm this? My point is, is there any utility to measure
the physical ram usage?


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

>J.

*Jan*,
I could not find a reference to g_thread_create_full anywhere in the
gstreamer core. Instead, it is there in some files in glib source. In all
places, the stack_size is being passed as 0 (highlighted in the below pasted
log).
Can you please tell me if I'm looking at the right places?

thanks again,
gireesh

--------g_thread_create_full--------------
 [gireesh at omaplinux3 gstreamer]$ grep g_thread_create_full */*/*
glib-2.12.4/glib/galiasdef.c:#undef g_thread_create_full
glib-2.12.4/glib/galiasdef.c:extern __typeof (g_thread_create_full)
g_thread_create_full __attribute((alias("IA__g_thread_create_full"),
visibility("default")));
glib-2.12.4/glib/galias.h:extern __typeof (g_thread_create_full)
IA__g_thread_create_full __attribute((visibility("hidden")));
glib-2.12.4/glib/galias.h:#define g_thread_create_full
IA__g_thread_create_full
glib-2.12.4/glib/glib.symbols:g_thread_create_full
glib-2.12.4/glib/gthread.c:g_thread_create_full (GThreadFunc
func,
glib-2.12.4/glib/gthread.h:  (g_thread_create_full (func, data, 0, joinable,
FALSE,             \
glib-2.12.4/glib/gthread.h:GThread* g_thread_create_full
(GThreadFunc            func,
glib-2.12.4/tests/slice-test.c:      threads[i] = g_thread_create_full
(test_sliced_mem_thread, seedp, 0, TRUE, FALSE, 0, NULL);
glib-2.12.4/tests/slice-test.c:        threads[i] = g_thread_create_full
(test_memchunk_thread, seedp, 0, TRUE, FALSE, 0, NULL);
Binary file gstreamer-0.10.11/gst/libgstreamer_0.10_la-gstsystemclock.o
matches
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20080416/0e0f7717/attachment.htm>


[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