From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 13:08:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3EA01065678; Fri, 31 Oct 2008 13:08:06 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id C19DA8FC0A; Fri, 31 Oct 2008 13:08:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2) with ESMTP id m9VD81Ug001595; Fri, 31 Oct 2008 14:08:01 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2/Submit) with ESMTP id m9VD80Nl001592; Fri, 31 Oct 2008 14:08:00 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 31 Oct 2008 14:07:59 +0100 (CET) From: Wojciech Puchar To: Jeremy Chadwick In-Reply-To: <20081031110159.GA30244@icarus.home.lan> Message-ID: <20081031140730.Y1584@wojtek.tensor.gdynia.pl> References: <490AC650.3000904@kukulies.org> <20081031110159.GA30244@icarus.home.lan> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Christoph Kukulies , freebsd-questions@freebsd.org Subject: Re: fastest raw device copy? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 13:08:07 -0000 > In general, what you're doing is correct for a block copy. There is > nothing (that I know of) which is faster; you're copying 500GB of data > (including the unused portion -- you *did* ask for a block copy), > and this takes a long time. Be patient. > > On the flip side, your blocksize (bs) there is quite high for no good > reason. I'd pick something more like bs=64k or bs=128k. The default > (512) is too small for what you want, but 10MBytes is silly. should be big but less than drive's buffer, and be multiply of sector size.