Hi Friends,
I am new to this. Still i didn't clear my issue.I Mention below my problems and solutions which i tried. Please help me.
I am using,
Hardware - I.MX6 DL RAM:512 MB
Kernel Version - 3.0.35
Gstreamer - 0.10
2Cameras(5MP) - Mipi interface & Parallel Interface
Streaming - RTMP
My Problem is,
1.Memory Leak
2.Not freeing RAM memory
Solutions Tried,
See the attachments patch_v4l2_issue.zip.I tried these patches correctly.But no solution i meet.
I Tried the solutions from the below links:
Long running vpu task with memory leak bug on imx6
Re: i.MX6Q: VPU memory allocation "fragmentation" error
GStreamer crashing on i.MX6 (Boundary Devices Nitrogen6x)
I issued Free command and is shows like
root@freescale ~$ free
total used free shared buffers
Mem: 513988 120080 393908 0 60
-/+ buffers: 120020 393968
Swap: 0 0 0
And i gave this command to clear the memory ( echo 3 > /proc/sys/vm/drop_caches ).But its not clearing the RAM memory(In 720 P resolution).But in 320P Resolution Memory is Cleared.Thats not a problem.
I attach the error log file for you reference (gstreamer_error_memory).
So , While i am streamer both camera continously in 720P it streamed upto maximum 30 mins only. But After that i got an memory issue problem.
Thanks and Regards,
R.Giritharan
Original Attachment has been moved to: patch_v4l2_issue.zip
Original Attachment has been moved to: gstreamer_error_memory.zip
HI, Giritharan, I meet a similar problem while playing RTSP streaming.
Command:
gst-launch-1.0 playbin uri=rtsp://192.168.1.88:556/vga
The memory of gst-launch-1.0 will increase more than 30M per hour, then the video stop, but audio soud ok。
Delete the libgstvpu.so , use the same commad. memory will not increase, but play the high resolution (1920x1080) not smooth.
CPU: IMX6DL
Kernel: 4.1.15
BSP: 2.0.1 GA
GST: imx-gst1.0-plugin-4.1.4
Hope get some guide form you, thanks.
got some information from expert team: the file cache is a common issue from linux, more times read/write to file will cause large memory occupied by cache, the linux only recycle the cache memory when there is no enough memory, that’s why you run second time successfully. Also I find some instructs to limit the cache size, but I don’t know the result by decreasing the size.
The linux memory management point is put the most memory to using to increase the system performance, so much memory was used as cache.