Click on each book below to review & buy on Amazon.
As an Amazon Associate, I earn from qualifying purchases.
RHCSA - Operate Running Systems: Manage Tuning Profiles
The tuned
daemon and a set of utilities allow allow you to optimize your system's performance based on different profiles. These profiles are predefined configurations that tune various kernel and system settings to best suit specific workloads or use cases.
Tuning Profiles
The below table shows the tuning profiles that should be available on your system:
Profile | Description |
---|---|
accelerator-performance | Throughput performance based tuning with disabled higher latency STOP states |
aws | Optimize for AWS EC2 instances |
balanced | General non-specialized tuned profile |
desktop | Optimize for the desktop use-case |
hpc-compute | Optimize for HPC compute workloads |
intel-sst | Configure for Intel Speed Select Base Frequency |
latency-performance | Optimize for deterministic performance at the cost of increased power consumption |
network-latency | Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network ormance |
network-throughput | Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks |
optimize-serial-console | Optimize for serial console use |
powersave | Optimize for low power consumption |
throughput-performance | Broadly applicable tuning that provides excellent performance across a variety of common server workloads |
virtual-guest | Optimize for running inside a virtual guest |
virtual-host | Optimize for running KVM guests |
Enable & Start tuned
The tuned
daemon may not be enabled or running by default so you will need to check and correct this before being able to use tuning profiles.
Enable and start tuned
:
Ensure the tuned
service is enabled and running:
sudo systemctl enable --now tuned
Check the service status shows as active (running)
:
systemctl status tuned
Output should look similar to:
- tuned.service - Dynamic System Tuning Daemon
Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; preset: enabled)
Active: active (running) since Mon 2023-07-24 08:14:04 BST; 1s ago
Docs: man:tuned(8)
man:tuned.conf(5)
man:tuned-adm(8)
Main PID: 3913 (tuned)
Tasks: 4 (limit: 48714)
Memory: 15.8M
CPU: 284ms
CGroup: /system.slice/tuned.service
|-- 3913 /usr/bin/python3 -Es /usr/sbin/tuned -l -P
Jul 24 08:14:04 rhcsa-install.home.arpa systemd[1]: Starting Dynamic System Tuning Daemon...
Jul 24 08:14:04 rhcsa-install.home.arpa systemd[1]: Started Dynamic System Tuning Daemon.
tuned-adm Command
The tuned-adm command line tool is used for switching between different tuning profiles. Some of the common options are:
- list: List all available profiles.
- active: Show current active profile.
- profile [profile_name]...: Switches to the given profile. If more than one profile is given, the profiles are merged (in case of conflicting settings, the setting from the last profile is used) and the resulting profile is applied.
- recommend: Recommends a profile suitable for your system.
- auto_profile: Enable automatic profile selection mode, switch to the recommended profile.
tuned-adm exercises
List the available profiles:
tuned-adm list
The output should display the profiles detailed in section Tuning Profiles above.
Display the currently active profile:
tuned-adm active
Command output example:
Current active profile: virtual-guest
Change the active profile:
sudo tuned-adm profile latency-performance
Confirm the active profile has changed:
tuned-adm active
Command output example:
Current active profile: latency-performance
Display the recommended tuning profile:
tuned-adm recommend
Output example:
virtual-guest
Enable automatic profile selection:
sudo tuned-adm auto_profile
Confirm the active profile has changed to the recommended tuning profile:
tuned-adm active
Command output example:
Current active profile: virtual-guest
Support DTV Linux
Click on each book below to review & buy on Amazon. As an Amazon Associate, I earn from qualifying purchases.
NordVPN ®: Elevate your online privacy and security. Grab our Special Offer to safeguard your data on public Wi-Fi and secure your devices. I may earn a commission on purchases made through this link.