How-to increase UDP buffers under linux

A common issue for people using Wowza when taking in MPEG-TS streams are that the default OS buffer sizes are too small.

To check your buffer sizes do the following

more /proc/sys/net/core/rmem_max

This normally shows a value of 131071

more /proc/sys/net/core/rmem_default

This normally shows a value of 229376

For high bitrate inbound streams these values are too low and so will cause problems for Wowza to ingest it correctly, as it will not be receiving the data correctly.

To increase these values , as root, simply do

echo 24000000 > /proc/sys/net/core/rmem_default
echo 24000000 > /proc/sys/net/core/rmem_max

You can add these values to your /etc/sysctl.conf file so they are preserved at reboot if needed.


Comments are closed.