PDA

View Full Version : [ubuntu] USB automount = slow throughput; manual = fast


jcornwall
August 12th, 2009, 02:42 PM
While testing a new Seagate FreeAgent Go 320GB USB 2.0 drive with Ubuntu 9.04 AMD64 Server I observed the following:


With 'usbmount' installed, plug drive in and let it automount. 'dd' write performance to /media/usb0/testfile is barely above 1.1MB/s.
Unmount /media/usb0 and remount to /media/usb0 by hand. Write throughput rises to 30MB/s.

The drive is correctly detected as 'hi-speed' upon connection. What might cause this?

jcornwall
August 13th, 2009, 06:26 PM
I've solved this.

The usbmount package defaults to mounting USB drives with the safe 'sync' option to minimise data loss should the USB cable be pulled out. By switching this option off in /etc/usbmount/usbmount.conf my drive's throughput is much, much better.

Since I always umount before unplugging a USB drive this seems to be a better option for me. Very confusing one to hunt down.