Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2011 10:19:43 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-questions@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: restore(8) to UFS on USB key: terrible slow
Message-ID:  <20111208091943.GA7014@tinyCurrent>
In-Reply-To: <201112081010.36695.hselasky@c2i.net>
References:  <20111208063711.GA6482@tinyCurrent> <201112081010.36695.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111208091943.GA7014>