community.sap_install
community.sap_install copied to clipboard
sap_hana_preconfigure: KSM: ksmtuned needs to be disabled as well, not just the ksm service. (lsr/sap-hana-preconfigure issue #124)
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issue-721329947, reported by berndfinger:
See (for example) https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm#sect-KSM-Deactivating_KSM . The SAP notes for recommended OS settings for SAP HANA on RHEL also have to be changed accordingly.
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issuecomment-750316334 (comment by berndfinger):
Link for RHEL 8: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_and_managing_virtualization/index#deactivating-ksm_optimizing-virtual-machine-cpu-performance .
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issuecomment-750316413 (comment by berndfinger):
The role does not use the ksm service at all but uses file based configuration as per SAP note 2777782 v17 (RHEL 8) and 2292690 v37 (RHEL 7).
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issuecomment-750343224 (comment by berndfinger):
As per https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm#sect-KSM-The_KSM_service , the ksm service is part of package qemu-kvm. In RHEL 7 and RHEL 8, as per: $ yum whatprovides /usr/lib/systemd/system/ksm.service and $ yum whatprovides /usr/lib/systemd/system/ksmtuned.service , the ksm and ksmtuned services are contained in package qemu-kvm-common . None of these packages will be installed when installing RHEL 7 or RHEL 8 as per SAP notes 2002167 or 2772999 on a virtual system.
To be on the safe side, we could just disable services ksm and ksm.tuned in case the corresponding package is installed or these services are available.
No further comment or related request after the last update on 28-Jan-2022 -> backlog