Advertisement
Guest User

Untitled

a guest
May 27th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #!/bin/sh -e
  2.  
  3. # Workaround unhandled rdmsr/wrmsr
  4. echo 1 >/sys/module/kvm/parameters/ignore_msrs
  5.  
  6. # vnc start
  7. su kometch -c "vncserver :0"
  8.  
  9. # Disable NCQ on all disks. (for raptors it increases the speed 30-40MiB/s)
  10. echo 1 > /sys/block/sda/device/queue_depth
  11. echo 1 > /sys/block/sdb/device/queue_depth
  12. #echo 1 > /sys/block/sdc/device/queue_depth
  13. #echo 1 > /sys/block/sdd/device/queue_depth
  14.  
  15. hdparm -a 1024 /dev/sda
  16. hdparm -a 1024 /dev/sdb
  17. hdparm -a 1024 /dev/md0
  18.  
  19. # ether offload off
  20. ethtool -K eth0 rx off tx off tso off
  21. ethtool -K eth1 rx off tx off tso off
  22. ethtool -K eth2 rx off tx off tso off
  23. ethtool -K eth3 rx off tx off tso off
  24. ethtool -G eth0 rx 512
  25. ethtool -G eth1 rx 512
  26.  
  27. # To disable transparent huge pages:
  28. echo never > /sys/kernel/mm/transparent_hugepage/enabled
  29.  
  30. echo auto > '/sys/bus/usb/devices/1-4/power/control'
  31.  
  32. # OpenVswtich config
  33. ovs-vsctl set br ovsbr0 other_config:forward-bpdu=true
  34. ovs-vsctl set br ovsbr0 fail_mode=standalone
  35. ovs-vsctl set br ovsbr0 stp_enable=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement