SUMMARY: top showing incorrect information

From: Jarkko Airaksinen <JAiraksinen_at_zed.com>
Date: Mon Feb 19 2007 - 04:06:00 EST
Hello,

Thanks to everyone who responded.

Even though I didn't really get an answer on why top 3.6 shows the
process info so differently, the answer was unanimous.

Use prstat instead of top to get correct info.

-j-

Ps. Answers I got:
--------

How many CPUs are on this box.  I'm not sure about top, but some
measurement tools report total CPU usage based on the number of CPUs,
while the details show how much CPU a process is using on one CPU.  So
on a dual cpu machine, a process using 100% of a CPU will show up in the
details as 100%, but on the total, the system will show 50% busy.

--------

The latest top that I got a few weeks ago is a bit weird too.
It reports processes by % of a single cpu used instead of %of overall
CPU

--------

Hi,
I use prstat which is supported by Sun :-)

--------

Not often, but it's possible.  The values you see for processes are not
instantaneous values, but heavily damped.

Run a CPU hog on an otherwise idle box.  It will be taking ~99% CPU, but
both 'ps' and 'top' will show it significantly lower than that for many
seconds.  It will take nearly a minute to get very close to steady
state.

You might try 'prstat -m' which uses microstate accounting to get much
closer.  Even there it's off (by a much smaller amount) until Solaris
10.

--
Darren


-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Jarkko
Airaksinen
Sent: viernes, 16 de febrero de 2007 13:51
To: sunmanagers@sunmanagers.org
Subject: top showing incorrect information

Hello dear Gurus,



I just installed the latest top 3.6. in my Sol8 box. The info it shows
seems to have been gotten with the Stetson-Harrison method:



last pid: 18052;  load avg:  0.72,  0.63,  0.61;       up 7+02:12:27
13:42:16

91 processes: 90 sleeping, 1 on cpu

CPU states: 74.6% idle, 18.6% user,  0.9% kernel,  5.9% iowait,  0.0%
swap

Memory: 16G phys mem, 13G free mem, 16G swap, 16G free swap



   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND

 17287 ora920     1  60    0 2005M   23M sleep   19:43 76.65% oracle

  1098 root      16  59    0   37M   17M sleep    5:50  0.00% java

   998 root      20  59    0   31M   14M sleep    1:17  0.00% java



74.6% idle while Oracle takes 76.65%?



Have you had same kinds of oddities in your top?



-j-



________________________________________________________________________
__


La informacion incluida en el presente correo electronico es
CONFIDENCIAL,
siendo para el uso exclusivo del/os destinatario/s arriba mencionado/s.
Si
usted recibe y lee este correo electronico y no es el destinatario
senalado,
el empleado o el agente responsable de entregar el mensaje al
destinatario, o
ha recibido esta comunicacion por error, le informamos que esta
totalmente
prohibida cualquier divulgacion, distribucion, uso o reproduccion del
mismo, y
le rogamos que nos lo notifique inmediatamente respondiendo al mensaje
original a la direccion arriba mencionada y eliminando el mensaje a
continuacion.

The information contained in this e-mail is CONFIDENTIAL and is intended
only
for the use of the addressee named above.If the reader of this message
is not
the intended recipient or the employee or agent responsible for
delivering the
message to the intended recipient, or you have received this
communication in
error, please be aware that any diffusion, distribution or duplication
of this
communication is strictly forbidden, and please notify us immediately by
return to the original message at the address above eliminating it
afterwards.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Feb 19 04:07:01 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:04 EST