feat(sysctl): 添加vm.overcommit_memory配置项

This commit is contained in:
严浩
2025-10-19 02:10:12 +08:00
parent 655716e8a6
commit c0ae95537c

1
1.sh
View File

@@ -62,6 +62,7 @@ sysctl_config() {
fi fi
SYSCTL_SETTINGS=( SYSCTL_SETTINGS=(
"vm.overcommit_memory=1"
"net.core.rmem_max=16777216" "net.core.rmem_max=16777216"
"net.core.wmem_max=16777216" "net.core.wmem_max=16777216"
"net.core.default_qdisc=fq_codel" "net.core.default_qdisc=fq_codel"