Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2010 23:46:30 +0300
From:      =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= <kes-kes@yandex.ru>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        Martin Turgeon <freebsd@optiksecurite.com>, Bas Smeelen <b.smeelen@ose.nl>, freebsd-questions@freebsd.org
Subject:   Re[2]: How is CPU usage calculated?
Message-ID:  <1324871657.20101018234630@yandex.ru>
In-Reply-To: <AANLkTimNJxGGak3HWRfDCHHvgBPe%2BaANS90pthbpBOQD@mail.gmail.com>
References:  <20101015071719.1536f19e@mail.ose.nl> <4CBC97CB.80604@optiksecurite.com> <AANLkTimT_4D4THvszdDS=U0UKtScGgKZEN4A9e8BB2%2Bf@mail.gmail.com> <4CBCA8D1.5040005@optiksecurite.com> <AANLkTimNJxGGak3HWRfDCHHvgBPe%2BaANS90pthbpBOQD@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=C7=E4=F0=E0=E2=F1=F2=E2=F3=E9=F2=E5, Adam.

=C2=FB =EF=E8=F1=E0=EB=E8 18 =EE=EA=F2=FF=E1=F0=FF 2010 =E3., 23:35:55:

AVM> On Mon, Oct 18, 2010 at 3:06 PM, Martin Turgeon
AVM> <freebsd@optiksecurite.com>wrote:

>> I just reread it and it isn't clearer what is using the CPU so much. Can
>> you please give me a little more explanation?
>>

AVM> A line in top(1) like:

AVM> CPU:  0.0% user,  0.0% nice,  0.4% system,  0.4% interrupt, 99.3% idle

AVM> does not describe how much CPU is being used, but rather a "percentage=
 of
AVM> time spent in each of the processor states".  It's saying of the CPU c=
ycles
AVM> that are being used, this is what it breaks down as.  Since MySQL is a
AVM> userland application, you'd expect the value of user to be quite high =
if
AVM> that was only thing running on your system and it was under high load.

AVM> You can infer how much CPU is being used from the line, but there are =
better
AVM> and more accurate methods generally of getting that information especi=
ally
AVM> with SMP systems.


some times ago I was interested in this question also.
From=20this explanations I undestand nothing.
>>you'd expect the value of user to be quite high if that was only thing ru=
nning on your system and it was under high load.
1. 'values of user' which value??? or value of what???
2. 'quite high' how much it is?
3. 'high load' how I can detect that high load???

in man pages no usefull info except description of options.
there are no examples how %idle system etc are calculated
what is WCPU and CPU and how they are calculated NO EXAMPLES
no example how find processes which take hole CPU time\

top is powerfull tool, but whiout docs it seems useless. that is sad


--=20
=D1 =F3=E2=E0=E6=E5=ED=E8=E5=EC,
 =CA=EE=ED=FC=EA=EE=E2                          mailto:kes-kes@yandex.ru




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1324871657.20101018234630>