Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 12:27:28 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Mike Jakubik <mikej@rogers.com>
Cc:        stable@freebsd.org
Subject:   Re: TOP shows above 100% WCPU usage
Message-ID:  <20060815172728.GB88051@dan.emsphone.com>
In-Reply-To: <44E1F796.5070105@rogers.com>
References:  <44E1F796.5070105@rogers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



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