TOP shows above 100% WCPU usage

O. Hartmann ohartman at mail.uni-mainz.de
Wed Aug 16 22:11:34 UTC 2006


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.


More information about the freebsd-stable mailing list