Date: Sat, 16 Sep 2006 22:16:39 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Pietro Cerutti <pietro.cerutti@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: top(1) STATE column Message-ID: <20060917031639.GD55663@dan.emsphone.com> In-Reply-To: <e572718c0609161414s3a45bf1ayc75ab481057a8cab@mail.gmail.com> References: <e572718c0609161414s3a45bf1ayc75ab481057a8cab@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060917031639.GD55663>