From owner-freebsd-questions@FreeBSD.ORG Thu Aug 10 05:52:52 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08D1B16A4DD for ; Thu, 10 Aug 2006 05:52:52 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E13F43D46 for ; Thu, 10 Aug 2006 05:52:47 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-2) with ESMTP id k7A5qSNO010372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 Aug 2006 08:52:30 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k7A5qSj6007133; Thu, 10 Aug 2006 08:52:28 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k7A5qRWF007132; Thu, 10 Aug 2006 08:52:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 10 Aug 2006 08:52:27 +0300 From: Giorgos Keramidas To: "Tamouh H." Message-ID: <20060810055227.GA7051@gothmog.pc> References: <20060810044557.2E0E843D46@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060810044557.2E0E843D46@mx1.FreeBSD.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.809, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.59, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: questions@freebsd.org, 'Ian Smith' Subject: Re: Top not showing cpu usage even remotely accurately 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: Thu, 10 Aug 2006 05:52:52 -0000 On 2006-08-10 00:45, "Tamouh H." wrote: > > But since running 5.x (5.5-STABLE since 1st Aug) top can show > > 0.0% idle but the cpu usages shown don't add up to much of a > > fraction of 100%. In recent 6.X versions, you can use 'S' to show system threads too. For an even more fine-grained view, you can use 'H' to show each thread separately. Then there is also the 'CPU' mode (as opposed to the default 'WCPU' mode of top). > I've the same issue with FBSD 5.4 and TOP. In fact, the load > averages are so irrelevant now that I barely pay attention to > them. The server goes to 4 or 6 load averages without slowing down, > and other times the load average would be 0.8 and the server is > running slow. Probably because the work it does at the moment is not CPU-bounded? > An example of unmatching TOP: > > last pid: 17889; load averages: 0.60, 0.52, 0.50 up 3+17:22:33 00:41:45 > 186 processes: 2 running, 183 sleeping, 1 lock > CPU states: 30.0% user, 0.0% nice, 1.7% system, 0.1% interrupt, 68.3% idle > Mem: 1678M Active, 1110M Inact, 287M Wired, 87M Cache, 112M Buf, 103M Free > Swap: 8762M Total, 1584K Used, 8760M Free > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > 5071 nobody 101 0 43124K 35180K CPU2 2 0:07 14.89% 14.89% httpd > 14409 nobody 4 0 43940K 36076K sbwait 0 0:01 1.22% 1.22% httpd > 95515 nobody 4 0 39892K 32188K sbwait 1 0:08 0.29% 0.29% httpd Try hitting 'S'. Perhaps the system spends too much time in system threads (i.e. the "syncer") :)