<div class="gmail_quote"><br>
<div>Mike and Jan,</div>
<div> </div>
<div>Thanks a lot for your responses! </div>
<div class="Ih2E3d">
<div> </div>
<div>
<div>>Gireesh,</div>
<div>
<p>>At a guess, I'd say those are probably thread stacks.</p>
<p>>You're measuring the wrong thing - the virtual size of the<br>>application. You don't really need to care about the virtual size -<br>>these thread stacks don't get faulted into actual physical ram.</p>
<p>>Mike</p></div></div></div>
<div><strong>Mike</strong>, </div>
<div>What I understand from your explanation is </div>
<div>1. The virtual size shown by 'top' and 'pmap' doesn't mean that my application is eating up much space in the physical memory. </div>
<div>2. I can safely ignore this memory usage shown. </div>
<div>Please correct me if I'm wrong. </div>
<div> </div>
<div>Now, how can I confirm this? My point is, is there any utility to measure the physical ram usage? </div>
<div class="Ih2E3d">
<div> </div>
<div>
<p>>I'd guess they're probably thread stacks. I think the default is 8MB, but<br>>you can make it smaller, possibly by using g_thread_create_full in the right<br>>places in GStreamer core (in gsttask.c somewhere)</p>
<p>>J.</p></div>
<div> </div></div>
<div><strong>Jan</strong>,</div>
<div>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).</div>
<div>Can you please tell me if I'm looking at the right places? </div>
<div> </div>
<div>thanks again,</div>
<div>gireesh </div>
<div> </div>
<div>--------g_thread_create_full--------------</div>
<div>
<div class="Ih2E3d">[gireesh@omaplinux3 gstreamer]$ grep g_thread_create_full */*/*<br></div>
<div class="Ih2E3d">glib-2.12.4/glib/galiasdef.c:#undef g_thread_create_full<br>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")));<br>
</div>glib-2.12.4/glib/galias.h:extern __typeof (g_thread_create_full) IA__g_thread_create_full __attribute((visibility("hidden")));<br>glib-2.12.4/glib/galias.h:#define g_thread_create_full IA__g_thread_create_full<br>
glib-2.12.4/glib/glib.symbols:g_thread_create_full
<div class="Ih2E3d"><br>glib-2.12.4/glib/gthread.c:g_thread_create_full (GThreadFunc func,<br></div><font style="BACKGROUND-COLOR: #ffff33">glib-2.12.4/glib/gthread.h: (g_thread_create_full (func, data, 0, joinable, FALSE,</font> \<br>
glib-2.12.4/glib/gthread.h:GThread* g_thread_create_full (GThreadFunc func,
<div class="Ih2E3d"><br><font style="BACKGROUND-COLOR: #ffff66">glib-2.12.4/tests/slice-test.c: threads[i] = g_thread_create_full (test_sliced_mem_thread, seedp, 0, TRUE, FALSE, 0, NULL);<br>glib-2.12.4/tests/slice-test.c: threads[i] = g_thread_create_full (test_memchunk_thread, seedp, 0, TRUE, FALSE, 0, NULL);<br>
</font></div>Binary file gstreamer-0.10.11/gst/libgstreamer_0.10_la-gstsystemclock.o matches<br>------------------------------------------------------------------------------</div>
<div> </div></div>