Hi All,<br><br>I am a newbee and am trying to study a simple pipeline (filesrc -&gt; queue -&gt; filesink) under different threading conditions. I am seeing memory leaks in &quot;top&quot; in some of them. However, valgrind does not report leaks in any case. I tried the following:
<br><ul><li>Running the pipeline once. No memory leaks in &quot;top&quot; and valgrind.<br><br></li><li>Running the pipeline multiple times (sequentially) in a single parent thread (no child threads spawned by the main application).  No memory leaks in &quot;top&quot; and valgrind.
<br><br></li><li>Running multiple threads with each thread running an independent pipeline of the type above. I see memory leaks in &quot;top&quot; but valgrind does not show any leaks.</li><ul><li>Using a ~ 5MB file as input and running 10 threads (pipelines), I see &quot;RES&quot; memory usage in &quot;top&quot; increasing to around 10-12MB even after doing a gst_deinit() in the parent thread (after all threads have exited).
</li><li>This memory usage continues to increase as number of threads increase.</li><li>If I do not use a &quot;queue&quot; and directly connect &quot;filesrc&quot; and &quot;filesink&quot;, I do not see this memory leak in &quot;top&quot;.
</li><li>Using a very small file (1 byte), I do not see this leak but that may be due to lack of enough leakage in the system.</li></ul></ul>I am attaching a log file listing the number of threads Vs. memory usage. Has anyone come across something like this before? Any pointers/ideas/suggestions on what should I try?
<br><br>thanks and regards<br>Mohit Garg<br><br><br><br>