how top counts time

Erik Trulsson ertr1013 at student.uu.se
Mon Oct 1 00:59:04 PDT 2007


On Mon, Oct 01, 2007 at 09:25:17AM +0200, Zbigniew Szalbot wrote:
> Hello,
> 
> Just interested how to interpret time information in TOP.
> 
> For example, my java appilcation eventually ran longer than 999 units
> of time and then top displayed it as 16 or 17H (don't recall now). How
> do I determine time units in top?
> Does 1000 equal 16/17H? I did look at man top but could not really
> find this information there.
> 
>   PID USERNAME   THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
> 10359 root         2  20    0   227M 34216K kserel  17.8H  0.00% java
> 61600 mysql        6  20    0 55868K 16940K kserel 363:34  0.00% mysqld
> 
> Thanks a lot!

The time units are simply our ordinary hours, minutes and seconds.
In the display above java has used 17.8 hours of CPU time, while mysqld
has used 363 minutes and 34 seconds of CPU time.
(FYI:  1000 minutes == 16H 40min == 16.67H)


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-questions mailing list