How to reduce virtual memory allocated by each GStreamer stream?
Sebastian Dröge
sebastian at centricular.com
Sat Sep 10 08:19:16 UTC 2016
On Fri, 2016-09-09 at 17:43 -0300, Linux - Junior Polegato wrote:
> Hi!
>
> I need to put 32 RTSP/H264 streams in a Gtk window, but
> each
> stream allocates about 200 MB of virtual memory and 30 MB of real
> memory.
>
> So, when allocated more then 3.5 GB the system falls with
> messages like "Segmentation fault" ou "Can't allocate memory".
>
> If I open 2 windows with 16 streams each, about 3 GB
> allocated
> each, it works fine.
>
> So, how can I reduce the allocated virtual memory?
As a first step, try using a tool like valgrind's massif to see where
all the memory is allocated, and especially where the major part of it
is allocated. Then these specific parts can be optimized.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160910/c1574348/attachment.sig>
More information about the gstreamer-devel
mailing list