2.13. 安装并启用 TuneD
此流程安装并启用 TuneD 应用程序,安装 TuneD 配置文件,并为您的系统预设默认 TuneD 配置文件。
流程
安装
Tuned软件包:dnf install tuned
# dnf install tunedCopy to Clipboard Copied! Toggle word wrap Toggle overflow 启用并启动
TuneD服务:systemctl enable --now tuned
# systemctl enable --now tunedCopy to Clipboard Copied! Toggle word wrap Toggle overflow 可选:为实时系统安装 TuneD 配置文件:
对于实时系统的 TuneD 配置文件,启用
rhel-9存储库。subscription-manager repos --enable=rhel-9-for-x86_64-nfv-beta-rpms
# subscription-manager repos --enable=rhel-9-for-x86_64-nfv-beta-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 安装它。
dnf install tuned-profiles-realtime tuned-profiles-nfv
# dnf install tuned-profiles-realtime tuned-profiles-nfvCopy to Clipboard Copied! Toggle word wrap Toggle overflow 验证 TuneD 配置文件是否活跃并应用:
tuned-adm active Current active profile: throughput-performance
$ tuned-adm active Current active profile: throughput-performanceCopy to Clipboard Copied! Toggle word wrap Toggle overflow 注意活跃的配置文件 TuneD 会根据您的机器类型和系统设置会自动进行不同的预置。
tuned-adm verify Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.$ tuned-adm verify Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.Copy to Clipboard Copied! Toggle word wrap Toggle overflow