From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 16:38:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28F5516A4CE for ; Thu, 13 Jan 2005 16:38:17 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B498F43D53 for ; Thu, 13 Jan 2005 16:38:16 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] (pool-68-160-208-232.ny325.east.verizon.net [68.160.208.232]) by pi.codefab.com (8.12.11/8.12.11) with ESMTP id j0DGc817076223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 13 Jan 2005 11:38:10 -0500 (EST) Message-ID: <41E6A3C8.3080806@mac.com> Date: Thu, 13 Jan 2005 11:37:28 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1741746219.20050113024231@wanadoo.fr> In-Reply-To: <1741746219.20050113024231@wanadoo.fr> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.8 required=5.5 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.0.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on pi.codefab.com Subject: Re: Definitions of process states in top X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 16:38:17 -0000 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