TOP shows above 100% WCPU usage

Dan Nelson dnelson at allantgroup.com
Tue Aug 15 17:27:31 UTC 2006


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.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-stable mailing list