Re: dd too slow

From: emilio lazardo (NotARealAddress_at_spam.this)
Date: 12/21/03


Date: Sat, 20 Dec 2003 23:08:26 GMT


'hdparm -iv /dev/hda /dev/hdc' will tell you if DMA is set on both drives,
which it should be:

> hdparm -v /dev/hdb

/dev/hdb:
  multcount = 0 (off)
  IO_support = 1 (32-bit)
  unmaskirq = 1 (on)
  using_dma = 1 (on)
  keepsettings = 1 (on)
  readonly = 0 (off)
  readahead = 8 (on)
  geometry = 2491/255/63, sectors = 40021632, start = 0

Even for slower 5400RPM drives, 40GB -> 40GB should take no more than 45
minutes when the drives are on different controllers as yours are.

For block sizes over 4k, the 'bs' value does not make any significant
difference. For example, 'bs=4k' will copy just as fast as 'bs=1024k'.

> hdparm -tT /dev/hdb

/dev/hdb:
  Timing buffer-cache reads: 664 MB in 2.00 seconds = 332.00 MB/sec
  Timing buffered disk reads: 84 MB in 3.04 seconds = 27.63 MB/sec

> /usr/bin/time dd if=/dev/hdb of=/spare/bs.test bs=4k count=131072
131072+0 records in
131072+0 records out
: dd if=/dev/hdb of=/spare/bs.test bs=4k count=131072
: 31.34 0:31.34 s 17.15 u 0.06 c 54% mapf 112 mipf 12

> /usr/bin/time dd if=/dev/hdb of=/spare/bs.test bs=1024k count=512
512+0 records in
512+0 records out
: dd if=/dev/hdb of=/spare/bs.test bs=1024k count=512
: 31.31 0:31.31 s 17.47 u 0.00 c 55% mapf 113 mipf 267

> bc -q
4*1024*131072
536870912
1024*1024*512
536870912

rgds,
tim.

Scott wrote:
> I had to copy one HDD to another of same brand-size-model and it took more
> than 6 hours (I left it running) for 40GB UDMA 100 hard drives.
>
> I used these command options
> dd if=/dev/hda of=/dev/hdc bc=1M
>
> is this a normal speed for this size?
> can make it faster?
> would hdparam do any good?



Relevant Pages

  • Re: Large External HDs
    ... Newegg) eSata controller cards in several of the machines ... drives when installed on my internal controllers routinely ... or while searching for Adaptec performance ...
    (rec.video.desktop)
  • Re: Large External HDs
    ... your PC will have a few eSATA ports available from ... installed on my internal controllers routinely get at least 60 ... floppy drive (but do have floppy drives in several of the ... for Adaptec performance commentary. ...
    (rec.video.desktop)
  • Re: Needing to get HDD temp readings from drive in an Intel Matrix Storage Manager array
    ... - I need to know the temp of the actual drives. ... Use a utility that can monitor the "motherboard temperature" readout ... Install a separate disk, ... "Can I monitor disks behind RAID controllers?" ...
    (microsoft.public.windowsxp.hardware)
  • Re: What is a good choice of sata-ii raid controller for freebsd?
    ... > I can highly recommend the Areca family of SATA-II controllers. ... > SATA-II drives attached to it in a RAID5 configuration. ... Does Areca provide any form of carriage/enclosure medium, ...
    (freebsd-stable)
  • Re: dd(1) performance when copiing a disk to another
    ... on the disk technology generation and the placement of the sectors being ... I get the following speeds for _sequential_ _reading- from the ... Drive technology hit a speed plateau a few years ago so newer single drives ... The speed is low for small block sizes because the device has to be ...
    (freebsd-performance)