Advertisement
rockdrilla

linux /etc/rc.local

Nov 12th, 2015
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. for i in /sys/block/*/queue/scheduler; do
  4.     echo bfq > $i
  5. done
  6.  
  7. for i in $(ip -o link | cut -d: -f2 | egrep -ve '^ *lo *$'); do
  8.     tc qdisc replace dev $i root fq_codel limit 10240 flows 1024 quantum 1514 target 5ms interval 50ms
  9. done
  10.  
  11. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement