From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 18:21:20 2008 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 6FF8416A417 for ; Fri, 8 Feb 2008 18:21:20 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 27C8313C455 for ; Fri, 8 Feb 2008 18:21:20 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (nat-wh-1.rz.uni-karlsruhe.de [129.13.72.169]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 2807D405478; Fri, 8 Feb 2008 19:22:01 +0100 (CET) Message-ID: <47AC9D9D.8010104@bsdforen.de> Date: Fri, 08 Feb 2008 19:21:17 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.9 (X11/20080205) MIME-Version: 1.0 To: Devanand SP References: <559446.52619.qm@web45110.mail.sp1.yahoo.com> In-Reply-To: <559446.52619.qm@web45110.mail.sp1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to find CPU IDLE Percentage on SMP (Dual processor Host) 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, 08 Feb 2008 18:21:20 -0000 Devanand SP wrote: > Hi Everyone, > > I am using a FreeBSD version 4.11 for running my BIND. I am in a need of setting up an audit for the CPU Utilization on my resolvers and have a query about finding the CPU IDLE percentage on a DUAL processor hosts. As the BIND binary uses only the first processor, the second CPU most of the time not used by BIND. So in this case the in built system utilities like top or sar does average the CPU IDLE percentage by adding up the First CPU's IDLE % + Second CPU's IDLE % /2. This in turn will give me a wrong result. So can someone suggest me on how I can get the right CPU IDLE %? > > Thanks. top -S will list the idle processes for each CPU separately. I hope this is a valid statement for 4.x. I am not certain.