From owner-freebsd-current@FreeBSD.ORG Sun Feb 24 21:00:36 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACB3B16A400 for ; Sun, 24 Feb 2008 21:00:36 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC4D13C4DB for ; Sun, 24 Feb 2008 21:00:36 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JTNxZ-0004Vi-K4 for freebsd-current@freebsd.org; Sun, 24 Feb 2008 21:00:33 +0000 Received: from 78-1-110-139.adsl.net.t-com.hr ([78.1.110.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Feb 2008 21:00:33 +0000 Received: from ivoras by 78-1-110-139.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Feb 2008 21:00:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Sun, 24 Feb 2008 22:00:22 +0100 Lines: 51 Message-ID: References: <845250.18624.qm@web63909.mail.re1.yahoo.com> <47BF5702.3020204@FreeBSD.org> <47BF8EB7.9090007@barafranca.com> <47BFB70F.5080402@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig428267FAEEBB4BE0C2EDE6C0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-110-139.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <47BFB70F.5080402@FreeBSD.org> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: cpu usage in 7.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 21:00:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig428267FAEEBB4BE0C2EDE6C0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Kris Kennaway wrote: > Hugo Silva wrote: >> Kris Kennaway wrote: >>> Barney Cordoba wrote: >>>> I have a dual core system running 7.0 and I can't get >>>> top to show more than 100% usage no matter how I >>>> hammer it. My MAC shows over 100% often, but its not >>>> clear if top is averaging the 2 cpus or just not going >>>> over 100, or just showing 1 of the cpus. >>> >>> 100% in FreeBSD means "all of your CPUs are completely active". It=20 >>> is hard to exceed this amount :-) >> >> You should see my production mysql going over 458% on service startup,= =20 >> on a quad core server :-) >=20 > That is a multithreaded process using multiple CPUs, not the total CPU = > statistics (first line of top(1)). So how does a multithreaded process get 458% CPU on a quad-core machine? = :) (Really, I want to know; I thought thread CPU accounting was fixed in = 7.x. Unless I'm mistaken, 4 CPU-intensive threads in a single process=20 should account as 4 CPU-intensive single-thread processes; i.e. each=20 could only take up to 100% of a core/CPU, accounting for NCPU*100% total)= =2E --------------enig428267FAEEBB4BE0C2EDE6C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHwdrmldnAQVacBcgRAkc7AKCfpM90c6jEnMgNqdDxAOGwkiThIgCfXiXv V5YimNwvkPTleMkxAfTTwLM= =vAhL -----END PGP SIGNATURE----- --------------enig428267FAEEBB4BE0C2EDE6C0--