嘟嘟社区

分享点东西


  1. cat >/etc/sysctl.conf<<EOF
  2. fs.file-max = 104857600
  3. fs.nr_open = 1048576
  4. vm.overcommit_memory = 1
  5. net.core.somaxconn = 65535
  6. net.core.optmem_max = 262144
  7. net.core.rmem_max = 8388608
  8. net.core.wmem_max = 8388608
  9. net.core.rmem_default = 262144
  10. net.core.wmem_default = 262144
  11. net.core.netdev_max_backlog = 65536
  12. net.ipv4.tcp_mem = 4096 262144 8388608
  13. net.ipv4.tcp_rmem = 4096 262144 8388608
  14. net.ipv4.tcp_wmem = 4096 262144 8388608
  15. net.ipv4.tcp_syncookies = 1
  16. net.ipv4.tcp_syn_retries = 3
  17. net.ipv4.tcp_synack_retries = 2
  18. net.ipv4.tcp_max_syn_backlog = 65535
  19. net.ipv4.tcp_fin_timeout = 16
  20. net.ipv4.tcp_keepalive_intvl = 32
  21. net.ipv4.tcp_keepalive_probes = 3
  22. net.ipv4.tcp_keepalive_time = 900
  23. net.ipv4.tcp_retries1 = 3
  24. net.ipv4.tcp_retries2 = 8
  25. net.ipv4.tcp_no_metrics_save = 1
  26. net.ipv4.tcp_timestamps = 1
  27. net.ipv4.tcp_slow_start_after_idle = 0
  28. net.ipv4.ip_forward = 1
  29. net.core.default_qdisc = cake
  30. net.ipv4.tcp_congestion_control = bbr
  31. net.ipv4.icmp_echo_ignore_all = 0
  32. net.ipv6.conf.all.disable_ipv6 = 0
  33. net.ipv4.tcp_fastopen = 0
  34. net.ipv4.tcp_fack = 1
  35. net.ipv4.tcp_sack = 1
  36. net.ipv4.tcp_dsack = 1
  37. net.ipv4.tcp_ecn = 0
  38. net.ipv4.tcp_ecn_fallback = 1
  39. EOF

复制代码

tip, tip分享列表
分享不说用途让我猜是吧?
没猜错的话就是优化网络有关的
仿佛回到了0几年
这是啥

kmbeer 发表于 2022-9-4 19:43
仿佛回到了0几年

你这是回光返照

回到逗逼未被抓之前的时光
内核配置
估计没什么用,.