You are not logged in.

#1 2013-12-28 18:56:18

Potomac
Member
Registered: 2011-12-25
Posts: 528

a long delay when copying big files to an USB flash drive

I use an usb flash drive, lsusb shows :

Bus 005 Device 010: ID 13fe:3623 Kingston Technology Company Inc.

I notice a weird bug with the last kernel ( 3.12.6-1 x86_64 ), when I copy a big file ( 700 Mb ) to an USB flash drive it can take very long time to finish,

in fact all the bits are already written to the USB Flash Drive but the system tries to write again into the USB flash drive ( USB LED activity blinks ), CPU activity is 100% and  I must wait long minutes ( 3 minutes ) before the copy is really finished for the system,

I tried with another usb flash drive --> it's the same bug, archlinux ( or the kernel ) takes too much time to do a file copy in the USB flash drive

Last edited by Potomac (2013-12-28 18:56:57)

Offline

#2 2013-12-28 18:58:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: a long delay when copying big files to an USB flash drive

USB Flash drives are typically very slow.  Are you sure it isn't just writing the file?  Maybe it is initiating things and then flushing the actual file from memory to the flash drive?

In any case, this is not a whole lot of information to go on.

Offline

#3 2013-12-28 18:59:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: a long delay when copying big files to an USB flash drive

How fast exactly does it copy? How fast is the usb drive? How did you mount it? Did you use sync or flush?

Potomac wrote:

I must wait long minutes ( 3 minutes ) before the copy is really finished for the system,

You can search the forum for tons of threads about similar issues.

Offline

#4 2013-12-28 19:12:01

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: a long delay when copying big files to an USB flash drive

I simply plug the USB flash drive in a USB port,

then KDE 4.12 shows a pop-up window and gives the choice to mount the USB flash drive with Dolphin, I accept and then I do the copy,

the rate for writting  is 3~4 Mb/sec for this USB flash drive,

I think the bug may be a wrong writing rate display by KDE, because the pop-up window shows a rate of 70 Mb/sec and the file ( 700 Mb ) is copied in less of one minute, in Dolphin the copy seems finished but it's not the case because the "USB Led activity" continues to blink

I think it's a KDE bug, the writing rate is incorrect, too optimistic

Last edited by Potomac (2013-12-28 19:18:34)

Offline

#5 2013-12-28 19:17:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: a long delay when copying big files to an USB flash drive

3 minutes seems about right for 700MB file.

Mount it manually with different options and see if it makes the KDE pop-up any better.

Offline

#6 2013-12-28 19:21:01

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: a long delay when copying big files to an USB flash drive

the USB drive is mounted automaticaly by KDE, I don't know how I can disable this feature,

but I think the options for automount are correct, it's probably an internal bug in KDE for this pop-up window,

when I type "mount" in a console I can see the options used by the "KDE automount USB feature" :

type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

Last edited by Potomac (2013-12-28 19:21:56)

Offline

#7 2013-12-29 12:31:41

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,965

Re: a long delay when copying big files to an USB flash drive

KDE only mounts the drive IF you choose open with dolphin, there should be an option to do nothing.
If you can't find that, just ignore the pop-up.
it will go away after a few seconds (5 ? ) and the drive will not be mounted.

then you can mount manually as desired.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB