From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 07:53:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77DC31065670 for ; Wed, 7 Jan 2009 07:53:37 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4C5FF8FC1E for ; Wed, 7 Jan 2009 07:53:37 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-24-6-210-197.hsd1.ca.comcast.net [24.6.210.197]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id n077rabD032589 for ; Tue, 6 Jan 2009 23:53:36 -0800 (PST) Message-ID: <49645F7F.80508@rawbw.com> Date: Tue, 06 Jan 2009 23:53:35 -0800 From: Yuri User-Agent: Thunderbird 2.0.0.18 (X11/20081127) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How process CPU percentage is calculated? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 07:53:37 -0000 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