From owner-freebsd-questions Wed Aug 8 22: 9:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-1.enteract.com (smtp-1.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id 88B7537B401 for ; Wed, 8 Aug 2001 22:09:24 -0700 (PDT) (envelope-from dscheidt@enteract.com) Received: from shell-2.enteract.com (shell-2.enteract.com [207.229.143.41]) by smtp-1.enteract.com (Postfix) with ESMTP id EB248886E; Thu, 9 Aug 2001 00:09:04 -0500 (CDT) Date: Thu, 9 Aug 2001 00:09:04 -0500 (CDT) From: David Scheidt To: "R. Lahaye" Cc: FreeBSD Subject: Re: top command: STATE info unclear In-Reply-To: <3B7215A5.32D689F9@users.sourceforge.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 9 Aug 2001, R. Lahaye wrote: : :Hi, : :On my FreeBSD 4.3 machine, I try to understand the STATE column. :The 'man top' says somewhere: : : [...] : STATE is the current state (one of "sleep", "WAIT", "run", : "idl", "zomb", or "stop") : [...] : :However, this does not at all match with the actual states in the :STATE column of the 'top' command: : : RUN, select, mfsidl, nanslp, piperd, wait, ttyin, poll Meaning in the run state, in select(2), (you sure this one isn't nfsidl, meaning waiting on NFS), nanosleeping, waiting to read from a pipe, in wait (for highspeed I/O, that is, a disk, I think), waiting on tty input, in poll(2), respectivly. There are others, as well. : : :Apparently the man pages of the 'top' command are not synchronized with :the actual command. How can I find out what the STATE items mean? Someone should fix that, probably. : : :For example: top says that I have one zombie process, but I can't find :out in the STATE column which process is zombie. : Use ps(1). ps auxww | awk '{if ($8 == "Z") print $0}' Should tell you. This prints things where teh STAT collum is equal to Z, meaning the process is a zombie. -- dscheidt@tumbolia.com Bipedalism is only a fad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message