From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 13 16:56:50 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFCC016A415 for ; Fri, 13 Oct 2006 16:56:50 +0000 (UTC) (envelope-from khall@stbernard.com) Received: from mail.stbernard.com (mail.stbernard.com [64.154.93.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7814443D70 for ; Fri, 13 Oct 2006 16:56:50 +0000 (GMT) (envelope-from khall@stbernard.com) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 13 Oct 2006 09:56:32 -0700 Message-ID: <00C5463E8A5F7C41A8396D701A6734B1601F29@mail01.stbernard.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: "tar -c|gzip" faster than "tar -cz"?!? Thread-Index: Acbuv2eWG/5oVZ10TWyu1tVQhfqI+QAKIJUA From: "Kelly Hall" To: Subject: Re: "tar -c|gzip" faster than "tar -cz"?!? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 16:56:50 -0000 > From: Pieter de Goeje > Subject: Re: "tar -c|gzip" faster than "tar -cz"?!? > > The tar|gzip command uses 18% less CPU and is 10% faster. It=20 > is clear the HDD is the bottleneck. Now it's clear to me :) This makes sense if tar is single-threaded: there's only one thread of execution, and it can either be waiting on the disk, or compressing data. With two processes, gzip can compress while tar blocks on disk IO. Maybe the rest of you figured this out immediately, but it took my coffee a while to take effect ;) Kelly