[equinux] consulta, comando top

Esteban Ordóñez quiliro en gmail.com
Vie Oct 19 13:40:10 EDT 2007


El 19/10/07, Edwin Aguilar <ejae en nextel-ec.com> escribió:
>
>
> Saludos
>
> tengo estos resultados con el comando top:
>
> top - 12:21:16 up 23:06,  3 users,  load average: 12.36, 12.40, 11.82
> Tasks: 142 total,   3 running, 139 sleeping,   0 stopped,   0 zombie
> Cpu(s):  0.5% us,  1.4% sy,  0.0% ni,  0.0% id, 97.1% wa,  1.0% hi,  0.0% si
>
>
> Alguien sabe a que se refiere el parámetro: wa, el 97.1% es para preocuparse
> o no?.
>
Según: man top

 wa  --  iowait
          Amount of time the CPU has been waiting for I/O to complete.


Busqué eso en Google y me llevo a la Wikipedia entre otras. Una de las
páginas (la primera que vi) decía esto:

http://www.idealwebtools.com/blog/top/

Fifth section - CPUs

Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
What does these things mean? Here is a small explanation for each section :-

   1. us -> User CPU time: The time the CPU has spent running users'
processes that are not niced.
   2. sy -> System CPU time: The time the CPU has spent running the
kernel and its processes.
   3. ni -> Nice CPU time: The time the CPU has spent running users'
proccess that have been niced.
   4. wa -> iowait: Amount of time the CPU has been waiting for I/O to complete.
   5. hi -> Hardware IRQ: The amount of time the CPU has been
servicing hardware interrupts.
   6. si -> Software Interrupts.: The amount of time the CPU has been
servicing software interrupts.

This shows a breakup of CPU usage, depending on your servers role, you
need to optimize it. If you have a lot of disk writing keep a watch on
iowait. If might be wondering what does "The time the CPU has spent
running users' processes that are not niced." mean? If you do a "man
nice", it will say "nice - run a program with modified scheduling
priority". It is called "nice" because the number that is given to a
process determines how willing a task is to step aside and let other
tasks monopolize the processor. The number varies from -20 to 19. The
default value is 0, higher values lower the priority and lower values
increase it. If you want to read more about nice, visit
http://wiki.linuxquestions.org/wiki/Nice


Es increíble lo que se puede lograr simplemente preguntando a Google.

Saludos
Quiliro



Más información sobre la lista de distribución equinux