Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 5 Feb 2016, Marc MERLIN wrote:

> The thing is async isn't great either.
> I hate to say, but windows does this right, linux does not as far as I
> can tell.
> When a windows copy is finished, it's pretty much on flash (maybe with a
> second delay)
> On linux, it is if I accept a speed that 50x slower, or it's not and
> data is lost if I pull my usb device after the copy is over without
> unmount (I have automatic mount).
> In other words, with linux, the copy either finishes way before it's on
> flash, or takes many times longer.

This is more of a user interface issue than anything else.  In Windows
the copy command waits until the data has been transfered to the disk,
whereas in Linux the cp command doesn't wait (more correctly, it waits
for the operating system to accept the data but no longer).  If you do
want to wait, you could write a little script or shell alias that does
the cp command followed by a sync.

In theory, the copy command in Windows shouldn't need to wait either.  
But then you'd run into trouble if you unplugged the USB device without 
first clicking on the "Safely remove hardware" button -- which 
essentially does a sync.

> However, I agree that apparently the usb layer is apparently not the
> place that can fix it.
> I also understant that this problem has been there for as long as USB
> devices have existed, so if it hasn't been fixed in a better way by now,
> it's likely not trivial.
> 
> Either way thanks all for the answers.

You're welcome.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux