Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2001 00:09:04 -0500 (CDT)
From:      David Scheidt <dscheidt@enteract.com>
To:        "R. Lahaye" <lahaye@users.sourceforge.net>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: top command: STATE info unclear
Message-ID:  <Pine.BSF.4.32L2.0108090001340.57646-100000@shell-2.enteract.com>
In-Reply-To: <3B7215A5.32D689F9@users.sourceforge.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32L2.0108090001340.57646-100000>