tuned-adm: Configuración de Perfiles de Rendimiento en Linux

tuned-adm es una herramienta que podemos utilizar a partir de Linux RedHat 8, que sirve para configurar un perfil de rendimiento para nuestro sistema como, por ejemplo, para el uso de bases de datos, rendimiento máximo, ahorro de energía o servidor virtual entre otros.

Para poder utilizar tuned-adm, tenemos que instalar el paquete tuned.

[root@server1 ~]# dnf install tuned -y
[root@server1 ~]# rpm -qa |grep -i tune
tuned-2.15.0-2.el8_4.1.noarch
[root@server1 ~]# 

Activación del servicio tuned

Para poder utilizar tuned-adm una vez instalado, el servicio del sistema tiene que estar activo:

[root@server1 ~]# systemctl enable tuned
[root@server1 ~]# systemctl start tuned
[root@server1 ~]# systemctl status tuned
● tuned.service - Dynamic System Tuning Daemon
   Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-08-05 11:39:31 CEST; 6min ago
     Docs: man:tuned(8)
           man:tuned.conf(5)
           man:tuned-adm(8)
 Main PID: 1238 (tuned)
    Tasks: 4 (limit: 14088)
   Memory: 10.2M
   CGroup: /system.slice/tuned.service
           └─1238 /usr/libexec/platform-python -Es /usr/sbin/tuned -l -P

Aug 05 11:39:29 server1 systemd[1]: Starting Dynamic System Tuning Daemon...
Aug 05 11:39:31 server1 systemd[1]: Started Dynamic System Tuning Daemon.
[root@server1 ~]# 

Configuración de perfiles con tuned-adm

Lo primero que tenemos que hacer con tuned-adm es averiguar cuál es el perfil recomendado para nuestro sistema:

[root@server1 ~]# tuned-adm recommend
virtual-guest
[root@server1 ~]# 
  • Activación del perfil recomendado:
[root@server1 ~]# tuned-adm active
Current active profile: virtual-guest
[root@server1 ~]# 
  • Desactivación de tuned-adm:
[root@server1 ~]# tuned-adm active
No current active profile.
[root@server1 ~]# 
  • Listado de otros perfiles disponibles que nos pueden interesar:
@server1 ~]# tuned-adm list
Available profiles:
- accelerator-performance     - Throughput performance based tuning with disabled higher latency STOP states
- 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 performance
- 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
No current active profile.
[root@server1 ~]# 

Te puede interesar

COMPÁRTEME

Deja un comentario