From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 11 10:48:16 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 89C6616A582 for ; Wed, 11 Oct 2006 10:48:16 +0000 (UTC) (envelope-from mafiageek@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 423A943D5D for ; Wed, 11 Oct 2006 10:48:04 +0000 (GMT) (envelope-from mafiageek@gmail.com) Received: by nf-out-0910.google.com with SMTP id n15so663754nfc for ; Wed, 11 Oct 2006 03:47:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=tZC14r0YH67INVjF4XRkvMNl3C1tHw1WN61lg/94Hy4jw4miJncadw0ItMXqd5y0ATNwicBUVkoPKlAYzn5P1Mn7KyJ6KZMhl64eqf7BJSQzZvG69yhTs81BSJ8b4BsRxbjibL7Fiqxr/2EPQG6Vis2fMNNmJqrgA1uChj2aTmw= Received: by 10.78.94.37 with SMTP id r37mr587202hub; Wed, 11 Oct 2006 03:47:55 -0700 (PDT) Received: from ?192.168.0.108? ( [203.97.120.80]) by mx.google.com with ESMTP id 8sm74751hug.2006.10.11.03.47.54; Wed, 11 Oct 2006 03:47:55 -0700 (PDT) Message-ID: <452CCBD6.6020900@gmail.com> Date: Wed, 11 Oct 2006 23:47:50 +1300 From: Dale DuRose User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <200610101727.k9AHRrYo039774@lurza.secnetix.de> <20061010205224.GB19608@britannica.bec.de> In-Reply-To: <20061010205224.GB19608@britannica.bec.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Wed, 11 Oct 2006 10:48:16 -0000 Hi I've tested on 6.1-RELEASE-p5 box these are my results. I'm wondering why the dragonfly results are so different. What have you guys done? Cheers Dale Run 1 ------------------------------------------------------------------------- %time sh -c "bsdtar -czf test.tgz /usr/src/contrib/gcc" 12.707u 0.547s 0:13.48 98.2% 58+607k 6+86io 0pf+0w %time sh -c "bsdtar -cf - /usr/src/contrib/gcc | gzip > test2.tgz" 11.043u 0.901s 0:12.07 98.9% 58+588k 0+86io 0pf+0w %time bsdtar -czf test3.tgz /usr/src/contrib/gcc 12.832u 0.525s 0:13.50 98.8% 58+607k 0+86io 0pf+0w Run 2 ------------------------------------------------------------------------- %time sh -c "bsdtar -czf test.tgz /usr/src/contrib/gcc" 12.810u 0.435s 0:13.39 98.8% 58+608k 0+86io 0pf+0w %time sh -c "bsdtar -cf - /usr/src/contrib/gcc | gzip > test2.tgz" 11.033u 0.884s 0:12.05 98.8% 58+590k 0+86io 0pf+0w %time bsdtar -czf test3.tgz /usr/src/contrib/gcc 12.684u 0.397s 0:13.33 98.0% 58+608k 0+86io 0pf+0w Run 2 File Results ------------------------------------------------------------------------- -rw-r--r-- 1 coder coder 11275589 Oct 11 23:39 test.tgz -rw-r--r-- 1 coder coder 11273163 Oct 11 23:40 test2.tgz -rw-r--r-- 1 coder coder 11275589 Oct 11 23:41 test3.tgz