From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 21:14:11 2010 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 003BA1065672 for ; Fri, 5 Mar 2010 21:14:10 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505e.appriver.com [98.129.35.9]) by mx1.freebsd.org (Postfix) with ESMTP id B4E7F8FC27 for ; Fri, 5 Mar 2010 21:14:10 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G179 G180 G181 G182 G186 G187 G198 G285 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 27075031 for freebsd-questions@freebsd.org; Fri, 05 Mar 2010 15:14:21 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.200]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Fri, 5 Mar 2010 15:14:09 -0600 From: Peter Steele To: "freebsd-questions@freebsd.org" Date: Fri, 5 Mar 2010 15:14:08 -0600 Thread-Topic: Calculating kernel/user/idle time Thread-Index: Acq8qMtqUDfq8P98QnaAYf0hhfPcAw== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3A1A640C@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Calculating kernel/user/idle time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 21:14:11 -0000 What's the proper way to calculate kernel/user/idle time? I know the raw va= lues come from sysctl kern.cp_time, but these values need to be "massaged"= based on the number of CPUs and so on. Can someone explain briefly what th= e algorithm is calculating the final percentages representing these times.