Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. {
  2. # System config tweaks for performance and scale
  3. # See linux manpages for proc (5), tcp (7), and ip (7)
  4. boot.kernelModules = [ "tcp_bbr" ];
  5. boot.kernel.sysctl = {
  6. # Network
  7. "net.core.rmem_max" = 16777216;
  8. "net.core.wmem_max" = 16777216;
  9. "net.core.optmem_max" = 16777216;
  10. "net.core.default_qdisc" = pkgs.lib.mkDefault "fq_codel";
  11. "net.ipv4.tcp_congestion_control" = "bbr";
  12. "net.ipv4.tcp_slow_start_after_idle" = 0;
  13. "net.ipv4.tcp_tw_reuse" = 1;
  14. "net.ipv4.tcp_rfc1337" = 1;
  15. "net.ipv4.tcp_syn_retries" = 2;
  16. "net.ipv4.tcp_synack_retries" = 2;
  17. "net.ipv4.tcp_orphan_retries" = 2;
  18. "net.ipv4.tcp_retries2" = 8;
  19. "net.ipv4.tcp_max_syn_backlog" = 102400;
  20. "net.ipv4.tcp_max_tw_buckets" = 51200;
  21. "net.ipv4.tcp_mtu_probing" = 1;
  22. "net.ipv4.tcp_fin_timeout" = 15;
  23. "net.ipv4.tcp_keepalive_intvl" = 30;
  24. "net.ipv4.tcp_keepalive_probes" = 3;
  25. "net.ipv4.tcp_keepalive_time" = 600;
  26. "net.ipv4.tcp_rmem" = "4096 87380 16777216";
  27. "net.ipv4.tcp_wmem" = "4096 65536 16777216";
  28. "net.ipv4.tcp_fastopen" = 3;
  29. "net.ipv4.ip_local_port_range" = "1024 65535";
  30. };
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement