[Jaunty] Slow transfer rate writing to automounted usb drives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
This is not a new bug but this report is against one of the latest development releases and should help pinpoint the bug.
When writing to usb devices, a flash drive in my case, performance is around 50% of that of Windows using the same hardware, when mounting the device manually(as root), performance goes back to normal.
I've performed some non-scientific experiments to help find the problem and its characteristics, you can find the results below and the log files requested attached.
Copying a 147 MB file from the PC(NTFS partition) to a 4GB USB drive(FAT32 partition):
Windows, copied using the GUI, stopwatch timing: 15s
Windows, copied using the cmdline(via copy), automatic timing(via wtime.exe): 13.8s
Jaunty Alpha 4, mounted automatically, copied using nautilus, stopwatch timing: 31s
Jaunty Alpha 4, mounted automatically, copied using terminal(cp), automatic timing(via time): 25.8s
Jaunty Alpha 4, mounted automatically, copied using terminal(dd), automatic timing(via dd): 26.1s, reported speed at end (5.9 MB/s)
Jaunty Alpha 4, mounted manually, copied using nautilus, stopwatch timing: 15s
Jaunty Alpha 4, mounted manually, copied using terminal(cp), automatic timing(via time): 16s
Jaunty Alpha 4, mounted manually, copied using terminal(dd), automatic timing(via dd): 16.1s, reported speed at end (9.5 MB/s)
Copying a 147 MB file from a USB drive(FAT32 partition) to the PC(NTFS partition):
Windows, copied using the GUI, stopwatch timing: 6.6s
Windows, copied using the cmdline(via copy), automatic timing(via wtime.exe): 6.8s
Jaunty Alpha 4, mounted automatically, copied using nautilus, stopwatch timing: 8s
Jaunty Alpha 4, mounted automatically, copied using terminal(cp), automatic timing(via time): 2.6s
Jaunty Alpha 4, mounted automatically, copied using terminal(dd), automatic timing(via dd): 18.8s, reported speed at end (8.2 MB/s)
Jaunty Alpha 4, mounted manually, copied using nautilus, stopwatch timing: 6.5s
Jaunty Alpha 4, mounted manually, copied using terminal(cp), automatic timing(via time): 2.5s
Jaunty Alpha 4, mounted manually, copied using terminal(dd), automatic timing(via dd): 17.9s, reported speed at end (8.6 MB/s)
This has nothing to do with util-linux and everything to do with the kernel