From owner-freebsd-questions@FreeBSD.ORG Mon Oct 1 07:59:04 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2EB616A421 for ; Mon, 1 Oct 2007 07:59:04 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 811C313C48A for ; Mon, 1 Oct 2007 07:59:04 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-31-60.bredband.comhem.se ([83.253.31.60]:63219 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IcGBD-0006b5-7j for freebsd-questions@freebsd.org; Mon, 01 Oct 2007 09:59:03 +0200 Received: (qmail 20097 invoked from network); 1 Oct 2007 09:58:59 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 1 Oct 2007 09:58:59 +0200 Received: (qmail 8375 invoked by uid 1001); 1 Oct 2007 09:58:59 +0200 Date: Mon, 1 Oct 2007 09:58:59 +0200 From: Erik Trulsson To: Zbigniew Szalbot Message-ID: <20071001075859.GA8340@owl.midgard.homeip.net> Mail-Followup-To: Zbigniew Szalbot , freebsd-questions@freebsd.org References: <94136a2c0710010025i6c1f3319yc1a24402e449ec5a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94136a2c0710010025i6c1f3319yc1a24402e449ec5a@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.31.60 X-Scan-Result: No virus found in message 1IcGBD-0006b5-7j. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IcGBD-0006b5-7j b5478f1987ff7055ac33eb2d906b48f1 Cc: freebsd-questions@freebsd.org Subject: Re: how top counts time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2007 07:59:04 -0000 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) -- Erik Trulsson ertr1013@student.uu.se