bin/129027: ambigious output for top(1)
KES
kes-kes at yandex.ru
Tue Dec 9 23:27:37 PST 2008
Здравствуйте, Remko.
Вы писали 10 декабря 2008 г., 6:12:58:
RL> Send questions to questions at freebsd.org
RL> Thnx
RL> Verstuurd vanaf mijn iPhone
RL> Op 9 dec 2008 om 22:34 heeft KES <kes-kes at yandex.ru> 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 at yandex.ru
>>
--
С уважением,
KES mailto:kes-kes at yandex.ru
More information about the freebsd-questions
mailing list