From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 07:27:37 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EAF11065677 for ; Wed, 10 Dec 2008 07:27:37 +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 C8FC88FC16 for ; Wed, 10 Dec 2008 07:27:36 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp15.yandex.ru (smtp15.yandex.ru [77.88.32.85]) by forwards4.yandex.ru (Yandex) with ESMTP id 82ACB4C5805 for ; Wed, 10 Dec 2008 10:15:43 +0300 (MSK) Received: from 142-1-113-92.pool.ukrtel.net ([92.113.1.142]:9476 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4866217AbYLJHPl (ORCPT ); Wed, 10 Dec 2008 10:15:41 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp15 X-Yandex-TimeMark: 1228893341 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 3 X-Comment: RFC 2476 MSA function at smtp15.yandex.ru logged sender identity as: kes-kes Date: Wed, 10 Dec 2008 09:15:38 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <1797264058.20081210091538@yandex.ru> To: questions@freebsd.org In-Reply-To: References: <200811210836.mAL8aASM047460@freefall.freebsd.org> <540454.20081209233455@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Subject: Re[4]: bin/129027: ambigious output for top(1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 07:27:37 -0000 Здравствуйте, Remko. Вы писали 10 декабря 2008 г., 6:12:58: RL> Send questions to questions@freebsd.org RL> Thnx RL> Verstuurd vanaf mijn iPhone RL> Op 9 dec 2008 om 22:34 heeft KES het volgende RL> geschreven:\ >> Здравствуйте, 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 >> -- С уважением, KES mailto:kes-kes@yandex.ru