Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ubuntu_hortonworks [2016/01/28 11:18]
steve
ubuntu_hortonworks [2016/01/28 11:21]
steve
Line 21: Line 21:
 </​code>​ </​code>​
  
-Disable IPv6 in ''/​etc/​sysctl.conf'':​+Disable IPv6 completely ​in ''/​etc/​sysctl.conf''​. HortonWorks also recommends disabling swapping completely, and increasing max user instances:
  
 <​code>​ <​code>​
Line 27: Line 27:
 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1
 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
 +vm.swappiness = 0
 +fs.epoll.max_user_instances = 2048
 </​code>​ </​code>​
  
-Also disable ​it for the running machine:+Disable ​it directly as well:
  
 <​code>​ <​code>​
Line 35: Line 37:
 sysctl -w net.ipv6.conf.default.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1
 sysctl -w net.ipv6.conf.lo.disable_ipv6=1 sysctl -w net.ipv6.conf.lo.disable_ipv6=1
 +sysctl -w vm.swappiness=0
 +sysctl -w fs.epoll.max_user_instances=2048
 +</​code>​
 +
 +HortonWorks recommends disabling transparent hugepages as well. Add to ''/​etc/​rc.local'':​
 +
 +<​code>​
 +echo never > /​sys/​kernel/​mm/​transparent_hugepage/​enabled
 +echo never > /​sys/​kernel/​mm/​transparent_hugepage/​defrag
 </​code>​ </​code>​