From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 04:07:48 2008 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 701ED1065678 for ; Fri, 28 Nov 2008 04:07:48 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from kennaway-macbookpro.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4A78B8FC16; Fri, 28 Nov 2008 04:07:48 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <492F4086.7040403@FreeBSD.org> Date: Thu, 27 Nov 2008 16:51:18 -0800 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ott_K=F6stner?= References: <49202F59.7050802@zzz.ee> <20081116144057.GA3864@icarus.home.lan> <492034B8.9020903@zzz.ee> In-Reply-To: <492034B8.9020903@zzz.ee> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: top incorrectly reporting process time 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: Fri, 28 Nov 2008 04:07:48 -0000 Ott Köstner wrote: > Jeremy Chadwick wrote: >> On Sun, Nov 16, 2008 at 04:34:01PM +0200, Ott Köstner wrote: >> >>> On several FreeBSD machines I have the following problem: >>> >> >> What FreeBSD version? (It matters) >> > 7.1-PRERELEASE FreeBSD > > But I can experience it also on a 7.0 machine. Seems that top reports > incorrectly processes with multiple threads. > > $ top -bUbind > last pid: 21635; load averages: 0.73, 0.46, 0.29 up 1+00:17:18 > 16:48:10 > 54 processes: 1 running, 53 sleeping > > Mem: 66M Active, 1174M Inact, 204M Wired, 36K Cache, 112M Buf, 555M Free > Swap: 2048M Total, 2048M Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 979 bind 8 44 0 40288K 32916K select 0 0:16 0.00% named > > $ ps -ax|grep 979 > 979 ?? Ss 1:11.26 /usr/sbin/named -n 5 -t /var/named -u bind Check top -H to display the statistics for individual threads. Kris