[Live-devel] ubuntu live555 tuning issue

Pete Pulliam ppulliam at llnw.com
Sun Sep 28 21:08:36 PDT 2014


I have an implementation of an rtsp proxy server based not he
live555ProxyServer that ships with the live555 source.  I'm having problems
tuning my hardware to efficiently stream one external to many players.

When running test players on the same machine as the proxy, which is
proxy'ing an external rtsp origin (rtsp://
wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov, if you must know
;) I can hit the proxy with 1000 test players, getting 0% packet loss, plus
perfect playback from an additional player on a cell phone using T-Mobile's
network.   The single-threaded proxy is using about 30% of the CPU at
that point.  That would be fantastic, but that's for 1000 players on
localhost + one external.  If, instead, I run a similar test with 20 test
players on a different machine on the same subnet plus the cellphone, I get
about 1.3% packet loss in the test players and horrible looking video on
the cell phone.  With 40 external players I'm up to about 8% packet loss
and un-viewable video on the phone.

This all implies that I have a problem with the network stack or the
networking hardware serving the machines.  (Correct me if I'm wrong)

uname -a:

Linux xxxx.xxxx.xxxx.net 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24
16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

​It's a 1 gig NIC.​

​Here are the tuning things I have tried so far:

sysctl -w net.core.rmem_max=8388608

sysctl -w net.core.wmem_max=8388608

sysctl -w net.core.rmem_default=65536

sysctl -w net.core.wmem_default=65536

sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'

sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'

sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'

sysctl -w net.ipv4.route.flush=1


ulimit -n 65536

I'm approaching my wits end (not representative of a loss of humor), and
would appreciate any advice.
​
​Pete

-- 
The information in this message may be confidential.  It is intended solely 
for
the addressee(s).  If you are not the intended recipient, any disclosure,
copying or distribution of the message, or any action or omission taken by 
you
in reliance on it, is prohibited and may be unlawful.  Please immediately
contact the sender if you have received this message in error.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140928/464f1caa/attachment.html>


More information about the live-devel mailing list