From owner-freebsd-stable@FreeBSD.ORG Tue Aug 15 17:27:31 2006 Return-Path: X-Original-To: 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 6F47C16A4DD for ; Tue, 15 Aug 2006 17:27:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5418943D69 for ; Tue, 15 Aug 2006 17:27:29 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k7FHRSTs029889; Tue, 15 Aug 2006 12:27:28 -0500 (CDT) (envelope-from dan) Date: Tue, 15 Aug 2006 12:27:28 -0500 From: Dan Nelson To: Mike Jakubik Message-ID: <20060815172728.GB88051@dan.emsphone.com> References: <44E1F796.5070105@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E1F796.5070105@rogers.com> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: stable@freebsd.org 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: Tue, 15 Aug 2006 17:27:31 -0000 In the last episode (Aug 15), Mike Jakubik said: > 35 processes: 7 running, 28 sleeping > CPU states: 58.1% user, 0.0% nice, 38.4% system, 1.1% interrupt, 2.4% idle > Mem: 642M Active, 416M Inact, 125M Wired, 112M Buf, 825M Free > Swap: 4071M Total, 4071M Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 465 mysql 18 20 0 905M 641M kserel 0 39:18 160.64% mysqld > 631 root 1 96 0 2424K 1668K CPU1 0 0:02 0.00% top > > 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. -- Dan Nelson dnelson@allantgroup.com