Date: Fri, 07 Jan 2011 23:37:40 -0800 From: Yuri <yuri@rawbw.com> To: Anonymous <swell.k@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Why top(1) only shows time of the main thread? Message-ID: <4D281444.2050407@rawbw.com> In-Reply-To: <86lj2wmjic.fsf@gmail.com> References: <4D245F73.1050401@rawbw.com> <86lj2wmjic.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/07/2011 14:33, Anonymous wrote: > Yuri<yuri@rawbw.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D281444.2050407>