Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2011 13:05:21 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: top: where to find process state descriptions (i.e. STATE usem)?
Message-ID:  <20110207190521.GB66849@dan.emsphone.com>
In-Reply-To: <4D503BA5.3040201@mail.zedat.fu-berlin.de>
References:  <4D503BA5.3040201@mail.zedat.fu-berlin.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In the last episode (Feb 07), O. Hartmann said:
> Try to find docs about the process states shown in top, but I can't find
> any hint for explanations what the abbrev.  do mean.
> 
> I have a problem with a scientific program using OpenMP showing STATE
> 'usem' in top.  Problem: the small program is much slower on a dual or
> four core CPU using OpenMP than using only a single core (single thread
> never show state 'usem' in top).

STATEs that aren't in caps are either wait channels or mutexes, and their
initialization is scattered all over the kernel.  There isn't one
comprehensive index.  "usem" sounds like maybe a semaphore operation?  A
quick grep of the kernel doesn't show any strings starting with "usem",
though.  Maybe if you run "procstat -k <pid>" on one of those processes you
can narrow down what part of the kernel it's waiting in.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20110207190521.GB66849>