View previous topic :: View next topic |
Author |
Message |
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sun Dec 03, 2006 7:12 pm Post subject: USB Stick CS-D too slow since kernelupdate |
|
|
Hi,
my usbstick is too slow since the update of the kernel. It takes 5 minutes to copy a 8 MB file to the stick. The admin tool "usbview" displays the following information
/*Data of EHCI Host Controller*/
EHCI Host Controller
Manufacturer: Linux 2.6.18-gentoo-r3 ehci_hcd
Serial Number: 0000:00:1d.7
Speed: 480Mb/s (high)
Number of Ports: 6
Bandwidth allocated: 0 / 800 (0%)
Total number of interrupt requests: 0
Total number of isochronous requests: 0
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 0mA
Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 2
Interval: 256ms
/* Data of my 8 GB usbstick */
USB Stick CS-D
Manufacturer: TrekStor GmbH & Co. KG
Serial Number: AA9F1DB41615
Speed: 480Mb/s (high)
USB Version: 2.00
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 0451
Product Id: 625f
Revision Number: 2.20
Config Number: 1
Number of Interfaces: 1
Attributes: c0
MaxPower Needed: 100mA
Interface Number: 0
Name: usb-storage
Alternate Number: 0
Class: 08(stor.)
Sub Class: 6
Protocol: 50
Number of Endpoints: 2
Endpoint Address: 01
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 512
Interval: 125us
Endpoint Address: 82
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 512
Interval: 0ms
Any idea how to speed up the writing processes?
m_0_r_0_n |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Dec 03, 2006 8:01 pm Post subject: |
|
|
Is the device still showing up as a SCSI device? (/dev/sdX)
Could be that in the upgrade the Low Speed USB storage driver was enabled. (devices would be /dev/ubX)
Is the device mounting with the sync option?
(Post the output of mount as root.)
Can you post the relevant section of dmesg after you plug the device in also? |
|
Back to top |
|
|
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sun Dec 03, 2006 8:44 pm Post subject: |
|
|
Headrush wrote: | Is the device still showing up as a SCSI device? (/dev/sdX)
Could be that in the upgrade the Low Speed USB storage driver was enabled. (devices would be /dev/ubX)
Is the device mounting with the sync option?
(Post the output of mount as root.) |
mount
/dev/sda1 on /mnt/usbstick type vfat (rw,nosuid,nodev,sync,uid=1000)
Headrush wrote: | Can you post the relevant section of dmesg after you plug the device in also? |
usb 1-3: new high speed USB device using ehci_hcd and address 11
usb 1-3: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 11
usb-storage: waiting for device to settle before scanning
Vendor: TrekStor Model: USB Stick CS-D Rev:
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 15625008 512-byte hdwr sectors (8000 MB)
sda: Write Protect is off
sda: Mode Sense: 10 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 15625008 512-byte hdwr sectors (8000 MB)
sda: Write Protect is off
sda: Mode Sense: 10 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 4:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
Any idea what slows down the usb stick?
m_0_r_0_n |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Dec 03, 2006 9:16 pm Post subject: |
|
|
It's the sync option slowing it down.
Are you using fstab entries for this device? What DE/mounting system are you using? |
|
Back to top |
|
|
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sun Dec 03, 2006 9:59 pm Post subject: |
|
|
Yes, but I don't know where I got this settings from. I think I ve copied them from another fstab file long time ago.
/dev/sda1 /mnt/usbstick vfat rw,noauto,user,exec,sync,uid=1000 0 0
I ve changed it to
/dev/sda1 /mnt/usbstick vfat rw,noauto,user 0 0
The write process is much faster again :-) How can the device be mounted automatically when plugging the stick in?
m_0_r_0_n |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Dec 03, 2006 10:01 pm Post subject: |
|
|
m_0_r_0_n wrote: | How can the device be mounted automatically when plugging the stick in? |
Depends on your desktop environment, hence why I asked. |
|
Back to top |
|
|
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sun Dec 03, 2006 10:32 pm Post subject: |
|
|
To (un-)mount the device I always enter the commands mount /mnt/usbstick and umount /mnt/usbstick in the bash console. I am using Gnome as deskop environment. |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Dec 03, 2006 11:04 pm Post subject: |
|
|
m_0_r_0_n wrote: | To (un-)mount the device I always enter the commands mount /mnt/usbstick and umount /mnt/usbstick in the bash console. I am using Gnome as deskop environment. |
My guess is ivman and/or gnome-volume-manager.
I'm a KDE user, so maybe someone more Gnome oriented can guide you from here. |
|
Back to top |
|
|
|