From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 9 21:35:11 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50CD71065697; Tue, 9 Dec 2008 21:35:11 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id B824B8FC19; Tue, 9 Dec 2008 21:35:10 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by forwards4.yandex.ru (Yandex) with ESMTP id 116D34C5CEB; Wed, 10 Dec 2008 00:35:08 +0300 (MSK) Received: from 64-15-113-92.pool.ukrtel.net ([92.113.15.64]:11270 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S393324AbYLIVe6 (ORCPT + 1 other); Wed, 10 Dec 2008 00:34:58 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1228858498 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 2 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: kes-kes Date: Tue, 9 Dec 2008 23:34:55 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <540454.20081209233455@yandex.ru> To: remko@FreeBSD.org In-Reply-To: <200811210836.mAL8aASM047460@freefall.freebsd.org> References: <200811210836.mAL8aASM047460@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-bugs@FreeBSD.org Subject: Re[2]: bin/129027: ambigious output for top(1) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 21:35:11 -0000 Здравствуйте, Remko. Вы писали 21 ноября 2008 г., 10:36:10: rFo> Synopsis: ambigious output for top(1) rFo> State-Changed-From-To: open->closed rFo> State-Changed-By: remko rFo> State-Changed-When: Fri Nov 21 08:36:09 UTC 2008 rFo> State-Changed-Why: rFo> This is not a PR, this is a user question, which has an anwer already. rFo> Thanks for reporthing this, though I will be closing the ticket. rFo> http://www.freebsd.org/cgi/query-pr.cgi?pr=129027 man top ...... -C Toggle CPU display mode. By default top displays the weighted CPU percentage in the WCPU column (this is the same value that ps(1) displays as CPU). Each time -C flag is passed it toggles between "raw cpu" mode and "weighted cpu" mode, showing the "CPU" or the "WCPU" column respectively. This is not descriptive enough. After reading this I have still have questions: 1. What is "weighted CPU percentage"? 2. What does "ps(1) display as CPU" ....... (visible only on SMP systems), TIME is the number of system and user cpu seconds that the process has used, WCPU, when displayed, is the weighted cpu percentage (this is the same value that ps(1) displays as CPU), CPU is the raw percentage and is the field that is sorted to determine the order of the processes, and COMMAND is the name of the NOTICE: this will be better to describe one parameter per paragraph TIME the number of system and user cpu seconds that the process has used WCPU the weighted cpu percentage (average CPU usage by process per minute) CPU the momentary/instant? percentage of CPU usage by process (Default sorted by this column) COMMAND ..... 2. Here in both cases 0% idle. Neither CPU neither WCPU does not show processes which take all processor time. CPU: 92.2% user, 0.0% nice, 7.5% system, 0.4% interrupt, 0.0% idle Mem: 258M Active, 95M Inact, 112M Wired, 15M Cache, 60M Buf, 8516K Free Swap: 2048M Total, 748K Used, 2047M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 4686 mysql 38 4 0 54716K 25944K sbwait 9:11 15.28% mysqld 37959 root 1 96 0 15412K 12880K RUN 0:00 1.81% objcopy 37956 root 1 96 0 21692K 19152K RUN 0:02 0.93% cc1 37911 root 1 44 0 3532K 2080K RUN 0:00 0.20% top 37957 root 1 -8 0 2912K 1236K piperd 0:00 0.05% as 37951 root 1 8 0 3496K 1312K wait 0:00 0.05% sh CPU: 93.7% user, 0.0% nice, 6.3% system, 0.0% interrupt, 0.0% idle Mem: 256M Active, 92M Inact, 111M Wired, 15M Cache, 60M Buf, 13M Free Swap: 2048M Total, 748K Used, 2047M Free Displaying WCPU PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 4686 mysql 38 4 0 54716K 25936K sbwait 9:11 20.31% mysqld 37996 root 1 96 0 13572K 10644K RUN 0:00 0.63% cc1 37983 root 1 -8 0 3936K 1692K piperd 0:00 0.54% as 37911 root 1 44 0 3532K 2076K RUN 0:00 0.20% top 37997 root 1 -8 0 2912K 1004K piperd 0:00 0.05% as 212 root 1 44 0 3180K 980K select 7:40 0.00% syslogd 46720 root 1 44 0 9192K 4520K RUN 3:48 0.00% verlihub Can you answer, which? -- С уважением, KES mailto:kes-kes@yandex.ru