Confused by CPU values in Unix ‘top’ command

central-processing-unittopunix

In the screenshot below, the overall CPU is being reported as 3% but the mysqld process is reported as using 57%. Is this 57% of the overall 3% and thus mysqld is only using about 1.5% of the CPU?

top screenshot http://img.skitch.com/20090620-cih33piwnnrke6aw41y9p1phwr.jpg

UPDATE: A commenter below requested I press the '1' key and post the results:
the 1 key http://img.skitch.com/20090620-gayja43s44qtw2wkw4aq642e8c.jpg

Best Answer

The 57.6% means that mysqld is using .576 of one cpu. The discrepancy is likely to be a race condition between data collection for the system as a whole and collecting the per-process data.

EDIT: Based on your update looks like you have 16 cores.

57.5% => .575/16 = .036 = 3.6%.

So that's where your 3% is coming from.

If you sum all the idle percentages and subtract from 1600%, that also comes out to about 57.5%.