From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 20:31:15 2010 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 8FDA61065673 for ; Mon, 18 Oct 2010 20:31:15 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.41]) by mx1.freebsd.org (Postfix) with ESMTP id 669E38FC1C for ; Mon, 18 Oct 2010 20:31:15 +0000 (UTC) Received: (qmail 1930 invoked from network); 18 Oct 2010 20:31:14 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 18 Oct 2010 20:31:14 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 4B9B450863; Mon, 18 Oct 2010 16:31:12 -0400 (EDT) From: Lowell Gilbert To: Martin Turgeon References: <20101015071719.1536f19e@mail.ose.nl> <4CBC97CB.80604@optiksecurite.com> <4CBCA8D1.5040005@optiksecurite.com> Date: Mon, 18 Oct 2010 16:31:10 -0400 In-Reply-To: <4CBCA8D1.5040005@optiksecurite.com> (Martin Turgeon's message of "Mon, 18 Oct 2010 16:06:41 -0400") Message-ID: <44pqv7tf8x.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: How is CPU usage calculated? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 20:31:15 -0000 Martin Turgeon writes: > Le 2010-10-18 15:12, Adam Vande More a =E9crit : >> On Mon, Oct 18, 2010 at 1:54 PM, Martin Turgeon >> wrote: >> >>> I didn't knew about -H to show individual threads, but my problem isn't >>> there. My problem is that the summary printed in the first lines doesn't >>> match the total of the process detailled under the summary. For example= , I >>> have a user CPU usage est 83.1% in the summary, but the only process wo= rth >>> mentionning in the list is mysqld that is taking 255.52% WCPU. That's f= ar >>> less than half the "CPU power" but 83% is far more. It's that difference >>> that I don't understand. >>> >>> How is this possible? >>> >> man 1 top >> >> 83.1% doesn't mean what you think it does. >> > I just reread it and it isn't clearer what is using the CPU so > much. Can you please give me a little more explanation? They are calculated over different time periods, averaged in different ways (that's they "weighted" part), and processes only show up until they exit.