I'm trying to use dd to image the partitions on an old drive, using the
command:
dd if=/dev/hdd4 of=~/tmp/hdd4
The process has been running since about 1:30AM this morning.
According to gkrellm, /dev/hdd is getting (mostly) sustained transfer
rates of 131K/s, while the device on which the destination file
resides, /dev/hdb, is seeing continuous transfer rates ranging from
4.9MB/s to 6.3MB/s.
What would cause that? From watching the image file grow, the 131K/s
number sounds a lot more accurate.
I ran an offline SMART test on /dev/hdd before beginning the transfer.
Here's the results of a subsequent "smartctl -a /dev/hdd" :
Some of you might remember my post about trying to get a LaCie internal
drive working.smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: ST310212A
Serial Number: 7EG09BDY
Firmware Version: 3.02
Device is: Not in smartctl database [for details use: -P
showall]
ATA Version is: 5
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sat Apr 2 13:47:14 2005 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection
activity
was completed without error.
Auto Offline Data Collection:
Enabled.
Self-test execution status: ( 0) The previous self-test routine
completed
without error or no self-test
has ever
been run.
Total time to complete Offline
data collection: (2400) seconds.
Offline data collection
capabilities: (0x1d) SMART execute Offline
immediate.
No Auto Offline data collection
support.
Abort Offline collection upon
new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test
supported.
No Selective Self-test
supported.
SMART capabilities: (0x0003) Saves SMART data before
entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
No General Purpose Logging
support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 14) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE
UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0008 091 082 000 Old_age Offline
- 85094852
3 Spin_Up_Time 0x0006 098 098 000 Old_age Always
- 0
4 Start_Stop_Count 0x0013 100 100 020 Pre-fail Always
- 109
5 Reallocated_Sector_Ct 0x0013 100 100 036 Pre-fail Always
- 22
7 Seek_Error_Rate 0x0009 058 054 030 Pre-fail Offline
- 223372185858
9 Power_On_Hours 0x0012 095 095 000 Old_age Always
- 4918
10 Spin_Retry_Count 0x0013 100 100 090 Pre-fail Always
- 0
12 Power_Cycle_Count 0x0013 100 100 000 Pre-fail Always
- 109
197 Current_Pending_Sector 0x0030 100 100 000 Old_age
Offline - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age
Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age
Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
(/results)
Edited it a bit, to make it fit better in 80 columns. According to the
"Offline data collection status", the offline test ran without error.
There are 22 relocated sectors, but I can't a mere 22 seeks, over the
course of the entire disk, holding down the transfer rate like that.
According to hdparm, the drive is using DMA. The master device on the
IDE channel is a 16X DVD-ROM drive, so I'd have to believe there's
decent DMA hardware servicing the drive.
What could be wrong? Are there any other diagnostic utilities I can
run on it? (Without pulling out the Ultimate Boot CD, that is.)
|
|
0
|
|
|
|
Reply
|
mikemol (370)
|
4/2/2005 6:54:36 PM |
|
Mike Mol wrote:
> I'm trying to use dd to image the partitions on an old drive, using the
> command:
>
> dd if=/dev/hdd4 of=~/tmp/hdd4
>
> The process has been running since about 1:30AM this morning.
> According to gkrellm, /dev/hdd is getting (mostly) sustained transfer
> rates of 131K/s, while the device on which the destination file
> resides, /dev/hdb, is seeing continuous transfer rates ranging from
> 4.9MB/s to 6.3MB/s.
>
> What would cause that? From watching the image file grow, the 131K/s
> number sounds a lot more accurate.
Have tried playing with the bs (blocksize) paramter to dd? That can
make a *huge* difference in overall throughput.
|
|
0
|
|
|
|
Reply
|
jpstewart (2598)
|
4/2/2005 7:14:41 PM
|
|
John-Paul Stewart wrote:
> Mike Mol wrote:
> > I'm trying to use dd to image the partitions on an old drive, using
the
> > command:
> >
> > dd if=/dev/hdd4 of=~/tmp/hdd4
> >
> > The process has been running since about 1:30AM this morning.
> > According to gkrellm, /dev/hdd is getting (mostly) sustained
transfer
> > rates of 131K/s, while the device on which the destination file
> > resides, /dev/hdb, is seeing continuous transfer rates ranging from
> > 4.9MB/s to 6.3MB/s.
> >
> > What would cause that? From watching the image file grow, the
131K/s
> > number sounds a lot more accurate.
>
> Have tried playing with the bs (blocksize) paramter to dd? That can
> make a *huge* difference in overall throughput.
Hm. I'm now running a parallel dd operation with a bs=1M argument.
I'm seeing a sustained 7MB+ transfer rate on /dev/hdd. Works like a
charm, despite having two (supposedly) demanding reads going to the
same device.
(and a few seconds later)
Canceled the first dd operation. Second operation now hovers in the
9-11MB/s range. Thanks a bunch.
That still doesn't explain to me why the receiving drive was
transferring data at such a disproportional rate, though.
|
|
0
|
|
|
|
Reply
|
mikemol (370)
|
4/2/2005 10:07:28 PM
|
|
Mike Mol wrote:
> John-Paul Stewart wrote:
> > Mike Mol wrote:
> > > I'm trying to use dd to image the partitions on an old drive,
using
> the
> > > command:
> > >
> > > dd if=/dev/hdd4 of=~/tmp/hdd4
> > >
> > > The process has been running since about 1:30AM this morning.
> > > According to gkrellm, /dev/hdd is getting (mostly) sustained
> transfer
> > > rates of 131K/s, while the device on which the destination file
> > > resides, /dev/hdb, is seeing continuous transfer rates ranging
from
> > > 4.9MB/s to 6.3MB/s.
> > >
> > > What would cause that? From watching the image file grow, the
> 131K/s
> > > number sounds a lot more accurate.
> >
> > Have tried playing with the bs (blocksize) paramter to dd? That
can
> > make a *huge* difference in overall throughput.
>
> Hm. I'm now running a parallel dd operation with a bs=1M argument.
> I'm seeing a sustained 7MB+ transfer rate on /dev/hdd. Works like a
> charm, despite having two (supposedly) demanding reads going to the
> same device.
>
> (and a few seconds later)
>
> Canceled the first dd operation. Second operation now hovers in the
> 9-11MB/s range. Thanks a bunch.
>
> That still doesn't explain to me why the receiving drive was
> transferring data at such a disproportional rate, though.
That's because doing a bunch of teenie, tiny reads with the default dd
block size has more impact on the read side of the operation. The
writes are "written" to the write buffer from the I/O cache (memory),
then flushed (written) to disk in big, consolidated operations.
With so many I/O subsystems running around these days with the 2.6.X
kernels in addition to the 2.4.20+(?) kernels, even the degree of
impact would likely differ. Not sure how the "throughput" is
measured/calculated with gkrellm or how the differences in kernels
would effect its output.
hth,
prg
|
|
0
|
|
|
|
Reply
|
rdgentry1 (769)
|
4/3/2005 2:01:10 PM
|
|
|
3 Replies
37 Views
(page loaded in 0.091 seconds)
Similiar Articles: Measuring file copy speed - comp.unix.solarisWhat is the best way to measure the rate (time and/or megs per sec) to copy larges files. My flash drive seams very slow, and I'd just like to cloc... Quickest way to bulk copy many files from one disk cluster to ...Your data transfer rate is over an order of ... How to Copy Files From One Linux Computer to Another ... Copying one file to different destinations. - comp.unix.programmer ... HELP! Downloading large files disconnects my ethernet/network ...When I try to download large files (file sizes vary), the transfer rate ... XP, XP SP-2, Windows MCE 2005, 2 different ... Copying Large files in HPUX - comp.sys.hp.hpux HELP! question for zone copy from one global zone to another global zone ...... if doing sparse zones, the above will fail if the two global zones have different ... Quickest way to bulk copy many files from one disk cluster to ... Lookups or copy data ... fcopy -size limit - comp.lang.tcl... it lets you report current actual transfer rates and ... unix.programmer How to implement a function to copy file on ... Photoshop How-To: Copying Between Images of Different Size ... how to stop dhclient from modifying resolv.conf - comp.os.linux ...Since the hardware emulated is different I can configure two network interfaces ... When in this situation, I create a hold/ directory, copy file into hold, then modify ... How to implement a function to copy file on LINUX ? - comp.unix ...How to implement a function to copy file on LINUX ? - comp.unix ... copy a file while it is actively being written - comp.os.linux ..... problem could happen if I copy a ... HP-UX 11.31: Problem with NFSv4 and VxFS 5 - comp.sys.hp.hpux ...On a second attempt for the same file, copy reports an I/O error with a quota problem. ... "Out of space ... > I'm not sure whether MacOS is any different in this ... of ... M-file PID control of mass-spring-damper - comp.soft-sys.matlab ...I have copy/pasted two m-files below. The first of these defines the model parameters and ... when I simulate the system in the time domain, the response is very different. Fixed length records containing 2 different records types with ...I am beginning to receive fixed length record ASCII files but they contain 2 different record types. ... William James wrote: > When I copy "200409113 834736A90028" and paste ... Transfer Rate and Copy file rate: transfer, copy, rate, slow, fileI copy a file in 200M from 160G to 120G, and it took ... Keywords: Transfer, Rate, and, Copy, file, rate. data ... these are SATA, which would be entirely different). How to: Copy, Delete, and Move Files and Folders (C# Programming ...15 out of 19 rated this helpful - Rate this topic ... The following examples show how to copy, move, and delete files and folders in a synchronous manner ... 7/9/2012 12:46:16 PM
|