<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt><br>
</tt><tt><br>
</tt>
<div class="moz-cite-prefix"><tt>On 2016年03月13日 03:37,
<a class="moz-txt-link-abbreviated" href="mailto:marcin@saepia.net">marcin@saepia.net</a> wrote:</tt><tt><br>
</tt></div>
<blockquote
cite="mid:CA+DLCvAKM6CWyoTUKKP3ca_k083JTVcDL8ZS5BQXKet2P95Fuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div><tt>Hello,</tt><tt><br>
</tt><tt><br>
</tt></div>
<tt>first of all, ensure that you are checking memory
correctly. I doubt if MemFree substracts memory used by
cache/buffers which is occupied at the moment but can be
easily freed by the system. For instance, free command
shows that in the second row:</tt><tt><br>
</tt><tt><br>
</tt><tt>$ free</tt><tt><br>
</tt><tt> total used free
shared buffers cached</tt><tt><br>
</tt><tt>Mem: 4045936 3538900 507036
10644 298020 2175820</tt><tt><br>
</tt><tt>-/+ buffers/cache: 1065060 </tt><tt><b>2980876</b></tt><tt><br>
</tt><tt>Swap: 1950716 7664 1943052</tt><tt><br>
</tt></div>
</div>
</div>
</blockquote>
<tt>Thanks for your mind.<br>
<br>
Thanks,<br>
Hongbo<br>
</tt>
<blockquote
cite="mid:CA+DLCvAKM6CWyoTUKKP3ca_k083JTVcDL8ZS5BQXKet2P95Fuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><tt><br>
</tt></div>
<tt>If you still think that its GStreamer eating memory, it's
likely a bug, and you have to fill a bug report.</tt><tt><br>
</tt><tt><br>
</tt></div>
<tt>Marcin</tt><tt><br>
</tt>
<div>
<div><tt> </tt><tt><br>
</tt></div>
</div>
</div>
<div class="gmail_extra"><tt><br>
</tt>
<div class="gmail_quote"><tt>2016-03-12 16:38 GMT+01:00 hzhong </tt><tt><span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:hongbo.zhong@ivicar.cn" target="_blank">hongbo.zhong@ivicar.cn</a>></span></tt><tt>:</tt><tt><br>
</tt>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><tt>Hi</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
How to recovery the system free memory after I stop the
record pipeline.</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
I am using the following step to check the system free
memory and create a pipline to record the video stream.</tt><tt><br>
</tt><tt>
The system free memory will decrease after the pipline
running.</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
But when I stop the pipline, The system memory could not
be recovery to the origin memory state. After I delete</tt><tt><br>
</tt><tt>
the record file, The system memory can be recovery.</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
1. X86:</tt><tt><br>
</tt><tt>
(1) Test enviroment:</tt><tt><br>
</tt><tt>
OS Enviroment: Ubuntu 14.04.4</tt><tt><br>
</tt><tt>
Gstreamer Version: GStreamer 1.6.3</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
(2) Check the free memory script(The script name is
test.sh) :</tt><tt><br>
</tt><tt>
#!/bin/sh</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
while :</tt><tt><br>
</tt><tt>
do</tt><tt><br>
</tt><tt>
cat /proc/meminfo | grep MemFree</tt><tt><br>
</tt><tt>
sleep 5</tt><tt><br>
</tt><tt>
done</tt><tt><br>
</tt>
<tt><br>
</tt>
<tt><br>
</tt><tt>
(3) Test step</tt><tt><br>
</tt><tt>
The fist step: Running the test.sh to check the system
free memory</tt><tt><br>
</tt><tt>
The next step: Running the record command as the
following:</tt><tt><br>
</tt><tt>
gst-launch-1.0 videotestsrc !
video/x-raw,format=UYVY,width=640,hight=480 ! videoconvert
! video/x-raw,format=I420 ! x264enc ! avimux ! filesink
location=./test.avi</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
(4) Test Result:</tt><tt><br>
</tt><tt>
When The pipeline is running, The system free memory will
be decreased.</tt><tt><br>
</tt><tt>
MemFree: 293064 kB</tt><tt><br>
</tt><tt>
MemFree: 231984 kB</tt><tt><br>
</tt><tt>
MemFree: 226280 kB</tt><tt><br>
</tt><tt>
MemFree: 220780 kB</tt><tt><br>
</tt><tt>
MemFree: 215340 kB</tt><tt><br>
</tt><tt>
MemFree: 222788 kB</tt><tt><br>
</tt><tt>
MemFree: 217228 kB</tt><tt><br>
</tt><tt>
MemFree: 211908 kB</tt><tt><br>
</tt><tt>
MemFree: 206048 kB</tt><tt><br>
</tt><tt>
MemFree: 200344 kB</tt><tt><br>
</tt><tt>
MemFree: 194796 kB</tt><tt><br>
</tt><tt>
MemFree: 188904 kB</tt><tt><br>
</tt><tt>
MemFree: 183448 kB</tt><tt><br>
</tt><tt>
MemFree: 177868 kB</tt><tt><br>
</tt><tt>
MemFree: 172072 kB</tt><tt><br>
</tt><tt>
MemFree: 166212 kB</tt><tt><br>
</tt><tt>
MemFree: 160756 kB</tt><tt><br>
</tt><tt>
MemFree: 166684 kB</tt><tt><br>
</tt><tt>
MemFree: 161036 kB</tt><tt><br>
</tt><tt>
MemFree: 159176 kB</tt><tt><br>
</tt><tt>
MemFree: 145444 kB</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
After I stop the pipeline(Using ctrl + c), the free memory
will increase something. But it could not to recovery it.</tt><tt><br>
</tt><tt>
MemFree: 200084 kB</tt><tt><br>
</tt><tt>
MemFree: 199804 kB</tt><tt><br>
</tt><tt>
MemFree: 203276 kB</tt><tt><br>
</tt><tt>
MemFree: 199844 kB</tt><tt><br>
</tt><tt>
MemFree: 200084 kB</tt><tt><br>
</tt><tt>
MemFree: 200044 kB</tt><tt><br>
</tt>
<tt><br>
</tt>
<tt><br>
</tt><tt>
After I delete the record file(test.avi), The system free
memory can be recovery.</tt><tt><br>
</tt><tt>
MemFree: 199968 kB</tt><tt><br>
</tt><tt>
MemFree: 312332 kB</tt><tt><br>
</tt><tt>
MemFree: 312288 kB</tt><tt><br>
</tt>
<tt><br>
</tt>
<tt><br>
</tt><tt>
2. For ARM platform</tt><tt><br>
</tt><tt>
Freescale imx6q:</tt><tt><br>
</tt><tt>
gst-launch-1.0 videotestsrc !
video/x-raw,format=UYVY,width=640,hight=480 ! videoconvert
! video/x-raw,format=I420 ! imxvpuenc_h264 ! avimux !
filesink location=./test.avi</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
Test Result:</tt><tt><br>
</tt><tt>
When the pipeline is running, The system free memory
state:</tt><tt><br>
</tt><tt>
MemFree: 744920 kB</tt><tt><br>
</tt><tt>
MemFree: 744600 kB</tt><tt><br>
</tt><tt>
MemFree: 736352 kB</tt><tt><br>
</tt><tt>
MemFree: 731656 kB</tt><tt><br>
</tt><tt>
MemFree: 726316 kB</tt><tt><br>
</tt><tt>
MemFree: 721024 kB</tt><tt><br>
</tt><tt>
MemFree: 715908 kB</tt><tt><br>
</tt><tt>
MemFree: 711088 kB</tt><tt><br>
</tt><tt>
MemFree: 705872 kB</tt><tt><br>
</tt><tt>
MemFree: 700204 kB</tt><tt><br>
</tt><tt>
MemFree: 695028 kB</tt><tt><br>
</tt><tt>
MemFree: 689984 kB</tt><tt><br>
</tt><tt>
MemFree: 684784 kB</tt><tt><br>
</tt><tt>
MemFree: 683872 kB</tt><tt><br>
</tt><tt>
MemFree: 683772 kB</tt><tt><br>
</tt><tt>
MemFree: 678640 kB</tt><tt><br>
</tt><tt>
MemFree: 673712 kB</tt><tt><br>
</tt><tt>
MemFree: 668380 kB</tt><tt><br>
</tt><tt>
MemFree: 663100 kB</tt><tt><br>
</tt><tt>
MemFree: 657808 kB</tt><tt><br>
</tt><tt>
MemFree: 652732 kB</tt><tt><br>
</tt><tt>
MemFree: 647516 kB</tt><tt><br>
</tt><tt>
MemFree: 642316 kB</tt><tt><br>
</tt><tt>
MemFree: 641476 kB</tt><tt><br>
</tt><tt>
... ... ... ... ... ...</tt><tt><br>
</tt><tt>
MemFree: 252860 kB</tt><tt><br>
</tt><tt>
MemFree: 252812 kB</tt><tt><br>
</tt><tt>
MemFree: 252860 kB</tt><tt><br>
</tt><tt>
MemFree: 252844 kB</tt><tt><br>
</tt><tt>
MemFree: 252796 kB</tt><tt><br>
</tt><tt>
MemFree: 252876 kB</tt><tt><br>
</tt><tt>
MemFree: 252876 kB</tt><tt><br>
</tt><tt>
MemFree: 252876 kB</tt><tt><br>
</tt><tt>
MemFree: 252868 kB</tt><tt><br>
</tt><tt>
MemFree: 252836 kB</tt><tt><br>
</tt><tt>
MemFree: 252884 kB</tt><tt><br>
</tt><tt>
MemFree: 252744 kB</tt><tt><br>
</tt><tt>
MemFree: 252812 kB</tt><tt><br>
</tt><tt>
MemFree: 252736 kB</tt><tt><br>
</tt><tt>
MemFree: 252736 kB</tt><tt><br>
</tt><tt>
MemFree: 252624 kB</tt><tt><br>
</tt><tt>
MemFree: 252672 kB</tt><tt><br>
</tt><tt>
MemFree: 252704 kB</tt><tt><br>
</tt><tt>
MemFree: 252516 kB</tt><tt><br>
</tt><tt>
MemFree: 575392 kB</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
After I delete the record file(test.avi), The free memory
can be recovery to the original state.</tt><tt><br>
</tt><tt>
MemFree: 743300 kB</tt><tt><br>
</tt><tt>
MemFree: 743416 kB</tt><tt><br>
</tt><tt>
MemFree: 743408 kB</tt><tt><br>
</tt><tt>
MemFree: 743220 kB</tt><tt><br>
</tt><tt>
MemFree: 743284 kB</tt><tt><br>
</tt>
<tt><br>
</tt><tt>
Thanks,</tt><tt><br>
</tt><tt>
Hongbo</tt><tt><br>
</tt>
<tt><br>
</tt>
<tt><br>
</tt>
<tt><br>
</tt><tt>
_______________________________________________</tt><tt><br>
</tt><tt>
gstreamer-devel mailing list</tt><tt><br>
</tt>
<tt><a moz-do-not-send="true"
href="mailto:gstreamer-devel@lists.freedesktop.org"
target="_blank">gstreamer-devel@lists.freedesktop.org</a></tt><tt><br>
</tt>
<tt><a moz-do-not-send="true"
href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></tt><tt><br>
</tt>
</blockquote>
</div>
<tt><br>
</tt></div>
<tt><br>
</tt>
<fieldset class="mimeAttachmentHeader"></fieldset>
<tt><br>
</tt>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<tt><br>
</tt>
</body>
</html>