From owner-freebsd-performance@FreeBSD.ORG Mon Apr 19 20:27:29 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCDAF16A4CE for ; Mon, 19 Apr 2004 20:27:29 -0700 (PDT) Received: from mail.lambertfam.org (www.lambertfam.org [216.223.208.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61A1443D1F for ; Mon, 19 Apr 2004 20:27:29 -0700 (PDT) (envelope-from lambert@lambertfam.org) Received: from localhost (localhost [127.0.0.1]) by mail.lambertfam.org (Postfix) with ESMTP id 6D56634D50 for ; Mon, 19 Apr 2004 23:27:26 -0400 (EDT) Received: from mail.lambertfam.org ([127.0.0.1]) by localhost (www.lambertfam.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25431-10 for ; Mon, 19 Apr 2004 23:27:17 -0400 (EDT) Received: from laptop.lambertfam.org (ool-182db8f6.dyn.optonline.net [24.45.184.246]) by mail.lambertfam.org (Postfix) with ESMTP id 5C69334D3B for ; Mon, 19 Apr 2004 23:27:17 -0400 (EDT) Received: by laptop.lambertfam.org (Postfix, from userid 1001) id A4F58C111; Mon, 19 Apr 2004 23:27:16 -0400 (EDT) Date: Mon, 19 Apr 2004 23:27:16 -0400 From: Scott Lambert To: freebsd-performance@freebsd.org Message-ID: <20040420032716.GC56561@laptop.lambertfam.org> Mail-Followup-To: freebsd-performance@freebsd.org References: <20040416220556.GL87362@nasby.net> <002701c42404$e9dbecf0$3102a8c0@metallus> <20040419022239.GP87362@nasby.net> <001801c425dd$1fda0b00$3102a8c0@metallus> <20040419140921.GS87362@nasby.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040419140921.GS87362@nasby.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at lambertfam.org Subject: Re: command piped into bzip not using all available CPU X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 03:27:29 -0000 On Mon, Apr 19, 2004 at 09:09:21AM -0500, Jim C. Nasby wrote: > Why would I expect to see it only use one CPU? It was CPU bound, not > disk bound. There were two CPU-intensive processes running, why wouldn't > they each use a different CPU? > > On Mon, Apr 19, 2004 at 12:08:32AM -0700, Aaron Seelye wrote: > > I'm not sure the exact technical reason, but as I understand that, it's > > 47% idle on the total cpu power of the machine, which would indicate > > that one cpu was 100% full, and the other was 3%, due to system usage, > > i/o, or whatever else was running. This is quite normal in my > > experience, and what you should expect to see. At the time you took the snapshot, both processes were running on the same CPU. FreeBSD 4.x or 5.2? If 5.2, SCHED_4BSD or SCHED_ULE? > > > The command I'm running is: > > > pg_dump -vZ0 ogr | bzip2 > ogr-20040416.sql.bz2 > > > > > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > > > 17334 decibel 109 0 10856K 7164K CPU0 0 11:05 65.77% 65.77% bzip2 > > > 17335 pgsql 4 0 154M 124M sbwait 0 5:54 34.03% 34.03% postgres > > > 17333 decibel -8 0 20128K 3236K pipdwt 0 0:46 2.88% 2.88% pg_dump -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org