From owner-freebsd-stable@FreeBSD.ORG Thu Aug 17 05:28:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47E5B16A4DA for ; Thu, 17 Aug 2006 05:28:12 +0000 (UTC) (envelope-from bill@lefebvre.org) Received: from atl04.ws-e.com (vh00.ws-e.com [69.61.31.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB36D43D4C for ; Thu, 17 Aug 2006 05:28:10 +0000 (GMT) (envelope-from bill@lefebvre.org) Received: from lilburn.lefebvre.org (ocee.groupsys.com [66.149.10.161]) by atl04.ws-e.com (8.13.6/8.13.6) with ESMTP id k7H5S9vK060156 for ; Thu, 17 Aug 2006 01:28:09 -0400 (EDT) (envelope-from bill@lefebvre.org) Received: from [192.168.0.110] (decatur.lefebvre.org [192.168.0.110]) by lilburn.lefebvre.org (8.13.3/8.12.8) with ESMTP id k7H5S1pw046194 for ; Thu, 17 Aug 2006 01:28:08 -0400 (EDT) (envelope-from bill@lefebvre.org) Message-ID: <44E3FE61.6060800@lefebvre.org> Date: Thu, 17 Aug 2006 01:28:01 -0400 From: Bill LeFebvre User-Agent: Thunderbird 1.5.0.2 (X11/20060425) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <44E1F796.5070105@rogers.com> <20060815172728.GB88051@dan.emsphone.com> <44E204C0.60806@rogers.com> In-Reply-To: <44E204C0.60806@rogers.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-NIET-Metrics: lilburn.lefebvre.org 1080; env_From=1 Body=1 Fuz1=1 Fuz2=1 X-Scanned-By: MIMEDefang 2.43 Subject: Re: TOP shows above 100% WCPU usage X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 05:28:12 -0000 Mike Jakubik wrote: > Dan Nelson wrote: >>> How can mysql use 160%? Is this a reporting bug in top because mysql >>> is threaded? >>> >> >> You have multiple CPUs, so a threaded process can theoretically reach >> 100*ncpus cpu usage. >> >> > > Ahh, thats makes sense, thanks. Actually it doesn't. IMO, %CPU should be biased for all available cpu, not just a single cpu. In other words, a single-threaded process running on a two processor box should never see more than 50% cpu. That's how top computes it for SunOS. But for freebsd top only displays whats in the proc structure and I don't know off-hand how the kernel records it. Bill LeFebvre