Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2006 00:11:21 +0200
From:      "O. Hartmann" <ohartman@mail.uni-mainz.de>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        Mike Jakubik <mikej@rogers.com>, stable@freebsd.org
Subject:   Re: TOP shows above 100% WCPU usage
Message-ID:  <44E39809.10104@mail.uni-mainz.de>
In-Reply-To: <20060815172728.GB88051@dan.emsphone.com>
References:  <44E1F796.5070105@rogers.com> <20060815172728.GB88051@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote:
> In the last episode (Aug 15), Mike Jakubik said:
>   
>> 35 processes:  7 running, 28 sleeping
>> CPU states: 58.1% user,  0.0% nice, 38.4% system,  1.1% interrupt,  2.4%  idle
>> Mem: 642M Active, 416M Inact, 125M Wired, 112M Buf, 825M Free
>> Swap: 4071M Total, 4071M Free
>>
>>  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
>>  465 mysql      18  20    0   905M   641M kserel 0  39:18 160.64% mysqld
>>  631 root        1  96    0  2424K  1668K CPU1   0   0:02  0.00% top
>>
>> How can mysql use 160%? Is this a reporting bug in top because mysql is 
>> threaded?
>>     
>
> You have multiple CPUs, so a threaded process can theoretically reach
> 100*ncpus cpu usage.
>
>   
I use FreeBSD 6.1-STABLE/AMD on an pure 64Bit box/environment, single 
CPU Athlon 3500+, and sometimes I can see a 100%+ usage of WCPU in 
'xine' or 'transmission'. So this is definitely not related to multiple 
CPUs.



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