From owner-freebsd-stable@FreeBSD.ORG Tue Aug 22 04:21:59 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 770FF16A4DE for ; Tue, 22 Aug 2006 04:21:59 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5AF243D49 for ; Tue, 22 Aug 2006 04:21:58 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so2686986pye for ; Mon, 21 Aug 2006 21:21:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MQQbyaqHWoiKe4+aXdfqKllt158Yj/hNmSqaQYlA5FI0Xog0EeDCUxA9qLNVrrk6gR7D04CGAEpAbrENpLhw3lZxtdeNARPkaRRUp3LjhCF2YqK1CiLhE4QJSltrO1hGWn33jGM90eluRsFtnMHgAyo22CAO79CQvKHWWufQcc0= Received: by 10.35.135.12 with SMTP id m12mr14745614pyn; Mon, 21 Aug 2006 21:21:58 -0700 (PDT) Received: by 10.35.124.18 with HTTP; Mon, 21 Aug 2006 21:21:58 -0700 (PDT) Message-ID: Date: Tue, 22 Aug 2006 12:21:58 +0800 From: "Jiawei Ye" To: "Dan Nelson" In-Reply-To: <20060815172728.GB88051@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44E1F796.5070105@rogers.com> <20060815172728.GB88051@dan.emsphone.com> Cc: Mike Jakubik , 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, 22 Aug 2006 04:21:59 -0000 On 8/16/06, 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. > > -- > Dan Nelson > dnelson@allantgroup.com I am seeing this on a UP system too. last pid: 35355; load averages: 0.36, 0.08, 0.03 up 1+12:11:39 12:20:56 205 processes: 3 running, 202 sleeping CPU states: 97.8% user, 0.0% nice, 1.5% system, 0.0% interrupt, 0.7% idle Mem: 122M Active, 52M Inact, 59M Wired, 7808K Cache, 34M Buf, 524K Free Swap: 1024M Total, 40M Used, 984M Free, 3% Inuse PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 35343 www 22 4 0 275M 64620K accept 0:21 271.92% java 767 jabber 1 91 0 8836K 1284K select 7:07 0.00% perl5.8.8 875 pgsql 1 91 0 19880K 1748K select 0:20 0.00% postgres 840 vscan 1 4 0 22892K 18304K accept 0:17 0.00% clamd 4733 www 27 4 0 17428K 3268K kqread 0:10 0.00% httpd -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming