Compartilhando conhecimento com o mundo

Com tecnologia do Blogger.

Pesquisa

Download

Blogger Tricks

Blogger Themes

Visitas

Assuntos

11/20/2013

SYSSTAT - SAR


Para quem é antigo de UNIX/Linux, sabe quão importante é saber exatamente como está se comportando o seu sistema, em windows existe o famigerado Task Manager, mas em Linux, bem, em Linux temos um maravilhoso conjunto de ferramentas chamado sysstat. Obviamente é para linha de comando e pode mostrar dese I/O de disco (partição a partição), até utilização de RAM e CPU e muito mais. Como é uma suite, existem vários comandos, o sar, ele tira snapshots de tempos em tempos e te mostra uma média da performance do sistema:
[s106:root]#/tmp - 2 > sar 1 2
Linux 2.6.32-279.22.1.el6.x86_64 (s106.ms)      03/08/2013      _x86_64_        (4 CPU)

01:54:46 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
01:54:47 PM     all     14.25      0.00      7.95     22.74      0.00     55.07
01:54:48 PM     all     15.70      0.00      7.99     16.25      0.00     60.06
Average:        all     14.97      0.00      7.97     19.51      0.00     57.55
Instalando o syssat, logado com o usuário root na pasta /tmp dou o comando;
[s106:root]#/export/home/informix - 2 > yum install sysstat
Log da instalação
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.mendoza-conicet.gob.ar
* extras: centos.secrel.com.br
* updates: centos.mirror.mendoza-conicet.gob.ar
base                                                                                                                                                                                                                  | 3.7 kB     00:00    
extras                                                                                                                                                                                                                | 3.5 kB     00:00    
updates                                                                                                                                                                                                               | 3.5 kB     00:00    
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sysstat.x86_64 0:9.0.4-20.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​===== Package                                                  Arch                                                    Version                                                        Repository                                             Size
================================================================================​=====
Installing:
sysstat                                                  x86_64                                                  9.0.4-20.el6                                                   base                                                  225 k

Transaction Summary
================================================================================​=====
Install       1 Package(s)

Total download size: 225 k
Installed size: 807 k
Is this ok [y/N]: n
Exiting on user Command
[s106:root]#/export/home/informix - 2 > cd /tmp
[s106:root]#/tmp - 2 > yum install sysstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.mendoza-conicet.gob.ar
* extras: centos.secrel.com.br
* updates: centos.mirror.mendoza-conicet.gob.ar
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sysstat.x86_64 0:9.0.4-20.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​===== Package                                                  Arch                                                    Version                                                        Repository                                             Size
================================================================================​=====
Installing:
sysstat                                                  x86_64                                                  9.0.4-20.el6                                                   base                                                  225 k

Transaction Summary
================================================================================​=====
Install       1 Package(s)

Total download size: 225 k
Installed size: 807 k
Is this ok [y/N]: y
Downloading Packages:
sysstat-9.0.4-20.el6.x86_64.rpm                                                                                                                                                                                       | 225 kB     00:07    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : sysstat-9.0.4-20.el6.x86_64                                                                                                                                                                                               1/1
  Verifying  : sysstat-9.0.4-20.el6.x86_64                                                                                                                                                                                               1/1

Installed:
  sysstat.x86_64 0:9.0.4-20.el6                                                                                                                                                                                                              

Complete!

0 comentários:

Enviar um comentário