From owner-freebsd-questions@FreeBSD.ORG Sun Sep 17 03:16:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 613B916A407 for ; Sun, 17 Sep 2006 03:16:40 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E6E843D5A for ; Sun, 17 Sep 2006 03:16:39 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k8H3GdQ5072108; Sat, 16 Sep 2006 22:16:39 -0500 (CDT) (envelope-from dan) Date: Sat, 16 Sep 2006 22:16:39 -0500 From: Dan Nelson To: Pietro Cerutti Message-ID: <20060917031639.GD55663@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: FreeBSD Questions Subject: Re: top(1) STATE column X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 03:16:40 -0000 In the last episode (Sep 16), Pietro Cerutti said: > I'd like to know the meaning of the possible STATEs showing up in > top. In the manual pages I found this: > > STATE is the current state (one of "START", "RUN" (shown as > "CPUn" on SMP systems), "SLEEP", "STOP", "ZOMB", "WAIT", "LOCK" > or the event on which the process waits) > > Where can I found info about other possible states (nanslp, kserel, > ttyin, ucond, sbwait, ...) that I usually see in top? > > I think these have to do with the "the event on which the process > waits" part of the man page... isn't there any complete list on > those? They're only documented in the source, as far as I know. A quick grep comes up with around 300 different unique waits and mutexes in the kernel: find /sys -name "*.c" | xargs grep 'sleep(.*".*"' | sed -e 's/^.*\"\(.*\)\".*$/\1/' | sort -u | wc -l -- Dan Nelson dnelson@allantgroup.com