Skip to content

Instantly share code, notes, and snippets.

@cdgraff
Last active May 15, 2020 21:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cdgraff/987313569f7971705ffdd183b4b77389 to your computer and use it in GitHub Desktop.
Save cdgraff/987313569f7971705ffdd183b4b77389 to your computer and use it in GitHub Desktop.
Linux Os Tunning for HLS - Flussonic + Peer5
fs.file-max=1048576
fs.inotify.max_user_instances=1048576
fs.inotify.max_user_watches=1048576
fs.nr_open=1048576
net.core.netdev_max_backlog=1048576
net.core.rmem_max=16777216
net.core.somaxconn=65535
net.core.wmem_max=16777216
net.ipv4.tcp_congestion_control=htcp
net.ipv4.ip_local_port_range=1024 65535
net.ipv4.tcp_fin_timeout=5
net.ipv4.tcp_max_orphans=1048576
net.ipv4.tcp_max_syn_backlog=20480
net.ipv4.tcp_max_tw_buckets=400000
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_synack_retries=2
net.ipv4.tcp_syn_retries=2
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_wmem=4096 65535 16777216
vm.max_map_count=1048576
vm.min_free_kbytes=65535
vm.overcommit_memory=1
vm.swappiness=0
vm.vfs_cache_pressure=50
* soft nproc 1048576
* hard nproc 1048576
* soft nofile 1048576
* hard nofile 1048576
* soft stack 1048576
* hard stack 1048576
* soft memlock unlimited
* hard memlock unlimited
# increase txqueuelen for 10G NICS
/sbin/ifconfig p5p1 txqueuelen 10000
@amcorona
Copy link

Before you moved this to peer 5, how did you load balance the HLS chunks so each segment always came from the same server. I tried to do a round robin and that failed miserably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment