restore(8) to UFS on USB key: terrible slow

Matthias Apitz guru at unixarea.de
Thu Dec 8 09:19:48 UTC 2011


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 <guru at unixarea.de> - 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


More information about the freebsd-questions mailing list