Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2005 11:37:28 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Definitions of process states in top
Message-ID:  <41E6A3C8.3080806@mac.com>
In-Reply-To: <1741746219.20050113024231@wanadoo.fr>
References:  <1741746219.20050113024231@wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Anthony Atkielski wrote:
> Is there someplace where I can find definitions of the process states
> that I see in the STATE column of top?  RUN and CPU1 are easy enough
> to figure out, but most of the rest are mysterious.

The states are scattered throughout the kernel:

sys/kern/kern_time.c:   error = tsleep(&nanowait, PWAIT | PCATCH, "nanslp",
src/sys/kern/tty.c:                                 "ttyin" : "ttyhup",
sys/kern/sys_pipe.c:                                "piperd", 0)) == 0)

...for a few common states (nanslp, ttyin, piperd).  Use a command like:

	find /usr/src/sys | xargs grep piperd

...and replace piperd with whatever state it is that you are curious about.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E6A3C8.3080806>