mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
优化 sysctl 配置
This commit is contained in:
+4
-3
@@ -191,15 +191,16 @@ net.ipv4.tcp_congestion_control = bbr
|
|||||||
|
|
||||||
# Other adjustable system parameters
|
# Other adjustable system parameters
|
||||||
|
|
||||||
|
net.core.netdev_budget = 600
|
||||||
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
net.ipv4.conf.all.log_martians = 1
|
net.ipv4.conf.all.log_martians = 1
|
||||||
|
|
||||||
net.ipv4.igmp_max_memberships = 100
|
net.ipv4.igmp_max_memberships = 256
|
||||||
|
|
||||||
net.ipv4.tcp_challenge_ack_limit = 1000
|
net.ipv4.tcp_challenge_ack_limit = 1000
|
||||||
net.ipv4.tcp_fin_timeout = 30
|
net.ipv4.tcp_fin_timeout = 30
|
||||||
net.ipv4.tcp_keepalive_time = 120
|
net.ipv4.tcp_keepalive_time = 120
|
||||||
net.ipv4.tcp_max_orphans = 4096
|
|
||||||
net.ipv4.tcp_max_tw_buckets = 4096
|
|
||||||
net.ipv4.tcp_syncookies = 1
|
net.ipv4.tcp_syncookies = 1
|
||||||
|
|
||||||
net.ipv6.conf.all.use_tempaddr = 0
|
net.ipv6.conf.all.use_tempaddr = 0
|
||||||
|
|||||||
@@ -9,15 +9,16 @@ net.ipv4.tcp_congestion_control = bbr
|
|||||||
|
|
||||||
# Other adjustable system parameters
|
# Other adjustable system parameters
|
||||||
|
|
||||||
|
net.core.netdev_budget = 600
|
||||||
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
net.ipv4.conf.all.log_martians = 1
|
net.ipv4.conf.all.log_martians = 1
|
||||||
|
|
||||||
net.ipv4.igmp_max_memberships = 100
|
net.ipv4.igmp_max_memberships = 256
|
||||||
|
|
||||||
net.ipv4.tcp_challenge_ack_limit = 1000
|
net.ipv4.tcp_challenge_ack_limit = 1000
|
||||||
net.ipv4.tcp_fin_timeout = 30
|
net.ipv4.tcp_fin_timeout = 30
|
||||||
net.ipv4.tcp_keepalive_time = 120
|
net.ipv4.tcp_keepalive_time = 120
|
||||||
net.ipv4.tcp_max_orphans = 4096
|
|
||||||
net.ipv4.tcp_max_tw_buckets = 4096
|
|
||||||
net.ipv4.tcp_syncookies = 1
|
net.ipv4.tcp_syncookies = 1
|
||||||
|
|
||||||
net.ipv6.conf.all.use_tempaddr = 0
|
net.ipv6.conf.all.use_tempaddr = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user