ARTICULO: Comando TOP en Informix
A partir de la versión 14.10.fc4 Informix ha introducido una nueva opción para onstat que permite monitorizar el consumo de recursos.
onstat -g top permite ver qué objetos están consumiendo el mayor número de cpu, de disco o de memoria. Antes se tenía que cruzar información de varias salidas de onstat y ahora queda integrada en esta opción.
Las opciones para lanzarlo son:
onstat -g top [opción] [ líneas a mostrar [ intervalo [ repeticiones]]]
Por defecto se muestran 10 líneas con un intervalo de 5 segundos y 1 repetición, pero podemos cambiarlo para sacar lo que necesitemos.
El listado de opciones es bastante amplio:
- Top Threads
- onstat -g top thread cpu: Threads que están utilizando más CPU.
- onstat -g top thread drd: Threads que lanzan más lecturas a disco.
- onstat -g top thread bfr: Threads que están leyendo más buffers.
- onstat -g top thread bfw: Threads que están lanzando más escrituras a buffers.
- onstat -g top thread plg: Threads que están haciendo más physica logging.
- onstat -g top thread llg: Threads que están haciendo más logical logging.
- Top Sessions
- onstat -g top session cpu: Sesiones que están utilizando más CPU.onstat -g top session drd: Sesiones Sessions currently performing the most disk reads.
- onstat -g top session bfr: SesionesSessions currently performing the most buffer reads.
- onstat -g top session bfw: : Sessions currently performing the most buffer writes.
- onstat -g top session plg: Sessions currently performing the most physical logging.
- onstat -g top session llg: Sessions currently performing the most logical logging.
- Top Chunks
- onstat -g top chunk ios: Chunks currently performing the most reads and writes.
- onstat -g top chunk art: Chunks with the highest average read time.
- onstat -g top chunk awt: Chunks with the highest average write time.
- Top Spaces
- onstat -g top space ios: Spaces currently performing the most reads and writes.
- onstat -g top space art: Spaces with the highest average read time.
- onstat -g top space awt: Spaces with the highest average write time.
- Top Virtual Memory Pools
- onstat -g top mempool gro: Memory pools currently growing the fastest.
- Top Session Memory
- onstat -g top sessmem gro: Sessions currently allocating the most memory.
- Top Partitions
- onstat -g top partition drd: Partitions currently performing the most disk reads.
- Top Tables
- onstat -g top table drd: Tables currently performing the most disk reads.