Date: Thu, 8 Dec 2011 11:47:46 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: restore(8) to UFS on USB key: terrible slow Message-ID: <201112081147.46641.hselasky@c2i.net> In-Reply-To: <20111208091943.GA7014@tinyCurrent> References: <20111208063711.GA6482@tinyCurrent> <201112081010.36695.hselasky@c2i.net> <20111208091943.GA7014@tinyCurrent>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 08 December 2011 10:19:43 Matthias Apitz wrote: > El d=EDa Thursday, December 08, 2011 a las 10:10:36AM +0100, Hans Petter= =20 Selasky escribi=F3: > > > # fdisk -I da0 > > > # fdisk -B da0 > > > # bsdlabel -w da0s1 auto > > > # bsdlabel -B da0s1 > > > # bsdlabel -e da0s1 > > > # newfs /dev/da0s1a > > > # mount /dev/da0s1a /mnt > > >=20 > > > 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: > > >=20 > > > # dd if=3Dusb.dmp of=3D/mnt/byte > > > 10926520+0 records in > > > 10926520+0 records out > > > 5594378240 bytes transferred in 2538.942585 secs (2203428 bytes/sec) > >=20 > > Hello! > >=20 > > The default block size of dd is 512 bytes. Try setting bs=3D65536 :-) >=20 > Hello Hans, >=20 > 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 :-) Hi, The "restore" utility also has a -b option for blocksize. Did you try that? =2D-HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112081147.46641.hselasky>