Advertisement
albspirit86

/etc/sysctl.conf

Jan 10th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. # /etc/sysctl.conf
  2. # https://www.facebook.com/stressss
  3.  
  4.  
  5. #For 64-bit systems with 64GB of RAM:
  6. #kernel.shmmax=34359738368
  7. #kernel.shmmni=4096
  8. #kernel.shmall=16777216
  9. #vm.nr_hugepages=16384
  10. #For 64-bit systems with 32GB of RAM:
  11. #kernel.shmmax=17179869184
  12. #kernel.shmmni=4096
  13. #kernel.shmall=8388608
  14. #vm.nr_hugepages=8192
  15. #For 64-bit systems with 16GB of RAM:
  16. #kernel.shmmax=8589934592
  17. #kernel.shmmni=4096
  18. #kernel.shmall=4194304
  19. #vm.nr_hugepages=4096
  20. #For 64-bit systems with 8GB of RAM:
  21. #kernel.shmmax=4294967295
  22. #kernel.shmmni=4096
  23. #kernel.shmall=2097152
  24. #vm.nr_hugepages=2048
  25. #For systems with 4GB of RAM:
  26. #kernel.shmmax=2147483648
  27. #kernel.shmmni=4096
  28. #kernel.shmall=1048576
  29. #vm.nr_hugepages=1024
  30. #For systems with 1GB of RAM:
  31. kernel.shmmax=536870912
  32. kernel.shmmni=4096
  33. kernel.shmall=262144
  34.  
  35. ############## BATAS UNTUK PENYESUAIAN MEMORY ####################
  36.  
  37. net.ipv4.ip_nonlocal_bind = 1
  38. kernel.panic = 30
  39. kernel.panic_on_oops = 30
  40. kernel.sysrq = 0
  41. kernel.core_uses_pid = 1
  42. kernel.pid_max = 65536
  43. kernel.randomize_va_space = 1
  44. kernel.msgmnb = 65536
  45. kernel.msgmax = 65536
  46. fs.file-max = 209708
  47. vm.swappiness = 10
  48. vm.dirty_ratio = 60
  49. vm.dirty_background_ratio = 2
  50. vm.mmap_min_addr = 4096
  51. vm.overcommit_ratio = 0
  52. vm.overcommit_memory = 0
  53. vm.min_free_kbytes = 65536
  54. net.ipv4.tcp_syncookies = 1
  55. net.ipv4.tcp_syn_retries = 5
  56. net.ipv4.tcp_synack_retries = 2
  57. net.ipv4.tcp_max_syn_backlog = 4096
  58. net.ipv4.ip_forward = 1
  59. net.ipv4.conf.all.forwarding = 0
  60. net.ipv4.conf.default.forwarding = 0
  61. net.ipv6.conf.all.forwarding = 0
  62. net.ipv6.conf.default.forwarding = 0
  63. net.ipv4.conf.all.send_redirects = 0
  64. net.ipv4.conf.default.send_redirects = 0
  65. net.ipv4.conf.all.accept_source_route = 0
  66. net.ipv4.conf.default.accept_source_route = 0
  67. net.ipv6.conf.all.accept_source_route = 0
  68. net.ipv6.conf.default.accept_source_route = 0
  69. net.ipv4.conf.all.rp_filter = 2
  70. net.ipv4.conf.default.rp_filter = 2
  71. net.ipv4.conf.all.accept_redirects = 0
  72. net.ipv4.conf.default.accept_redirects = 0
  73. net.ipv6.conf.all.accept_redirects = 0
  74. net.ipv6.conf.default.accept_redirects = 0
  75. net.ipv4.conf.all.log_martians = 0
  76. net.ipv4.conf.default.log_martians = 0
  77. net.ipv4.tcp_fin_timeout = 15
  78. net.ipv4.tcp_keepalive_time = 300
  79. net.ipv4.tcp_keepalive_probes = 5
  80. net.ipv4.tcp_keepalive_intvl = 15
  81. net.ipv4.conf.all.bootp_relay = 0
  82. net.ipv4.conf.all.proxy_arp = 0
  83. net.ipv4.tcp_dsack = 1
  84. net.ipv4.tcp_sack = 1
  85. net.ipv4.tcp_fack = 1
  86. net.ipv4.tcp_timestamps = 1
  87. net.ipv4.icmp_echo_ignore_all = 0
  88. net.ipv4.icmp_echo_ignore_broadcasts = 1
  89. net.ipv4.icmp_ignore_bogus_error_responses = 1
  90. net.ipv4.tcp_rfc1337 = 1
  91. net.ipv4.tcp_congestion_control = cubic
  92. net.ipv4.tcp_window_scaling = 1
  93. net.ipv4.tcp_mem = 65536 131072 262144
  94. net.ipv4.udp_mem = 65536 131072 262144
  95. net.ipv4.tcp_rmem = 8192 87380 16777216
  96. net.ipv4.udp_rmem_min = 16384
  97. net.core.rmem_default = 131072
  98. net.core.rmem_max = 16777216
  99. net.ipv4.tcp_wmem = 8192 65536 16777216
  100. net.ipv4.udp_wmem_min = 16384
  101. net.core.wmem_default = 131072
  102. net.core.wmem_max = 16777216
  103. net.core.somaxconn = 32768
  104. net.core.netdev_max_backlog = 4096
  105. net.core.dev_weight = 64
  106. net.core.optmem_max = 65536
  107. net.ipv4.tcp_max_tw_buckets = 1440000
  108. net.ipv4.tcp_tw_recycle = 1
  109. net.ipv4.tcp_tw_reuse = 1
  110. net.ipv4.tcp_max_orphans = 16384
  111. net.ipv4.tcp_orphan_retries = 0
  112. net.ipv4.ipfrag_high_thresh = 512000
  113. net.ipv4.ipfrag_low_thresh = 446464
  114. net.ipv4.tcp_no_metrics_save = 1
  115. net.ipv4.tcp_moderate_rcvbuf = 1
  116. net.unix.max_dgram_qlen = 50
  117. net.ipv4.neigh.default.gc_thresh3 = 2048
  118. net.ipv4.neigh.default.gc_thresh2 = 1024
  119. net.ipv4.neigh.default.gc_thresh1 = 32
  120. net.ipv4.neigh.default.gc_interval = 30
  121. net.ipv4.neigh.default.proxy_qlen = 96
  122. net.ipv4.neigh.default.unres_qlen = 6
  123. net.ipv4.tcp_ecn = 1
  124. net.ipv4.tcp_ecn = 2
  125. net.ipv4.tcp_reordering = 3
  126. net.ipv4.tcp_retries2 = 15
  127. net.ipv4.tcp_retries1 = 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement