更新内核参数

This commit is contained in:
CallMeR
2025-01-08 22:13:00 +08:00
parent 8d2f3e98de
commit 1ce40c7a36
4 changed files with 16 additions and 16 deletions
+4 -4
View File
@@ -221,8 +221,8 @@ net.core.netdev_budget = 600
net.core.netdev_budget_usecs = 20000 net.core.netdev_budget_usecs = 20000
net.core.somaxconn = 8192 net.core.somaxconn = 8192
net.core.rmem_max = 16777216 net.core.rmem_max = 26214400
net.core.wmem_max = 16777216 net.core.wmem_max = 655360
net.ipv4.conf.all.log_martians = 1 net.ipv4.conf.all.log_martians = 1
@@ -233,8 +233,8 @@ net.ipv4.tcp_fastopen = 3
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 = 16384 262144 8388608 net.ipv4.tcp_rmem = 4096 87380 26214400
net.ipv4.tcp_wmem = 32768 524288 16777216 net.ipv4.tcp_wmem = 4096 16384 655360
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
+4 -4
View File
@@ -218,8 +218,8 @@ 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.somaxconn = 8192
net.core.rmem_max = 16777216 net.core.rmem_max = 26214400
net.core.wmem_max = 16777216 net.core.wmem_max = 655360
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
@@ -248,8 +248,8 @@ net.ipv4.tcp_fastopen = 3
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 = 16384 262144 8388608 net.ipv4.tcp_rmem = 4096 87380 26214400
net.ipv4.tcp_wmem = 32768 524288 16777216 net.ipv4.tcp_wmem = 4096 16384 655360
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 -4
View File
@@ -13,8 +13,8 @@ net.core.netdev_budget = 600
net.core.netdev_budget_usecs = 20000 net.core.netdev_budget_usecs = 20000
net.core.somaxconn = 8192 net.core.somaxconn = 8192
net.core.rmem_max = 16777216 net.core.rmem_max = 26214400
net.core.wmem_max = 16777216 net.core.wmem_max = 655360
net.ipv4.conf.all.log_martians = 1 net.ipv4.conf.all.log_martians = 1
@@ -25,8 +25,8 @@ net.ipv4.tcp_fastopen = 3
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 = 16384 262144 8388608 net.ipv4.tcp_rmem = 4096 87380 26214400
net.ipv4.tcp_wmem = 32768 524288 16777216 net.ipv4.tcp_wmem = 4096 16384 655360
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
+4 -4
View File
@@ -19,8 +19,8 @@ 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.somaxconn = 8192
net.core.rmem_max = 16777216 net.core.rmem_max = 26214400
net.core.wmem_max = 16777216 net.core.wmem_max = 655360
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
@@ -49,8 +49,8 @@ net.ipv4.tcp_fastopen = 3
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 = 16384 262144 8388608 net.ipv4.tcp_rmem = 4096 87380 26214400
net.ipv4.tcp_wmem = 32768 524288 16777216 net.ipv4.tcp_wmem = 4096 16384 655360
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