From owner-freebsd-questions@FreeBSD.ORG Sat Jan 8 07:37:42 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 11DA410656AD for ; Sat, 8 Jan 2011 07:37:42 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id F2C508FC0C for ; Sat, 8 Jan 2011 07:37:41 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p087a6B6033977; Fri, 7 Jan 2011 23:36:07 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4D281444.2050407@rawbw.com> Date: Fri, 07 Jan 2011 23:37:40 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: Anonymous References: <4D245F73.1050401@rawbw.com> <86lj2wmjic.fsf@gmail.com> In-Reply-To: <86lj2wmjic.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Why top(1) only shows time of the main thread? 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: Sat, 08 Jan 2011 07:37:42 -0000 On 01/07/2011 14:33, Anonymous wrote: > Yuri writes: > > >> TIME column is supposed to show time of the process (according to its >> man page). >> But it seems like it only shows the time of its main thread. >> >> Why? Bug in documentation? >> > Wasn't this fixed in r182966? > You are right according to this revision log (in stable/8): " r182966 | sepotvin | 2008-09-12 10:54:50 -0700 (Fri, 12 Sep 2008) | 7 lines Display the sum of the runtime of all the threads in a process when it's multithreaded instead of picking the time of the first thread found. " But I have rebuilt my system 8.1-STABLE on Oct 11 2010 and my top only shows the main thread's CPU use. How can this be? Yuri