From owner-freebsd-performance@FreeBSD.ORG Fri Apr 16 15:48:21 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 C719016A4CE for ; Fri, 16 Apr 2004 15:48:21 -0700 (PDT) Received: from katmai.eltopia.com (katmai.eltopia.com [64.146.186.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4886F43D48 for ; Fri, 16 Apr 2004 15:48:21 -0700 (PDT) (envelope-from aseelye-lists@eltopia.com) Received: from metallus (unverified [68.116.17.36]) by katmai.eltopia.com (Vircom SMTPRS 3.0.286) with SMTP id ; Fri, 16 Apr 2004 15:48:20 -0700 Message-ID: <002701c42404$e9dbecf0$3102a8c0@metallus> From: "Aaron Seelye" To: "Jim C. Nasby" , References: <20040416220556.GL87362@nasby.net> Date: Fri, 16 Apr 2004 15:48:19 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300 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: Fri, 16 Apr 2004 22:48:21 -0000 I would venture a guess that bzip is not multi threaded and therefore isn't spreading the load around. -Aaron Seelye ----- Original Message ----- From: "Jim C. Nasby" To: Sent: Friday, April 16, 2004 3:05 PM Subject: command piped into bzip not using all available CPU As you can see below, a command piped into bzip2 is only effectively using one CPU. It's not disk bound, both systat and gstat report less than 10% disk utilization. Why is this? The command I'm running is: pg_dump -vZ0 ogr | bzip2 > ogr-20040416.sql.bz2 last pid: 18345; load averages: 1.17, 1.09, 0.81 up 8+22:12:27 17:00:56 66 processes: 2 running, 64 sleeping CPU states: 49.4% user, 0.0% nice, 3.7% system, 0.2% interrupt, 46.7% idle Mem: 67M Active, 2935M Inact, 359M Wired, 331M Cache, 255M Buf, 5576K Free Swap: 8192M Total, 64M Used, 8127M Free, 48K Out 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 -- Jim C. Nasby, Database Consultant jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" _______________________________________________ freebsd-performance@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-performance To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"