13.2. Optimizing virtual machine performance using TuneD
The TuneD utility is a tuning profile delivery mechanism that adapts RHEL for certain workload characteristics, such as requirements for CPU-intensive tasks or storage-network throughput responsiveness. It provides a number of tuning profiles that are pre-configured to enhance performance and reduce power consumption in a number of specific use cases. You can edit these profiles or create new profiles to create performance solutions tailored to your environment, including virtualized environments.
To optimize RHEL 9 for virtualization, use the following profiles:
-
For RHEL 9 virtual machines, use the virtual-guest profile. It is based on the generally applicable
throughput-performanceprofile, but also decreases the swappiness of virtual memory. - For RHEL 9 virtualization hosts, use the virtual-host profile. This enables more aggressive writeback of dirty memory pages, which benefits the host performance.
Conditions préalables
-
The
TuneDservice is installed and enabled.
Procédure
To enable a specific TuneD profile:
List the available
TuneDprofiles.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Create a new
TuneDprofile or edit an existingTuneDprofile.For more information, see Customizing TuneD profiles.
Activate a
TuneDprofile.tuned-adm profile selected-profile
# tuned-adm profile selected-profileCopy to Clipboard Copied! Toggle word wrap Toggle overflow To optimize a virtualization host, use the virtual-host profile.
tuned-adm profile virtual-host
# tuned-adm profile virtual-hostCopy to Clipboard Copied! Toggle word wrap Toggle overflow On a RHEL guest operating system, use the virtual-guest profile.
tuned-adm profile virtual-guest
# tuned-adm profile virtual-guestCopy to Clipboard Copied! Toggle word wrap Toggle overflow