From owner-freebsd-stable@FreeBSD.ORG Thu Nov 12 07:16:21 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49EE5106566B for ; Thu, 12 Nov 2009 07:16:21 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from mailrelay1.rambler.ru (mailrelay1.rambler.ru [81.19.66.239]) by mx1.freebsd.org (Postfix) with ESMTP id F24698FC0A for ; Thu, 12 Nov 2009 07:16:20 +0000 (UTC) Received: from kas30pipe.localhost (localhost [127.0.0.1]) by mailrelay1.rambler.ru (Postfix) with ESMTP id 00F2C130CC0 for ; Thu, 12 Nov 2009 10:16:19 +0300 (MSK) Received: from localhost (sysoev.ru [81.19.68.137]) by mailrelay1.rambler.ru (Postfix) with ESMTP id 647EB130CB1 for ; Thu, 12 Nov 2009 10:16:18 +0300 (MSK) Date: Thu, 12 Nov 2009 10:16:18 +0300 From: Igor Sysoev To: freebsd-stable@freebsd.org Message-ID: <20091112071618.GB81250@rambler-co.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.33/RELEASE, bases: 02092009 #2738642, status: clean X-SpamTest-Envelope-From: is@rambler-co.ru X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 9536 [Sen 02 2009] X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 10 X-SpamTest-SPF: pass X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release Subject: Re: 8.0RC2 "top" statistics seem broken X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2009 07:16:21 -0000 On Tue, Nov 10, 2009 at 04:29:37PM +0100, Ivan Voras wrote: > Here is what I'm seeing now: > > > last pid: 70893; load averages: 1.70, 1.10, 0.58 > up > 27+02:59:26 16:23:59 > 134 processes: 3 running, 131 sleeping > CPU: 94.8% user, 0.0% nice, 4.6% system, 0.6% interrupt, 0.0% idle > Mem: 309M Active, 48M Inact, 113M Wired, 17M Cache, 60M Buf, 3624K Free > Swap: 640M Total, 205M Used, 435M Free, 32% Inuse > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 751 pgsql 1 45 0 159M 556K select 1 249:38 0.00% postgres > 756 pgsql 1 44 0 25004K 600K select 1 86:31 0.00% postgres > 754 pgsql 1 44 0 159M 1040K select 1 13:02 0.00% postgres > 753 pgsql 1 44 0 159M 7868K select 1 10:55 0.00% postgres > 597 root 1 44 0 3184K 464K select 0 4:49 0.00% syslogd > 755 pgsql 1 44 0 159M 1432K select 1 4:46 0.00% postgres > 659 root 1 44 0 62156K 1356K select 1 4:30 0.00% > vmware-guestd > 765 nobody 1 4 0 3236K 192K kqread 1 3:25 0.00% memcached > 775 root 1 44 0 9996K 340K select 1 2:18 0.00% httpd > 900 sveb 1 5 0 9452K 0K select 0 1:49 0.00% > 790 www 1 44 0 9768K 224K select 1 1:47 0.00% httpd > 70851 ivoras 3 96 0 199M 195M CPU0 0 1:47 0.00% 7z > > > Load average and %CPU user are right, as are other global statistics. > The load is produced by the "7z" process (archivers/p7zip) which > compresses some data in two threads but is credited with 0% CPU, though > its runtime is correct (increments every second as it should in a > CPU-bound process). It doesn't help if I expand / show individual threads. I believe this is related to multithreaded processes only. I saw this for intr kernel process. Singlethread processes eat CPU slightly less than on 7.2, however, I can not say is it statistic errors or real speedup. I saw the issue on SMP/ULE only and can not say anything about UP and 4BSD scheduler. -- Igor Sysoev http://sysoev.ru/en/