mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
更新系统 sysctl 参数
This commit is contained in:
+8
-4
@@ -187,14 +187,18 @@ $ sudo nvim /etc/sysctl.d/99-sysctl.conf
|
|||||||
kernel.panic = 20
|
kernel.panic = 20
|
||||||
kernel.panic_on_oops = 1
|
kernel.panic_on_oops = 1
|
||||||
|
|
||||||
net.core.default_qdisc = fq_codel
|
net.core.default_qdisc = pfifo_fast
|
||||||
net.ipv4.tcp_congestion_control = bbr
|
net.ipv4.tcp_congestion_control = cubic
|
||||||
|
|
||||||
# Other adjustable system parameters
|
# Other adjustable system parameters
|
||||||
|
|
||||||
net.core.netdev_budget = 600
|
net.core.netdev_budget = 600
|
||||||
net.core.netdev_budget_usecs = 20000
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
|
net.core.somaxconn = 8192
|
||||||
|
net.core.rmem_max = 16777216
|
||||||
|
net.core.wmem_max = 16777216
|
||||||
|
|
||||||
net.ipv4.conf.all.log_martians = 1
|
net.ipv4.conf.all.log_martians = 1
|
||||||
|
|
||||||
net.ipv4.igmp_max_memberships = 256
|
net.ipv4.igmp_max_memberships = 256
|
||||||
@@ -203,8 +207,8 @@ 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_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
net.ipv4.tcp_rmem = 8192 262144 536870912
|
net.ipv4.tcp_rmem = 16384 262144 8388608
|
||||||
net.ipv4.tcp_wmem = 4096 16384 536870912
|
net.ipv4.tcp_wmem = 32768 524288 16777216
|
||||||
|
|
||||||
net.ipv6.conf.all.use_tempaddr = 0
|
net.ipv6.conf.all.use_tempaddr = 0
|
||||||
net.ipv6.conf.default.use_tempaddr = 0
|
net.ipv6.conf.default.use_tempaddr = 0
|
||||||
|
|||||||
+5
-2
@@ -192,6 +192,9 @@ net.core.netdev_budget = 600
|
|||||||
net.core.netdev_budget_usecs = 20000
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
net.core.rps_sock_flow_entries = 32768
|
net.core.rps_sock_flow_entries = 32768
|
||||||
|
net.core.somaxconn = 8192
|
||||||
|
net.core.rmem_max = 16777216
|
||||||
|
net.core.wmem_max = 16777216
|
||||||
|
|
||||||
net.ipv4.conf.all.accept_redirects = 0
|
net.ipv4.conf.all.accept_redirects = 0
|
||||||
net.ipv4.conf.default.accept_redirects = 0
|
net.ipv4.conf.default.accept_redirects = 0
|
||||||
@@ -219,8 +222,8 @@ 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_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
net.ipv4.tcp_rmem = 8192 262144 536870912
|
net.ipv4.tcp_rmem = 16384 262144 8388608
|
||||||
net.ipv4.tcp_wmem = 4096 16384 536870912
|
net.ipv4.tcp_wmem = 32768 524288 16777216
|
||||||
|
|
||||||
net.ipv6.conf.all.accept_ra = 0
|
net.ipv6.conf.all.accept_ra = 0
|
||||||
net.ipv6.conf.default.accept_ra = 0
|
net.ipv6.conf.default.accept_ra = 0
|
||||||
|
|||||||
@@ -4,14 +4,18 @@
|
|||||||
kernel.panic = 20
|
kernel.panic = 20
|
||||||
kernel.panic_on_oops = 1
|
kernel.panic_on_oops = 1
|
||||||
|
|
||||||
net.core.default_qdisc = fq_codel
|
net.core.default_qdisc = pfifo_fast
|
||||||
net.ipv4.tcp_congestion_control = bbr
|
net.ipv4.tcp_congestion_control = cubic
|
||||||
|
|
||||||
# Other adjustable system parameters
|
# Other adjustable system parameters
|
||||||
|
|
||||||
net.core.netdev_budget = 600
|
net.core.netdev_budget = 600
|
||||||
net.core.netdev_budget_usecs = 20000
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
|
net.core.somaxconn = 8192
|
||||||
|
net.core.rmem_max = 16777216
|
||||||
|
net.core.wmem_max = 16777216
|
||||||
|
|
||||||
net.ipv4.conf.all.log_martians = 1
|
net.ipv4.conf.all.log_martians = 1
|
||||||
|
|
||||||
net.ipv4.igmp_max_memberships = 256
|
net.ipv4.igmp_max_memberships = 256
|
||||||
@@ -20,8 +24,8 @@ 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_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
net.ipv4.tcp_rmem = 8192 262144 536870912
|
net.ipv4.tcp_rmem = 16384 262144 8388608
|
||||||
net.ipv4.tcp_wmem = 4096 16384 536870912
|
net.ipv4.tcp_wmem = 32768 524288 16777216
|
||||||
|
|
||||||
net.ipv6.conf.all.use_tempaddr = 0
|
net.ipv6.conf.all.use_tempaddr = 0
|
||||||
net.ipv6.conf.default.use_tempaddr = 0
|
net.ipv6.conf.default.use_tempaddr = 0
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ net.core.netdev_budget = 600
|
|||||||
net.core.netdev_budget_usecs = 20000
|
net.core.netdev_budget_usecs = 20000
|
||||||
|
|
||||||
net.core.rps_sock_flow_entries = 32768
|
net.core.rps_sock_flow_entries = 32768
|
||||||
|
net.core.somaxconn = 8192
|
||||||
|
net.core.rmem_max = 16777216
|
||||||
|
net.core.wmem_max = 16777216
|
||||||
|
|
||||||
net.ipv4.conf.all.accept_redirects = 0
|
net.ipv4.conf.all.accept_redirects = 0
|
||||||
net.ipv4.conf.default.accept_redirects = 0
|
net.ipv4.conf.default.accept_redirects = 0
|
||||||
@@ -45,8 +48,8 @@ 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_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
net.ipv4.tcp_rmem = 8192 262144 536870912
|
net.ipv4.tcp_rmem = 16384 262144 8388608
|
||||||
net.ipv4.tcp_wmem = 4096 16384 536870912
|
net.ipv4.tcp_wmem = 32768 524288 16777216
|
||||||
|
|
||||||
net.ipv6.conf.all.accept_ra = 0
|
net.ipv6.conf.all.accept_ra = 0
|
||||||
net.ipv6.conf.default.accept_ra = 0
|
net.ipv6.conf.default.accept_ra = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user