From 3ce5a2a120d1e3df040af20fa89266b72f121dba Mon Sep 17 00:00:00 2001 From: Wang Defa <1+wangdefa@noreply.gitea.bcde.io> Date: Wed, 5 Aug 2026 11:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=A7=E9=A1=B5=E5=86=85?= =?UTF-8?q?=E5=AD=98=E9=85=8D=E7=BD=AE=E5=87=BD=E6=95=B0=EF=BC=8C=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/install.deb.sh | 11 ----------- script/install.sh | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/script/install.deb.sh b/script/install.deb.sh index 72d5671..acbcc0f 100755 --- a/script/install.deb.sh +++ b/script/install.deb.sh @@ -101,16 +101,6 @@ configure_cpu_rx() { jq ".cpu.$field = [ $rx_array ]" "$CONFIG_FILE" >"$CONFIG_FILE.tmp" && mv "$CONFIG_FILE.tmp" "$CONFIG_FILE" } -# 配置大页内存 -configure_hugepages() { - if [[ "$one_gb_pages" == "true" ]]; then - log "$BLUE" "配置 大页内存..." - sysctl -w vm.nr_hugepages=3072 - echo "vm.nr_hugepages=3072" >>/etc/sysctl.conf - log "$GREEN" "大页内存配置完成" - fi -} - # 更新配置文件 replace_config() { [[ ! -f "$CONFIG_FILE" ]] && error "配置文件缺失" @@ -147,7 +137,6 @@ replace_config() { jq "$jq_cmd" "$CONFIG_FILE" >"$CONFIG_FILE.tmp" && mv "$CONFIG_FILE.tmp" "$CONFIG_FILE" configure_cpu_rx - configure_hugepages } show_usage() { diff --git a/script/install.sh b/script/install.sh index bb440a9..a284997 100644 --- a/script/install.sh +++ b/script/install.sh @@ -108,16 +108,6 @@ configure_cpu_rx() { jq ".cpu.$field = [ $rx_array ]" "$CONFIG_FILE" >"$CONFIG_FILE.tmp" && mv "$CONFIG_FILE.tmp" "$CONFIG_FILE" } -# 配置大页内存 -configure_hugepages() { - if [[ "$one_gb_pages" == "true" ]]; then - log "$BLUE" "配置 大页内存..." - sysctl -w vm.nr_hugepages=3072 - echo "vm.nr_hugepages=3072" >>/etc/sysctl.conf - log "$GREEN" "大页内存配置完成" - fi -} - # 更新配置文件 replace_config() { [[ ! -f "$CONFIG_FILE" ]] && error "配置文件缺失" @@ -154,7 +144,6 @@ replace_config() { jq "$jq_cmd" "$CONFIG_FILE" >"$CONFIG_FILE.tmp" && mv "$CONFIG_FILE.tmp" "$CONFIG_FILE" configure_cpu_rx - configure_hugepages } # 创建并启动服务