Subject: Re: Transfer speed from MFS to raw disk?
To: Bruce Martin <brucem@cat.co.za>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 01/17/2001 21:11:33
On Wed, Jan 17, 2001 at 09:03:34AM +0200, Bruce Martin wrote:
> I am trying to transfer data from a memory filesystem (mounted on /mnt) to
> raw disk device at a certain offset.
> 
> When I try:
>   dd if=/mnt/pre of=/dev/wd0g count=20480 skip=0 seek=0
> I get
>   10485760 bytes transferred in 30 secs (349525 bytes per sec)
> 
> When I change '/dev/wd0g' to '/dev/rwd0g':
>   dd if=/mnt/pre of=/dev/wd0g count=20480 skip=0 seek=0
> I get
>   10485760 bytes transferred in 7 secs (1497965 bytes per sec)
> 
> This shows that dd'ing to rwd0g is remarkably faster than wd0g. However,
> 1497965 bytes per sec still seems slow. If I write to a file in /usr/tmp
> (which is /usr/wd0e mount_ffs'ed):
>   dd if=/mnt/pre of=/usr/tmp/TEST count=20480 skip=0 seek=0
> I get
>   10485760 bytes transferred in 1 secs (10485760 bytes per sec)
> 
> Does this make sense? Can anybody tell me how I can very quickly transfer
> this sort of volume of data to a raw disk device at a high speed?

Try 'bs=64k', this should make it faster. 

--
Manuel Bouyer <bouyer@antioche.eu.org>
--