From owner-cvs-all@FreeBSD.ORG Mon Mar 17 14:46:31 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B180C106569F; Mon, 17 Mar 2008 14:46:31 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0660F8FC55; Mon, 17 Mar 2008 14:46:31 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E7A0645F63; Fri, 14 Mar 2008 23:37:42 +0100 (CET) Received: from localhost (chello087206046210.chello.pl [87.206.46.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 327E84569A; Fri, 14 Mar 2008 23:37:38 +0100 (CET) Date: Fri, 14 Mar 2008 23:36:53 +0100 From: Pawel Jakub Dawidek To: Alfred Perlstein Message-ID: <20080314223652.GA20470@garage.freebsd.pl> References: <200712180849.lBI8nmEi088947@repoman.freebsd.org> <20071218100355.GR16982@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20071218100355.GR16982@elvis.mu.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Diomidis Spinellis , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/tools/regression/bin/mv regress.sh X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 14:46:31 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 18, 2007 at 02:03:55AM -0800, Alfred Perlstein wrote: > * Diomidis Spinellis [071218 00:48] wrote: > > dds 2007-12-18 08:49:47 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > tools/regression/bin/mv regress.sh=20 > > Log: > > Add more tests. All rename(2)-based tests now succeed. > > The performance of the cross-device equivalents is under investigatio= n. >=20 > Diomidis, >=20 > Does 'mv' spawn off tar or something to do the copy part? >=20 > You can _usually_ get much better cross device performance > by hooking two processes together like so: >=20 > tar -cf - -C /path/to/source . | tar -xf - -C /path/to/dst=20 >=20 > This will keep the disks a lot busier, but this can make > things worse on cross device moves that happen to be > on the same disk. I was thinking about adding two options to cp(1) (-1 and -2) to give cp(1) a hint if the copy is done inside one disk or between separate disks. In -1 case cp(1) will read as large blocks as possible and then write them, in -2 case it will spawn two threads: one reader and one writer working in parallel. Performance improvements are very visible from what I tested. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH2v4DForvXbEpPzQRAlOZAKDk2+7pUbFJrOSyT/9LOId4SUkK5ACglNJz 8bjfDo0b4T1TWtph4p8ZzoY= =KLyk -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--