From d80c3d1b84e38fc56cb41e1b8bfea2e027cb7021 Mon Sep 17 00:00:00 2001 From: gyt0221 <846772234@qq.com> Date: Tue, 27 Oct 2020 15:54:44 +0800 Subject: [PATCH] =?UTF-8?q?om=20check=E9=80=82=E9=85=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=C2=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manager/om/script/local/LocalCheck.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/manager/om/script/local/LocalCheck.py b/src/manager/om/script/local/LocalCheck.py index a037986fc..0d20908cd 100644 --- a/src/manager/om/script/local/LocalCheck.py +++ b/src/manager/om/script/local/LocalCheck.py @@ -233,9 +233,10 @@ def checkSysctlParameter(kernelParameter, isSet): # does not have vm.extfrag_threshold parameter, skip check if (patchlevel == "1" and key == "vm.extfrag_threshold"): continue - # Skip check net.ipv4.tcp_tw_recycle with ARM - if ((platform.machine() == "aarch64" or platform.release().endswith("oe1.x86_64")) - and key == "net.ipv4.tcp_tw_recycle"): + sysFile = "/proc/sys/%s" % key.replace('.', '/') + # High version of linux no longer supports tcp_tw_recycle + if not os.path.exists( + sysFile) and key == "net.ipv4.tcp_tw_recycle": continue if (DefaultValue.checkDockerEnv() and key in docker_no_need_check): continue