OpenShift Virtualization
TMA-OPENSHIFT-VIRT-1.7
Ensure KSM is disabled
낮음레벨 2자동openshift-virt
설명
Kernel Samepage Merging (KSM) is a Linux kernel feature that merges identical memory pages across virtual machines running on a single host, potentially reducing memory usage and improving system performance. Audit: Passes when .spec.ksmConfiguration of the HyperConverged resource is unset or false (KSM is disabled by default); any KSM node selector configuration fails. Requires oc logged in to the cluster with read access.
점검 방법
감사 방식: 셸 명령
shell
command -v oc >/dev/null 2>&1 || exit 1; v=$(oc get hyperconvergeds kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.ksmConfiguration}') || exit 1; case "$v" in ""|false|null|"{}") echo compliant;; *) echo noncompliant;; esac- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Disable the KSM feature.For example, by directly editing the object with oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv and set the field to false
속성
- 운영 체제
- 모두
- 태그
- openshift-virtmemoryksm
- 참고 자료
- CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.7 Ensure KSM is disabled
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target openshift-virt --level 2