Slashdot Mirror


Speeding up Firewire File Transfers?

Milo_Mindbender asks: "I've got a pretty common problem: copying a ton of files from an old Windows XP computer to a new one. After noticing how long transfers were taking over my 100mbps Ethernet, I hooked up a IEEE1394/Firewire cable and things were much faster. Strangely though, Windows is still only using about 10% of the cable's 400mbps bandwidth. Does anyone know any tips/tricks for speeding this up or any Shareware mass-file-copy tools that would be faster than Explorer/file sharing? Right now, the older machine is setup with Windows file sharing and the new machine is copying from it, neither machine is using much CPU and the disks are nowhere near their max speed. The number and size of the files might be what's slowing it down, since it's gigabytes of files in the 100-200k size range."

20 of 187 comments (clear)

  1. archive then move? by vjl · · Score: 4, Informative

    Have you tried to archive/compress them first [gzip/zip/etc], then move the big file over? Lots of small files take longer to move than fewer larger files. /vjl/

    1. Re:archive then move? by biglig2 · · Score: 3, Insightful

      Nothing to do with compression (although that may help); it's about one big file being faster to copy than lot's of small files that add up to the same size. Even if you zip them up without compressing (it'll be an option somewhere) then this will help.

      Another thing is that even without looking at third party tools, you should be using XCOPY in preference to windows explorer.

      There is an Exchange server utility that is optimised for moving gigantic files very fast; doubtless you can find similar programs about.

      --
      ~~~~~ BigLig2? You mean there's another one of me?
    2. Re:archive then move? by blincoln · · Score: 4, Funny

      Robocopy is approximately a hundred trillion trillion trillion times better than xcopy.

      To put that in perspective, you would need to weld fourteen quadrillion VW Beetles end to end, then use the resulting Beetle Bar as a lever and an object with the displacement of eleven million Libraries of Congress as the fulcrum in order to give xcopy the same Windows command-line file copying power as Robocopy.

      --
      "...always new atoms but always doing the same dance, remembering what the dance was yesterday." -Richard Feynman
  2. Move the old hard drive, then copy by TheArtfulTodger · · Score: 4, Informative

    Why not just plug the old hard drive on the secondary channel on the new PC, reboot and then just file copy? Or do I need to reread the question?

    1. Re:Move the old hard drive, then copy by BrynM · · Score: 5, Informative
      The problem with doing that is Windows can detect the "magic" folders... Mods: If you don't know what "magic" is, please mod some other comment. Thank you.

      Do you mean the software named "Magic Folders"? Or perhaps you have some kind of Folder of Holding with compression created by a high-level Magic User. Most likely you mean the Special Folders that are used by Windows, but then again you may just be spouting about something you actually know little about.

      Or maybe you should just explain yourself and not flame the mods... You might even get modded +Insightful or +Informative then and you would have the advantage of explaining your term to the person you were answering - thus being genuinely helpful.
      --
      US Democracy:The best person for the job (among These pre-selected choices...)
    2. Re:Move the old hard drive, then copy by BrynM · · Score: 4, Informative
      BTW, I learned the term "magic" from the Microsoft tool "tweakgui". I didn't invent it.

      I looked in TweakUI and it calls them "Special Folders" as well. My point is: Be careful about how you present things that you may only have cursory knowledge of here on Slashdot. I was being funny about it, but there are planty of users out there who will ream you for bad information. Instead of being authorative and telling the mods what to do, you could have replied in the form of a question such as "You could try, but won't windows have problems with the magic folders?" or something like that. Further, you could disclaim being an authority and just post something along the lines of "I think that...".

      Ok, I'm done being a slashdot post nazi now :D

      From my experience, XP stores the hard locations (ie: c:\Documents and Settings\BrynM\My Documents") for the special folders it needs in the registry. I've never had a problem slapping a previously used drive into a machine to copy files (I did this exact thing to recover files after and IDE failure that was corrupting NTFS just a couple of weeks ago). If you've had problems or know of them, then please post that.
      --
      US Democracy:The best person for the job (among These pre-selected choices...)
  3. Here by abscissa · · Score: 5, Informative

    Here you go.

    Firewire is crippled in Windows by default. You need the patch here to restore functionality.

    1. Re:Here by Anonymous Coward · · Score: 4, Funny

      OK, discussion is over. Everyone go home.

  4. What are you moving now? by digerata · · Score: 3, Funny
    "...since it's gigabytes of files in the 100-200k size range."

    That's quite a collection of pr0n!

    --

    1;
  5. Re:It's the hard drive, not the fire-wire by Anonymous Coward · · Score: 3, Insightful

    your hard drive is most likely not fast enough to receive the full 400 Mb/s stream from the firewire. The fastest SCSi drives are 320Mb/s and that's not sustained.

    You are confusing MByte/s and MBit/s. Firewire is 400 MBit/s, while SCSI is 320 MByte per second.

  6. File size is the problem by inio · · Score: 4, Interesting

    Your file size, and disk seek time, are the problem. Lets say your drive has a 5ms seek time (that's pretty damn fast). writing each file actually requires three writes: to the file allocation tabe, to the directory, and the contents of the file itself. Assuming the writes take another 5ms, that's 20ms per file. that limits you to 50 files per second. At 200kiB per file that's about 10 megs per second.

  7. Re:It's the hard drive, not the fire-wire by ArbitraryConstant · · Score: 5, Informative

    Firewire 400 is 400 megabits per second.

    A modern SATA drive can do just shy of 70 megabytes per second, which is 560 megabits.

    --
    I rarely criticize things I don't care about.
  8. Try searching for an rsync clone for win32 by rwa2 · · Score: 3, Interesting

    Well, I could think of a lot of ways to speed it up under Linux using various combinations of rsync, and... well, really just rsync. See if there's a good rsync clone for Win32 that will preserve your precious file attributes. Even running it under cygwin may be better in the long run, especially because inevitably (speaking from experience) your large copy will be interrupted halfway through by an "unreadable file" or some such rubbish, and you'll find yourself having to try to fix it and start the copy all over again from the beginning, or else trying to just transfer the remaining directories you think you're missing.

    Using cygwin's rsync via ssh: (after running "ssh-host-config" on your new box and setting a "passwd" as Administrator )

    rsync -azve ssh --progress /cygdrive/c/pr0n/ Administrator@newxpbox:/cygdrive/c/pr0n/

    will do the trick, and you can just keep running it over and over again until all the files are mirrored. It will take a long time to buld a list of all the files you need to transfer, but it will only tranfer the files you're missing, and will attempt to do some compression (which should help because you're more IO bound than CPU bound, but just remove the -z if your CPU is pegged). Plus, you'll find rsync & scp damn useful for many other common tasks you take on.

    The bottleneck is probably your windows filesystem, and cygwin's extra abstraction layer will only make that worse. But using rsync under cygwin means you only have to transfer the files once - which will be a much bigger time saver than trying and failing to do the entire transfer several times.

    If you were doing this often, I'm guessing you might see an improvement if you defragment your old drive first, but you obviously don't really want to waste time on that for a once and final transfer.

    Also, the Windows TCP/IP stack is typically tuned for 2 - 10Mbps links. Here's some information on how to fix that: http://rdweb.cns.vt.edu/public/notes/win2k-tcpip.h tm It's mainly geared towards improving throughput on high-capacity WAN links, but parts are also relevant to achieving decent performance on 100Mbps+ networks as well. Also remember that a lot of network drivers suck too and are incapable of pushing the throughput even to a fraction of its rating... that's been a factor too, especially on cheap windows crap. An updated NIC driver /might/ get your net transfer to catch up with your firewire transfer somewhat.

    Since you're getting 40Mbps / 400Mbps firewire, you're really not doing too bad. Converting to bytes, 5MB/s is a decent fraction of the 20MB/s to 50MB/s raw speed of your older hard drives, and actually seems reasonable given that you're sending lots of small files and not a few big ones where you can actually make good use of your drive's readahead cache.

  9. Pay attention to units by Bogtha · · Score: 3, Informative

    Strangely though, Windows is still only using about 10% of the cable's 400mbps bandwidth.

    Are you sure you aren't confusing mbps with MBps? 400mbps is equal to 50 megabytes per second, and "12.5% of the cable's bandwidth" sounds suspiciously like your description of the problem, "about 10% of the cable's bandwidth".

    --
    Bogtha Bogtha Bogtha
    1. Re:Pay attention to units by BillyBlaze · · Score: 4, Funny

      Nope, 400 mbps would be .4 bits per second, which is .05 bytes per second, or about .000071 Libraries of Congress per millenium.

  10. Similar Problem on Macs by R3d+M3rcury · · Score: 3, Funny

    I did a freelance gig back in '98 where I had to use a Mac (an 8600/300 w/64 megs of RAM). It took well over 20 minutes to copy a 17 meg file from one folder on the hard drive to another. 20 minutes! At home, on my Pentium Pro 200 running NT4, the same operation would take about 2 minutes.

    (Admit it. You knew this was coming.)

  11. Re:xcopy? by 1u3hr · · Score: 3, Informative
    Is there now a version that supports long filenames?

    See my earlier post about XXcopy, http://www.xxcopy.com./

  12. Have you tried this? by Anonymous Coward · · Score: 3, Informative

    There is a problem in Windows XP SP2 with firewire transfer. Albeit that it could be numberous small files creating problems but it should be faster than 100mbps ethernet. Try this blog regarding Windows XP SP2 Firewire Slowness for a link to the KB and a links to few other work arounds or just go direct to the KB article.

  13. Re:It's the hard drive, not the fire-wire by ArbitraryConstant · · Score: 3, Informative

    "Modern? This is from an old computer to a new computer - and those speeds would be for consecutive data. Which I suppose is fair, given that the user defragmented completely. But an IDE drive's speed is far less 400mbit/s."

    They're just about as fast as SATA drives, since ATA-100 is still faster than the sustained speeds of the drives (100 is megabytes in this case). This is why ATA-133 never caught on -- it's faster than any of the drives you'd connect it to. It wasn't SATA's speed that made it popular, it's the numerous other advantages (thinner cable, cheaper, hotplug, etc).

    --
    I rarely criticize things I don't care about.
  14. Optimize for performance by Svenne · · Score: 4, Insightful

    No one's mentioned this?

    Bring up the properties of the firewire disk in "Device Manager". Go to the Policies tab and make sure it's set to "Optimize for performance".

    --

    Slagborr