From d0cd8e8ca89b15b7e0f0ee104c4e61a6b2e7ac8f Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Fri, 14 Jul 2023 17:50:17 +0800 Subject: [PATCH] =?UTF-8?q?HAL=E6=94=AF=E6=8C=81mrglobal.conf=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=B8=ADpoll=5Fwait=5Fthrottle=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/tsg-os-HAL/files/conf/tsg-os-HAL.conf | 1 + ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ansible/roles/tsg-os-HAL/files/conf/tsg-os-HAL.conf b/ansible/roles/tsg-os-HAL/files/conf/tsg-os-HAL.conf index 2e5ff8be..1c5aa18d 100644 --- a/ansible/roles/tsg-os-HAL/files/conf/tsg-os-HAL.conf +++ b/ansible/roles/tsg-os-HAL/files/conf/tsg-os-HAL.conf @@ -7,3 +7,4 @@ # MRZCPD_DIRECT_PKTMBUF= # MRZCPD_INDIRECT_PKTMBUF= +# MRZCPD_POLL_WAIT_THROTTLE= diff --git a/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh b/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh index 8f75612e..5579ed2e 100644 --- a/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh +++ b/ansible/roles/tsg-os-HAL/files/script/tsg-os-HAL.sh @@ -19,6 +19,7 @@ MRZCPD_IOCORE= CLIXON_IOCORE= MRZCPD_DIRECT_PKTMBUF= MRZCPD_INDIRECT_PKTMBUF= +MRZCPD_POLL_WAIT_THROTTLE=512 load_tsg_os_HAL_config() { @@ -59,6 +60,8 @@ set_tsg_clixon_conf() [ -f ${mrglobal_cfg_template} ] && sed -i "s/^iocore=.*$/iocore=${MRZCPD_IOCORE}/g" ${mrglobal_cfg_template} + [ -f ${mrglobal_cfg_template} ] && sed -i "s/^poll_wait_throttle=.*$/poll_wait_throttle=${MRZCPD_POLL_WAIT_THROTTLE}/g" ${mrglobal_cfg_template} + [ -f ${tsg_clixon_cfg_file} ] && sed -i "s/^cpu_range=.*$/cpu_range=${CLIXON_IOCORE}/g" ${tsg_clixon_cfg_file} }