From owner-freebsd-questions@FreeBSD.ORG Mon Feb 7 19:05:23 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89E6A1065670 for ; Mon, 7 Feb 2011 19:05:23 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 50CD18FC13 for ; Mon, 7 Feb 2011 19:05:23 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p17J5LW7002787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Feb 2011 13:05:21 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id p17J5Lo4078954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Feb 2011 13:05:21 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.4/Submit) id p17J5Luu078953; Mon, 7 Feb 2011 13:05:21 -0600 (CST) (envelope-from dan) Date: Mon, 7 Feb 2011 13:05:21 -0600 From: Dan Nelson To: "O. Hartmann" Message-ID: <20110207190521.GB66849@dan.emsphone.com> References: <4D503BA5.3040201@mail.zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D503BA5.3040201@mail.zedat.fu-berlin.de> X-OS: FreeBSD 8.2-PRERELEASE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.96.4 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Mon, 07 Feb 2011 13:05:21 -0600 (CST) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: freebsd-questions@freebsd.org Subject: Re: top: where to find process state descriptions (i.e. STATE usem)? 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: Mon, 07 Feb 2011 19:05:23 -0000 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 " on one of those processes you can narrow down what part of the kernel it's waiting in. -- Dan Nelson dnelson@allantgroup.com