andrewducker: (Cutest Kitten)
[personal profile] andrewducker
I'm copying files from a my networked hard drive to a USB stick.

It tells me it's going to take about 7 hours. For 3 Gig of data.

I copy it from the networked drive to my C drive. This takes about 4 minutes.

I then start copying it to the USB stick. This is varying between 8 minutes and 45 minutes, depending on whether it's copying a big file (fast) or lots of little files (slow).

Now, what the hell is the problem with copying files from the network to a USB stick that suddenly adds all of that time on? Why do the latencies multiply?

Date: 2011-09-29 10:41 pm (UTC)
From: [identity profile] gonzo21.livejournal.com
Are you copying files that have a complicated file hierarchy?

I find copying smaller batches of files goes a lot quicker than if I copy them all at once.

Date: 2011-09-29 11:07 pm (UTC)
From: [identity profile] spacelem.livejournal.com
Is there some caching going on there?

Date: 2011-09-29 11:42 pm (UTC)
From: [identity profile] daveon.livejournal.com
USB driver throughput I suspect.

Date: 2011-09-30 09:28 am (UTC)
From: [identity profile] momentsmusicaux.livejournal.com
Also, why would it affect anything?

Network -> PC is faster. So the USB driver should never be kept waiting.

(no subject)

From: [identity profile] daveon.livejournal.com - Date: 2011-09-30 04:07 pm (UTC) - Expand

(no subject)

From: [identity profile] daveon.livejournal.com - Date: 2011-09-30 04:08 pm (UTC) - Expand

(no subject)

From: [identity profile] daveon.livejournal.com - Date: 2011-09-30 04:38 pm (UTC) - Expand

(no subject)

From: [identity profile] daveon.livejournal.com - Date: 2011-09-30 05:52 pm (UTC) - Expand

Date: 2011-09-30 12:38 am (UTC)
From: [identity profile] chuma.livejournal.com
Is this 1.0 or 2.0?

Date: 2011-09-30 07:29 am (UTC)
From: [identity profile] marrog.livejournal.com
USB 2.0 shouldn't take that long for 3G of data anyway, should it? I'm sure it doesn't take that long for mine... maybe you need a new USB stick? They do wear out eventually, don't they?

Although I have noticed that it's usually faster for me to pull files off my external onto the harddrive and then on from there to a stick than it is to pull them directly from the external onto the stick - as in, combined times, still faster to do two transfers. But that's with two USB connected thingies.

(no subject)

From: [identity profile] marrog.livejournal.com - Date: 2011-09-30 07:34 am (UTC) - Expand

(no subject)

From: [identity profile] marrog.livejournal.com - Date: 2011-09-30 07:36 am (UTC) - Expand

(no subject)

From: [identity profile] marrog.livejournal.com - Date: 2011-09-30 07:42 am (UTC) - Expand

(no subject)

From: [identity profile] daveon.livejournal.com - Date: 2011-09-30 04:09 pm (UTC) - Expand

Date: 2011-09-30 08:32 am (UTC)
From: [identity profile] steer.livejournal.com
OK. I do not know the underlying reason but windows is super rubbish at scheduling copies to usb. In particular you will notice this if you drag a large file to the USB stick and while it is copying drag a second. Two files whuch would otherwise take 2 minutes each can take hours.
This is apparently to be fixed in win 8.
While I do not know the root cause I suspect it is an issue called "pipelining". This is when a copying program fills buffers inefficiently and the "pauses" come to take up more than the "copying".


Date: 2011-09-30 08:58 am (UTC)
From: [identity profile] the-fetket.livejournal.com
ARGH!!!! basics of computing...

copying to your harddrive is i/o used once
copying from your harddrive is i/o used once
Copying to you stick from the network is i/o being used simultaneously for two tasks.

Same basic I/O connects most of your peripheries. This isn't just windows this is all computers... *sigh*

Date: 2011-09-30 09:04 am (UTC)
From: [identity profile] the-fetket.livejournal.com
And if you want to do a first year software engineering experiment take two pads and four pages of two separate books and three people calls abigail, bob and conner.

Experiment 1: A tells B contents of page 1. B writes it down and checks it with A. Then B tells C contents of page 2. C writes it down and checks it with B.

Experiment 2: A tells B contents of page 3, meanwhile B is also telling C the contents of page 4. B is writing page 3 down, C is writing down page 4. Both are checking with their sources.

