O Red Hat dispõem de um pacote que pode acrescentar melhorias ao seu kernel podendo ter mais peformace de acordo com o uso que você vai dar a maquina. Exemplo seria virtualizar um Red Hat para prover algum serviço, não importa o serviço neste momento, após virtualizar o servidor você pode carregar o perfil de virtual-host melhorando o Red Hat virtualizado.
Vamos ao procedimento de instalação, ele está no repositório então rsrs!!!
root@redhat::~ # yum install tuned
Com a instalação ele vai instalar um binario chamado “tuned-adm”
root@redhat::~ # tuned-adm Missing arguments. Usage: tuned-adm commands: help show this help message and exit list list all available and active profiles active show current active profile off switch off all tunning profile <profile-name> switch to given profile
Para verificar os perfis que o Tuned carrega podemos listar
root@redhat::~ # tuned-adm list Available profiles: - latency-performance - virtual-host - laptop-battery-powersave - desktop-powersave - server-powersave - virtual-guest - laptop-ac-powersave - default - throughput-performance - spindown-disk - enterprise-storage Current active profile: default
Após escolher o perfil adequado podemos correga-lo com o seguinte comando
root@redhat::~ # tuned-adm profile "perfil escolhido"
segue um exemplo de arquivo de configuração básico
[main] interval=10 pidfile=/var/run/tuned.pid logging=info logging_disable=notset Disk monitoring section [DiskMonitor] enabled=True logging=debug # Disk tuning section [DiskTuning] enabled=True hdparm=False alpm=False logging=debug # Net monitoring section [NetMonitor] enabled=True logging=debug # Net tuning section [NetTuning] enabled=True logging=debug # CPU monitoring section [CPUMonitor] # Enabled or disable the plugin. Default is True. Any other value # disables it. enabled=True # CPU tuning section [CPUTuning] # Enabled or disable the plugin. Default is True. Any other value # disables it. enabled=True
Pronto !!!!! seu kernel está mais tunado para seu ambiente, não esqueça de coloca-lo na inicialização do sistema
root@server::~ # chkconfig tuned on
Fui!!!