[streaming] Re: VLC - DVB Memory leak?

Sean Lowry Sean.Lowry at keycom.co.uk
Fri Mar 31 10:28:25 CEST 2006


Hi Sigmund, 

Thanks for reply. The load on the box starts at about 0.40 but it does rise
when the memory starts to leak.

root      8798  0.0  0.0   4448   724 pts/4    S+   Mar30   0:00 bash
sean      8820 48.7 18.9 857268 393272 pts/3   Sl+  Mar30 570:49 vlc
--sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --programs=8262,8325
root      8821  0.0  0.0   2780    48 pts/3    S+   Mar30   0:00 vlc
--sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --programs=8262,8325
root      8836  2.2  0.0      0     0 ?        S<   Mar30  26:12 [cx88[1]
dvb]
sean     15595 11.7  1.8 349984 37508 pts/0    Sl+  09:17   0:09 vlc
--dvb-caching=800 --sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --
root     15596  0.0  0.0   2776   224 pts/0    S+   09:17   0:00 vlc
--dvb-caching=800 --sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --
sean     15611  0.3  0.0      0     0 ?        S    09:17   0:00 [kdvb-fe-2]
root     15612  1.0  0.0      0     0 ?        S<   09:17   0:00 [cx88[2]
dvb]
root     15636  0.0  0.0   4184   960 pts/1    R+   09:18   0:00 ps aux
[root at iptv sean]# w
 09:18:55 up 2 days, 21:31,  6 users,  load average: 0.95, 1.07, 0.95
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                Tue11    2days  0.04s  0.04s -bash
sean     pts/0    192.168.1.115    Tue11    1:28  11.26s 10.26s vlc
--dvb-caching=800 --sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --
sean     pts/1    192.168.1.115    Tue12    0.00s  0.16s  0.06s sshd: sean
[priv]
sean     pts/2    192.168.1.115    Tue14   41:27m  0.15s  0.05s sshd: sean
[priv]
sean     pts/3    192.168.1.115    Tue14   19:31m  9:30m  9:30m vlc
--sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa --programs=8262,8325
sean     pts/4    192.168.1.119    Thu13    1:07   0.05s  0.03s sshd: sean
[priv]


I hope this helps and yes I agree with the comments about if there is more
errors on the feed it happens sooner I have noticed this as well. 

I'm trying the dvb-cache now see if it makes any difference. If anyone has
anymore idea's I'm willing to try anything. And on another not in VLS 0.5.6
I don't have this issue which is why I think its vlc and not the libdvbpsi
libraries.

Sean
-----Original Message-----
From: Sigmund Augdal Helberg [mailto:sigmund.augdal at gmail.com] 
Sent: 30 March 2006 14:20
To: streaming at videolan.org
Subject: [streaming] Re: VLC - DVB Memory leak?

On Thu, 2006-03-30 at 14:12 +0100, Sean Lowry wrote:
> I have tried 3 different linux distro with ggc3 + 4 and still having
> this issue running the latest libdvbpsi and the latest nightly of VLC.
> 
>  
> 
> Does anyone have any ideas or anything?
There is a known case that when you stream more than the network
interface and/or the cpu can handle a buffer in vlc may start building
up, and this buffer is without a max size. What are the load on this
box?

Sigmund
> 
>  
> 
> Regards
> 
> Sean
> 
>  
> 
>                                    
> ______________________________________________________________________
> From:Sean Lowry [mailto:Sean.Lowry at keycom.co.uk] 
> Sent: 27 March 2006 11:22
> To: streaming at videolan.org
> Subject: [streaming] VLC - DVB Memory leak?
> 
> 
>  
> 
> Hello all.
> 
>  
> 
> I have been using vlc-0.8.4a with the latest dvbpsi and I've noticed
> that a process with start to us up memory until it is killed by the
> kernel for using it all.
> 
>  
> 
>  
> 
> root      4289 16.1 81.3 2651536 736328 pts/3 S+  09:12  20:43 vlc
> --sout-ts-csa-pkt=20 --sout-ts-csa-ck=aaaaaaaaaaaaaaaa
> --programs=8262,8325,8295,8384,8452,8448,8442,8358 dvb:
> --dvb-adapter=1 --dvb-frequency
> 
>  
> 
> as you can see above its using 81.3% of the memory it starts off by
> using about 5% now I've been able to attach to it with strace and get
> out whats going on. 
> 
>  
> 
> select(1, [0], NULL, [0], {0, 24000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
> select(1, [0], NULL, [0], {0, 50000})   = 0 (Timeout)
> 
>  
> 
> This is what I get and it just keeps going....
> 
> I was watching it for about 2 minutes and it's the only message
> produced on it. I'm going to have a look at the code now to see where
> this loop is being created but if anyone has come across this before
> or if there is already a fix this would be great.
> 
>  
> 
> I also had this issue on the nightly of 0.8.5. so I'm assuming its
> still there.
> 
>  
> 
> Regards
> 
> Sean
> 
>  
> 
>  
> 
> 

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the streaming mailing list