Compare the times of the experiment... Experiment 2 usually ends with people yelling at each other and cheating just to get the page copied down before the end of the tutorial.

Date: 2011-09-30 09:58 am (UTC)
From: [identity profile] steer.livejournal.com
wow whoever taught you basics of computing architecture should be blushing now. seriously. This depends whether the transfer is bounded by the speed of a shared bus or by some other non-shared queue (hint - it is the other queue). Still, you can test your "computer has run out of IOs" theory - try what andrew did and see if it also makes memory or output to graphic card run slowly. I'll wait here until you feel stupid.

(no subject)

From: [identity profile] the-fetket.livejournal.com - Date: 2011-09-30 01:04 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 01:23 pm (UTC) - Expand

Date: 2011-09-30 09:17 am (UTC)
From: [identity profile] andrewhickey.livejournal.com
I don't think that's necessarily a windows-specific thing. I've had similar problems (though not *quite* so bad) when copying files from a USB hard drive to a USB stick on Debian (though that's also on a very old, not very fast, desktop).

Date: 2011-09-30 10:03 am (UTC)
From: [identity profile] steer.livejournal.com
You get similar problems on linux but not nearly so bad in newer versions in my experience. The difference is extremely marked. On my ubuntu system I can queue such copies and the copy time is slightly more than linear (copying files to USB which would take a, b and c seconds takes slightly more than a+b+c but on windows it can be 10 times what it should take). I know ubuntu is somehow "cleverer" in the copy as in gui the copy windows for the files merge into the same window (did not a few years back). This feature is scheduled for win 8.

What i do not know is the underlying mechanism as the memory in USB should theoretically be very good at random access.

(no subject)

From: [identity profile] andrewhickey.livejournal.com - Date: 2011-09-30 10:13 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 10:19 am (UTC) - Expand

(no subject)

From: [identity profile] andrewhickey.livejournal.com - Date: 2011-09-30 10:25 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 10:38 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 11:35 am (UTC) - Expand

Date: 2011-09-30 11:25 am (UTC)
From: [identity profile] recycled-sales.livejournal.com
Am I right in thinking that USB, LAN and SATA all go through the Southbridge/ PCH? Is this maybe a limitation there?

Date: 2011-09-30 11:40 am (UTC)
From: [identity profile] steer.livejournal.com
no way surely. That is comparatively fast even if they are limited by that it should be able to handle 1000s of times speeds andrew quotes. If it is limited there it is nothing so simple as lack of bus bw.

(no subject)

From: [identity profile] recycled-sales.livejournal.com - Date: 2011-09-30 03:46 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 05:25 pm (UTC) - Expand

(no subject)

From: [identity profile] recycled-sales.livejournal.com - Date: 2011-09-30 05:37 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 05:44 pm (UTC) - Expand

(no subject)

From: [identity profile] recycled-sales.livejournal.com - Date: 2011-09-30 05:48 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2011-09-30 06:08 pm (UTC) - Expand

Date: 2011-09-30 01:42 pm (UTC)
From: [identity profile] strawberryfrog.livejournal.com
This post is on hacker news, and there is commentary there: http://news.ycombinator.org/item?id=3056457

(no subject)

From: [identity profile] strawberryfrog.livejournal.com - Date: 2011-09-30 03:19 pm (UTC) - Expand
From: [identity profile] barrkel.livejournal.com
Make sure you have write caching enabled for the drive (Google for it if necessary). Windows optimizes for filesystem consistency rather than performance by default for removable drives.

Date: 2011-09-30 06:38 pm (UTC)
From: [identity profile] sean underwood (from livejournal.com)
My guess would be that the straight-to-USB scenario somehow results in everything literally being copied one file at a time, so a whole lot of time is spent waiting around on blocking I/O calls.

Meanwhile, copying to disk and then to USB both use buffered I/O, so the actual reads and writes are happening in a smaller number of larger chunks, and a lot less time is wasted on latency.

Date: 2011-10-01 04:42 pm (UTC)
From: [identity profile] khbrown.livejournal.com
Also timeouts / failures when attempting to copy files from a Windows share to Linux.

Various 1GB AVIs that simply will not copy this way but which were fine the other way round from SAMBA to Windows.

May 2026

S M T W T F S
      1 2
3 45 6 7 8 9
10 11 1213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 13th, 2026 04:05 am
Powered by Dreamwidth Studios