Page 1 of 1

Memory usage

Posted: 23 May 2008 11:37
by contremaitre
Hello,

Can someone explain me why vlc uses a lot of memory ?

I tried to open a few rtsp stream, and save it on disk.
4 streams = 150 Mo
Memory usage is about 80Mo for vlc + 20Mo per stream.

I also tried to run a small selfmade code with libvlc and I have :
libvlc instance = 34 Mo
+ vlm object = 42 Mo
+ stream record (so, no gui) = 52
+ 2 others stream = 82Mo

This memory usage is with pmap -d -> private memory usage (don't count shared libs)

My questions are :
- Why vlc uses so much memory by itself (34Mo just for one libvlc instance)
- Why vlc uses 20Mo each time I add a stream ?

thank you

Re: Memory usage

Posted: 23 May 2008 16:29
by RĂ©mi Denis-Courmont
VLC does a lot of caching. But the truth is that there has not been any profiling activities recently, so it's impossible to answer.