Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 4. Disabling the resource optimization service
4.1. Removing resource optimization files and data Link kopierenLink in die Zwischenablage kopiert!
Using Ansible to disable the resource optimization service
Perform the following steps on each system to disable and uninstall the resource optimization service.
Procedure
Download the Ansible Playbook with the following command:
curl -O https://raw.githubusercontent.com/RedHatInsights/ros-backend/v1.0/ansible-playbooks/ros_disable.yml
$ curl -O https://raw.githubusercontent.com/RedHatInsights/ros-backend/v1.0/ansible-playbooks/ros_disable.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the Ansible Playbook using command:
ansible-playbook -c local ros_disable_and_clean_up.yml
# ansible-playbook -c local ros_disable_and_clean_up.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Uninstalling the playbook does not stop or remove the Performance Co-Pilot (PCP) toolkit. Note that PCP may support multiple applications. If you are using PCP exclusively for the resource optimization service, and desire to remove PCP as well, there are a couple options. You can stop and disable the pmlogger and pmcd services, or remove PCP completely by uninstalling the pcp package from the system.
Manually disabling the resource optimization service without the use of Ansible
The use of Ansible is recommended to expedite the uninstallation process. If you choose to not use Ansible, use the manual procedure that follows:
Procedure
Disable resource optimization service metrics collection by removing this line from
/etc/pcp/pmlogger/control.d/localLOCALHOSTNAME n y PCP_LOG_DIR/pmlogger/ros -r -T24h10m -c config.ros -v 100Mb
LOCALHOSTNAME n y PCP_LOG_DIR/pmlogger/ros -r -T24h10m -c config.ros -v 100MbCopy to Clipboard Copied! Toggle word wrap Toggle overflow Restart PCP so that resource optimization service metrics collection is effectively stopped:
sudo systemctl pmcd pmlogger
$ sudo systemctl pmcd pmloggerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the resource optimization service configuration file
sudo rm /var/lib/pcp/config/pmlogger/config.ros
$ sudo rm /var/lib/pcp/config/pmlogger/config.rosCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the resource optimization data from the system
sudo rm -rf /var/log/pcp/pmlogger/ros
$ sudo rm -rf /var/log/pcp/pmlogger/rosCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you are not using PCP for anything else, you can remove it from your system
sudo yum remove pcp
$ sudo yum remove pcpCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Disabling kernel pressure stall information (PSI) Link kopierenLink in die Zwischenablage kopiert!
Procedure
-
Edit the
/etc/default/grubfile and removepsi=1from the GRUB_CMDLINE_LINUX line. Regenerate the grub configuration file.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[user]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfgCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Reboot the system.
Verification step
When PSI is disabled, /proc/pressure does not exist.