From owner-freebsd-hackers Sun Jun 7 13:45:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA03975 for freebsd-hackers-outgoing; Sun, 7 Jun 1998 13:45:11 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03939 for ; Sun, 7 Jun 1998 13:45:00 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.8) id PAA11090; Sun, 7 Jun 1998 15:44:51 -0500 (CDT) (envelope-from dan) Message-ID: <19980607154451.A10961@emsphone.com> Date: Sun, 7 Jun 1998 15:44:51 -0500 From: Dan Nelson To: ben@rosengart.com, hackers@FreeBSD.ORG Subject: Re: top doesn't know a process's time? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: ; from "Snob Art Genre" on Sun Jun 7 16:02:55 GMT 1998 X-OS: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 07), Snob Art Genre said: > I've never seen this before -- under the "TIME" header, top just has > three question marks for this process. Could it have something to do > with the process being multithreaded? I doubt it. How long has the process been running? > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 287 ben 105 19 840K 608K RUN ??? 85.18% 85.18% rc5des PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 2248 dan 105 19 836K 332K RUN 122.3H 96.09% 96.09% rc5desbsd I could imagine it having a problem when the field hits "9999.9". In fact, in /usr/src/contrib/top/utils.c, line ~375 seems to check against seconds > (99999*360), which is close enough. How long HAS that process been running??? To trigger the "???" code, it would have to be running for over a year? -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message