Advertisement
Guest User

Untitled

a guest
Apr 18th, 2023
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. fs.file-max = 2000000
  2. kernel.pid_max = 4194303
  3. #net.ipv4.tcp_mem = 262144 1572864 2097152
  4. net.core.rmem_default = 33554432
  5. net.core.rmem_max = 67108864
  6. net.core.wmem_default = 67108864
  7. net.core.wmem_max = 134217728
  8. net.core.optmem_max = 4194304
  9. net.ipv4.tcp_rmem = 4194304 33554432 67108864
  10. net.ipv4.tcp_wmem = 4194304 67108864 134217728
  11.  
  12. net.core.netdev_budget = 50000
  13. net.core.netdev_max_backlog = 100000
  14. net.ipv4.ip_local_port_range = 1024 65535
  15. net.ipv4.neigh.default.unres_qlen_bytes = 16777216
  16. net.core.somaxconn = 500000
  17. net.ipv4.tcp_max_syn_backlog = 500000
  18. net.ipv4.tcp_abort_on_overflow = 0
  19. net.ipv4.tcp_max_orphans = 262144
  20. net.ipv4.tcp_max_tw_buckets = 10000
  21. net.ipv4.tcp_mtu_probing = 2
  22. net.ipv4.tcp_base_mss = 1460
  23. net.ipv4.tcp_sack = 1
  24. net.ipv4.tcp_comp_sack_delay_ns = 2500000
  25. net.ipv4.tcp_comp_sack_nr = 10
  26. net.ipv4.tcp_dsack = 1
  27. #net.ipv4.tcp_ecn = 0
  28. net.ipv4.tcp_moderate_rcvbuf = 1
  29. net.ipv4.tcp_adv_win_scale = 2
  30. net.ipv4.tcp_reordering = 10
  31. net.ipv4.tcp_max_reordering = 600
  32. net.ipv4.tcp_synack_retries = 10
  33. net.ipv4.tcp_syn_retries = 7
  34. # In seconds, time default value for connections to keep alive
  35. net.ipv4.tcp_keepalive_time = 7200
  36. # How many keepalive probes TCP sends out, until it decides that the connection is broken
  37. net.ipv4.tcp_keepalive_probes = 15
  38. # In seconds, how frequently the probes are send out
  39. net.ipv4.tcp_keepalive_intvl = 60
  40. # Number of retries before killing a TCP connection
  41. # Time, after which TCP decides, that something is wrong due to unacknowledged RTO retransmissions,and reports this suspicion to the network layer.
  42. net.ipv4.tcp_retries1 = 3
  43. # Time, after which TCP decides to timeout the TCP connection, when RTO retransmissions remain unacknowledged
  44. net.ipv4.tcp_retries2 = 10
  45. # How many times to retry to kill connections on the other side before killing it on our own side
  46. net.ipv4.tcp_orphan_retries = 2
  47. #Disable TCP auto corking, as it needlessly increasing latency when the application doesn't expect to send more data
  48. net.ipv4.tcp_autocorking = 0
  49. # Disables Forward RTO-Recovery, since we are not operating on a lossy wireless network
  50. net.ipv4.tcp_frto = 0
  51. # Protect Against TCP TIME-WAIT Assassination
  52. net.ipv4.tcp_rfc1337 = 1
  53. # Avoid falling back to slow start after a connection goes idle
  54. net.ipv4.tcp_slow_start_after_idle = 0
  55. # Enable both client support & server support of TCP Fast Open
  56. net.ipv4.tcp_fastopen = 3
  57. # Disable timestamps
  58. net.ipv4.tcp_timestamps = 0
  59. # Keep sockets in the state FIN-WAIT-2 for ultra short period if we were the one closing the socket, because this gives us no benefit and eats up memory
  60. net.ipv4.tcp_fin_timeout = 5
  61. # Do not cache metrics on closing connections
  62. net.ipv4.tcp_no_metrics_save = 1
  63. # Enable reuse of TIME-WAIT sockets for new connections
  64. net.ipv4.tcp_tw_reuse = 1
  65. # Allows the use of a large window (> 64 kB) on a TCP connection
  66. net.ipv4.tcp_window_scaling = 1
  67. # Set maximum window size to MAX_TCP_WINDOW i.e. 32767 in times there is no received window scaling option
  68. net.ipv4.tcp_workaround_signed_windows = 1
  69. # The maximum amount of unsent bytes in TCP socket write queue, this is on top of the congestion window
  70. net.ipv4.tcp_notsent_lowat = 131072
  71. # Controls the amount of data in the Qdisc queue or device queue
  72. net.ipv4.tcp_limit_output_bytes = 3276800
  73. # Controls a per TCP socket cache of one socket buffer
  74. # Use Huge amount of memory
  75. #net.ipv4.tcp_rx_skb_cache = 1
  76. # Congestion Control
  77. net.core.default_qdisc = fq
  78. net.ipv4.tcp_congestion_control = bbr
  79. net.netfilter.nf_conntrack_max=200000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement