LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2006, 11:08 AM   #1
zerobane
Member
 
Registered: Jan 2006
Posts: 47

Rep: Reputation: 16
dd is very slow? Any alts? suggestions?


Hellos,

Using dd to copy some data from a drive to a image file on a usb device.

I am averaging about 1/2 meg a second, I was wondering if anyone could shed some light on what the bottleneck is and if a workaround is possible.

Is there any other way of making an image file of a partion?

dd if=/dev/c0d0p1 of=/mnt/usbdrive/test_image.img

Drive / usb are both 2.0 high-speed devices.
 
Old 03-20-2006, 11:53 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,013

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
Try playing around with the bs option eg:

dd if=/dev/c0d0p1 of=/mnt/usbdrive/test_image.img bs=4M
 
Old 03-20-2006, 03:56 PM   #3
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 275

Rep: Reputation: 32
Side By Side Down A Narrow Road

If they're both USB devices, then they're both using the same bus. Yes, it will slow down some.
 
Old 03-20-2006, 04:11 PM   #4
zerobane
Member
 
Registered: Jan 2006
Posts: 47

Original Poster
Rep: Reputation: 16
dev/c0d0p1 is on a U320 RAID 5.

the usb is a 2.0 high speed device, in theory I should be getting 30+MB/s? 480mb/s rated...


instead it takes about 30 seconds to do 1.5 gigs, then it take 2+ hours to finish the rest. (on a 10 gig partition)

this is running on a proliant dl585 with 4 cpu's and 8+ gigs of ram...
 
Old 03-20-2006, 04:46 PM   #5
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,013

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
I don't really know all that much about the hardware aspects of it, but it occurs to me that you probably want a compressed image, and writing a smaller file will be quicker.

dd if=/dev/c0d0p1 | gzip >/mnt/usbdrive/test_image.img.gz

Also did you try using the bs option?
 
Old 03-20-2006, 04:55 PM   #6
zerobane
Member
 
Registered: Jan 2006
Posts: 47

Original Poster
Rep: Reputation: 16
just got done using the bs= opition, tested a range from 1M-100M. Seems to make a difference up until its gets to 1.5 gigs. As soon as the image file becomes 1.5 gigs the dd command goes from 10-30% cpu to 1%-2% and begins to spit out around .1 to .2 Megs/s.

I will be later mounting the images using the loopback interface, so i want to avoid zipping.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 01:17 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 02:39 PM
System uncleanly shut down, ran e2fsck, very slow start & slow desktop brakthepoet Linux - Newbie 1 07-02-2004 02:55 PM
RH8 vs. W2k - Slow, slow, slow zerojosh Linux - Software 2 06-30-2003 08:19 PM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration