Random high load with rtp streaming
Posted: 17 Feb 2016 12:41
I've noticed, that my simple stream without transcoding sometimes works as expected and sometimes gets caught in some kind of busy loop eating all the CPU cycles available. The command line is:
Normal expected behaviour gives following performance (top):
However every now and then I get this kind of figures:
Any ideas where to start? No error messages, however after the high load situation ctrl-d won't terminate the program. It'll kill the stream but load is still high. I'll have to keep hitting ctrl-c for a while. The frequency is 4 times out of 5 starts I get the high load. VLC version is 2.2.1 (Debian 8 ) and I don't have exact version where it was broken. I tested 1.0.5 in my old server and it didn't have any issues.
Quick update, it's 4th thread created that hangs (in case this helps):
The test source stream is just simple H.264 720p streamed from VLC (will eventually be IPTV source) with command:
Code: Select all
vlc http://192.168.255.33:8081 --sout "#rtp{dst=239.193.0.1,port=8000,mux=ts,ttl=1}" -vvvvv
Code: Select all
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1473 root 20 0 44548 19740 12600 S 6.9 1.9 0:01.19 vlc
Code: Select all
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1500 root 20 0 50704 25272 12812 S 149.9 2.5 0:21.31 vlc
Quick update, it's 4th thread created that hangs (in case this helps):
Code: Select all
UID PID PPID LWP C
root 2740 1 2740 0
root 2740 1 2741 0
root 2740 1 2760 0
root 2740 1 2763 99
root 2740 1 2765 0
Code: Select all
vlc Mark\ Ronson\ -\ Uptown\ Funk\ ft.\ Bruno\ Mars720p.mp4 --sout '#standard{access=http,mux=ts}' --http-host 192.168.255.33 --http-port 8081