Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jan 2009 23:53:35 -0800
From:      Yuri <yuri@rawbw.com>
To:        freebsd-questions@freebsd.org
Subject:   How process CPU percentage is calculated?
Message-ID:  <49645F7F.80508@rawbw.com>

Next in thread | Raw E-Mail | Index | Archive | Help
I have a process that is CPU intense.
'top -C' shows CPU usage for this process no higher than 20%, more like 
15-18%.
But TIME field grows 10 sec for every 15-17 secs or real time.

top(1) says: Each time -C flag is passed it  toggles between  "raw  
cpu"  mode  and  "weighted cpu" mode

So I am looking at "raw cpu". With 15-18% CPU every second of process 
TIME should correspond to ~6secs of real time, and in my case it's only 
~1.6sec of real time.

Why CPU field is so low?

Yuri




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?49645F7F.80508>