You are not logged in.

#1 2012-05-12 07:55:47

N3mes1s
Member
Registered: 2010-07-21
Posts: 10

Slowly Umount of usb-drives/memorycards

Morning.
After some kernel/package upgrade, umount of pen-drives and other usb drives seems to be slow (10 min), but only with a big files >~500mb, and the strange thing is that, the file is written in 15 seconds.
What's the problems behind that? it's a "features"  big_smile ?

Offline

#2 2012-05-12 11:10:56

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Slowly Umount of usb-drives/memorycards

The slowness is because the data has not actually been completely written to the device when you issue the umount command.  The data is still in memory and not yet on the external device.  'umount' is waiting for the transfer to be completed.

There are different mount options that can speed up the transfer, depending on the filesystem used on the device.  Run the command 'mount' with no arguments to see the options used for the device.  The use of the option 'flush' instead of 'sync' can make a big improvement in transfer speeds.

Offline

#3 2012-05-13 06:41:24

N3mes1s
Member
Registered: 2010-07-21
Posts: 10

Re: Slowly Umount of usb-drives/memorycards

thisoldman wrote:

The slowness is because the data has not actually been completely written to the device when you issue the umount command.  The data is still in memory and not yet on the external device.  'umount' is waiting for the transfer to be completed.

Ok, this is the my same conclusion, anyway, the problem not is a speed transfer but  it doesn't have any sense for dolphin/KDE show me tranfer complet after 15 seconds.
Then the problem isn't in packages/kernel but in dolphin/KDE?
Anybody have same problem?

EDIT:

Ok with the flush option the things seems to be normal, but now the problem is, how set flush option using KDE mount?
Does Mount command have to default -sync option?

Last edited by N3mes1s (2012-05-13 07:32:55)

Offline

#4 2012-05-13 08:52:59

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Slowly Umount of usb-drives/memorycards

Would that be done with a udev rule? https://wiki.archlinux.org/index.php/Ud … SB_devices

Offline

#5 2012-05-14 07:05:04

N3mes1s
Member
Registered: 2010-07-21
Posts: 10

Re: Slowly Umount of usb-drives/memorycards

Yep. But with example rules, after first automount , triggered by the rule, if i umount a pen-drive and mount again with a dolphin, the rule isn't followed and the flush option isn't present.
Anyway i'll try with other rules and i'll post here new devs.

Offline

#6 2012-05-28 02:11:48

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Slowly Umount of usb-drives/memorycards

This might be a KDE/dolphin bug that USB flash drives are not automounted with the flush option.

    https://bugs.kde.org/show_bug.cgi?id=273792

Offline

Board footer

Powered by FluxBB