From fc27f25f94d75e4916cc1ab368379f8ac8fdd0a2 Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Sat, 26 Apr 2025 23:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20TS=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=20sysctl=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07.PVE制作TS服务器.md | 5 +++-- src/debian/debian_ts_99_sysctl.conf | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/07.PVE制作TS服务器.md b/07.PVE制作TS服务器.md index 272213d..93ba8ac 100644 --- a/07.PVE制作TS服务器.md +++ b/07.PVE制作TS服务器.md @@ -242,14 +242,15 @@ net.ipv4.route.error_cost = 100 net.ipv4.route.redirect_load = 2 net.ipv4.route.redirect_silence = 2048 +net.ipv4.tcp_adv_win_scale = -2 net.ipv4.tcp_challenge_ack_limit = 1000 net.ipv4.tcp_fastopen = 3 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 120 net.ipv4.tcp_max_syn_backlog = 512 net.ipv4.tcp_notsent_lowat = 131072 -net.ipv4.tcp_rmem = 4096 87380 26214400 -net.ipv4.tcp_wmem = 4096 16384 655360 +net.ipv4.tcp_rmem = 8192 262144 536870912 +net.ipv4.tcp_wmem = 4096 16384 536870912 net.ipv6.conf.all.accept_redirects = 0 net.ipv6.conf.default.accept_redirects = 0 diff --git a/src/debian/debian_ts_99_sysctl.conf b/src/debian/debian_ts_99_sysctl.conf index f85f0a4..31611eb 100644 --- a/src/debian/debian_ts_99_sysctl.conf +++ b/src/debian/debian_ts_99_sysctl.conf @@ -45,14 +45,15 @@ net.ipv4.route.error_cost = 100 net.ipv4.route.redirect_load = 2 net.ipv4.route.redirect_silence = 2048 +net.ipv4.tcp_adv_win_scale = -2 net.ipv4.tcp_challenge_ack_limit = 1000 net.ipv4.tcp_fastopen = 3 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 120 net.ipv4.tcp_max_syn_backlog = 512 net.ipv4.tcp_notsent_lowat = 131072 -net.ipv4.tcp_rmem = 4096 87380 26214400 -net.ipv4.tcp_wmem = 4096 16384 655360 +net.ipv4.tcp_rmem = 8192 262144 536870912 +net.ipv4.tcp_wmem = 4096 16384 536870912 net.ipv6.conf.all.accept_redirects = 0 net.ipv6.conf.default.accept_redirects = 0