From owner-freebsd-usb@FreeBSD.ORG Thu Dec 8 09:19:47 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2677106566B; Thu, 8 Dec 2011 09:19:47 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id B1A0C8FC15; Thu, 8 Dec 2011 09:19:47 +0000 (UTC) Received: from [88.217.23.127] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RYa8o-0004qJ-8m; Thu, 08 Dec 2011 10:19:46 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id pB89Ji1h007026; Thu, 8 Dec 2011 10:19:44 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id pB89JhsI007025; Thu, 8 Dec 2011 10:19:43 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 8 Dec 2011 10:19:43 +0100 From: Matthias Apitz To: Hans Petter Selasky Message-ID: <20111208091943.GA7014@tinyCurrent> References: <20111208063711.GA6482@tinyCurrent> <201112081010.36695.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201112081010.36695.hselasky@c2i.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 88.217.23.127 Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: restore(8) to UFS on USB key: terrible slow X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 09:19:48 -0000 El día Thursday, December 08, 2011 a las 10:10:36AM +0100, Hans Petter Selasky escribió: > > # fdisk -I da0 > > # fdisk -B da0 > > # bsdlabel -w da0s1 auto > > # bsdlabel -B da0s1 > > # bsdlabel -e da0s1 > > # newfs /dev/da0s1a > > # mount /dev/da0s1a /mnt > > > > When I now bulk write a big file to the file system, the write > > performance is reasonable fast, even with blocks of 512 bytes, > > it gives 2 MByte / sec: > > > > # dd if=usb.dmp of=/mnt/byte > > 10926520+0 records in > > 10926520+0 records out > > 5594378240 bytes transferred in 2538.942585 secs (2203428 bytes/sec) > > > > Hello! > > The default block size of dd is 512 bytes. Try setting bs=65536 :-) Hello Hans, I know (as I said) that dd(1) per default writes in blocks of 512 bytes; but this is not the problem; the problem is the poor performance of restore(8); the dd(1) was just to see if the USB key performs fast enough in general; please read my post again :-) Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5