You are not logged in.

#1 2005-11-18 11:57:29

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

USB stick very slow

Hello,

I don't use my USB stick very often, so only today I've found that copying from/to USB is VERY slow (~10kb/s). I remember that some time ago the speed was fast enough. What is wrong, why USB is so slow now?

Offline

#2 2005-11-18 16:27:19

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 802

Re: USB stick very slow

I wonder if you're mounting with "sync" rather than "async" option somehow?

From "man pmount"...

-s, --sync
              Mount  the  device  with the sync option, i. e. without write caching. Default is async (write-back). With this option, write
              operations are much slower and due to the massive increase of updates of inode/FAT structures, flash devices may suffer heav-
              ily if you write large files. This option is intended to make it safe to just rip out USB drives without proper unmounting.

Offline

#3 2005-11-19 09:29:08

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: USB stick very slow

Line from /etc/fstab:

/dev/sda1               /mnt/usb        vfat    defaults,user,noauto,sync,dirsyn
c       0       0

So as I understand system shouldn't automount USB stick, but it does! I think it is something about udev, because when I use DevFS it was ok (no automount with same line).

Offline

#4 2005-11-19 10:01:32

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 802

Re: USB stick very slow

It looks like the "sync,dirsyn" options are slowing down your usb stick. I would remove those options. When you want to remove the stick issue:

$ eject usb

When I use "eject" (rather than "umount") with my digital camera I get "remove OK" appearing on the camera lcd.

Or you could remove the line from fstab completely and use pmount & pumount and just wait for the led on the usb stick to stop flashing:

$ pmount /dev/sda1 usb
$ mount
/dev/sda1 on /media/usb type ext2 (rw,noexec,nosuid,nodev)
$ pumount usb

Offline

#5 2005-11-19 19:52:56

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: USB stick very slow

I always use sync with my usb devices because if you don't and something happens before you can unmount your data will not be written to the stick. Sync appears to slow down the usbstick because writes are made as needed instead of waiting to be flushed later.

Offline

#6 2005-11-19 20:15:09

cs25x
Member
Registered: 2004-05-04
Posts: 150

Re: USB stick very slow

Just for kicks, this string made me run hdparm on two flash drives. First is an old camera, it comes in at 337k/sec, Second is a rundisk it comes in at 7.47 m/sec. I have used udev for ages, and just replaced a USB hub last week and noticed that the rundisk speed has improved out of sight. I am using sync,dirsync in my fstab. My next move was to delete everything on the rundisk, and we hope we do not have a HD crash. I rsynched the rundisk and transferred 448030882 bytes at 2996871 bytes per second. Then I held my breath and wiped sync,dirsync from the fstab entry and erased the rundisk again. Another rsync, same data, same rundisk, transferred 448030882 bytes at 4843591 bytes per second. That is only 1.6 times as fast. The source is a generic laptop. The rundisk uses reiser3fs. The HD did not crash and we have out backup in place again. remember, this is with udev, so I discount that as being your problem.
(edit) same test using the old hub: crashed but then..
After I rebooted, I started the test again, had a leak, made a cup of tea, came back, waited, waited, waited, and here we are:(sync,dirsync in fstab, old hub)697326 bytes per second, and hdparm checks in at 948k/sec.

Check your modules, and make certain you are on USB2.


--(*(cs25x--));

Offline

#7 2005-11-19 22:03:56

JGC
Developer
Registered: 2003-12-03
Posts: 1,660

Re: USB stick very slow

You shouldn't mount USB sticks and flash memory with sync because the memory in such devices only lasts a specific amount of write cycles. After this amount of write cycles, the device becomes unusable. When using the "sync" option, your USB stick or flash memory card will become bad sooner. This is also stated in the "hal" changelogs.

Offline

#8 2005-11-20 01:23:24

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: USB stick very slow

But wouldn't you have the exact same number of writes regardless of whether you have it set to <code>sync</code> or not, just the timing of those writes would change?  I've always had mine set to <code>sync</code> as well, just in case the drive didn't get unmounted before it got pulled out...

Offline

#9 2005-11-20 10:33:01

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 802

Re: USB stick very slow

No. To take just one example; when you're writing a file - after each block is written the file access time/size directory info is updated. If you only flush (synch) memory buffers every few seconds or when they're nearing full, you'll save an amazing amount of disk activity. HDs have small cache, I wouldn't be surprised if USB flash memory has none sad

Offline

#10 2005-11-20 21:13:16

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: USB stick very slow

Ahhh...that makes sense

Offline

#11 2005-11-22 19:30:25

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: USB stick very slow

Thanks, I've removed usb record from fstab, now it automounts to /media/TF(version) and works quick (7-20mb/s)

Thanks for help!

Offline

#12 2006-04-10 14:30:46

kryo
Member
Registered: 2004-04-13
Posts: 40

Re: USB stick very slow

I recently had to reinstall my system due to a corrupted pacman database.

This is the first time I used my usb sticks and cardreader since the reinstall, and the speed is very slow. It now takes 1.5 hours to transfer 100Mbs of data to and from my usb sticks.

This wasn't the case before I reinstalled: It only took under a minute to transfer 100+Mbs of data.

My fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/hda2 swap swap defaults 0 0
/dev/hda1 / jfs defaults 0 1
/dev/hda3 /home jfs defaults 0 1

pmount.allow:

# /etc/pmount.allow
# pmount will allow users to additionally mount all devices that are
# listed here.
/dev/sda

dmesg:

$ dmesg
Linux version 2.6.15-archck (root@sara) (gcc version 4.0.3 20051222 (prerelease)) #1 SMP PREEMPT Sun Mar 19 21:08:15 EST 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003df40000 (usable)
 BIOS-e820: 000000003df40000 - 000000003df50000 (ACPI data)
 BIOS-e820: 000000003df50000 - 000000003e000000 (ACPI NVS)
 BIOS-e820: 000000003e000000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
95MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 253760
  DMA zone: 4096 pages, LIFO batch:0
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 225280 pages, LIFO batch:31
  HighMem zone: 24384 pages, LIFO batch:3
DMI 2.3 present.
ACPI: RSDP (v000 MSI                                   ) @ 0x000f8400
ACPI: RSDT (v001 MSI    1013     0x10282005 MSFT 0x00000097) @ 0x3df40000
ACPI: FADT (v002 MSI    1013     0x10282005 MSFT 0x00000097) @ 0x3df40200
ACPI: MADT (v001 MSI    OEMAPIC  0x10282005 MSFT 0x00000097) @ 0x3df40300
ACPI: WDRT (v001 MSI    MSI_OEM  0x10282005 MSFT 0x00000097) @ 0x3df40360
ACPI: MCFG (v001 MSI    OEMMCFG  0x10282005 MSFT 0x00000097) @ 0x3df403b0
ACPI: SSDT (v001 OEM_ID OEMTBLID 0x00000001 INTL 0x02002026) @ 0x3df43700
ACPI: OEMB (v001 MSI    MSI_OEM  0x10282005 MSFT 0x00000097) @ 0x3df50040
ACPI: DSDT (v001    MSI     1013 0x10282005 INTL 0x02002026) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 15:4 APIC version 16
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 33, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bff80000)
Built 1 zonelists
Kernel command line: root=/dev/hda1 video=vesafb:ywrap,mtrr:3,1024x768-16@60 resume2=swap:/dev/hda2 ro disable_timer_pin_1
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Using 3579 PM timer ticks per jiffy
Detected 1592.644 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1000248k/1015040k available (2065k kernel code, 14124k reserved, 748k data, 196k init, 97536k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 3187.37 BogoMIPS (lpj=1593687)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 078bfbff e3d3fbff 00000000 00000000 00000001 00000000 00000001
CPU: After vendor identify, caps: 078bfbff e3d3fbff 00000000 00000000 00000001 00000000 00000001
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU: After all inits, caps: 078bfbff e3d3fbff 00000000 00000010 00000001 00000000 00000001
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
mtrr: v2.0 (20020519)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
checking if image is initramfs... it is
Freeing initrd memory: 744k freed
ACPI: Looking for DSDT in initramfs... successfully read 11800 bytes from /DSDT.aml.
    ACPI-0292: *** Info: Table [DSDT] replaced by host OS
CPU0: AMD Turion(tm) 64 Mobile Technology MT-30 stepping 02
Total of 1 processors activated (3187.37 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 1 CPUs
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=1
PCI: Using MMCONFIG
ACPI: Subsystem revision 20050902
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 0000:00:14.1
Boot video device is 0000:01:05.0
PCI: Transparent bridge - 0000:00:14.4
ACPI: PCI Interrupt Routing Table [_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [_SB_.PCI0.P0P1._PRT]
ACPI: Embedded Controller [EC] (gpe 6)
ACPI: PCI Interrupt Routing Table [_SB_.PCI0.POP2._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 5 *6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 5 6 *7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 5 6 7 10 11 12 14 15) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 10 devices
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
PCI: Device 0000:02:03.0 not found by BIOS
PCI: Device 0000:02:04.0 not found by BIOS
PCI: Device 0000:02:04.1 not found by BIOS
PCI: Device 0000:02:04.2 not found by BIOS
PCI: Device 0000:02:09.0 not found by BIOS
PCI: Bridge: 0000:00:01.0
  IO window: d000-dfff
  MEM window: fbe00000-fbefffff
  PREFETCH window: f4000000-faffffff
PCI: Bus 3, cardbus bridge: 0000:02:04.0
  IO window: 0000e000-0000e0ff
  IO window: 0000ec00-0000ecff
  PREFETCH window: 50000000-51ffffff
  MEM window: 56000000-57ffffff
PCI: Bus 7, cardbus bridge: 0000:02:04.1
  IO window: 00001000-000010ff
  IO window: 00001400-000014ff
  PREFETCH window: 52000000-53ffffff
  MEM window: 58000000-59ffffff
PCI: Bridge: 0000:00:14.4
  IO window: e000-efff
  MEM window: fbf00000-fbffffff
  PREFETCH window: 50000000-54ffffff
ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 19 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:02:04.1[b] -> GSI 20 (level, low) -> IRQ 17
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
vesafb: ATI Technologies Inc., MS48, 01.00 (OEM: ATI MOBILITY RADEON Xpress 200G Series)
vesafb: VBE version: 2.0
vesafb: protected mode interface info at c000:52f9
vesafb: pmi: set display start = c00c5367, set palette = c00c53a1
vesafb: pmi: ports = d810 d816 d854 d838 d83c d85c d800 d804 d8b0 d8b2 d8b4
vesafb: no monitor limits have been set
vesafb: scrolling: ywrap using protected mode interface, yres_virtual=3072
Console: switching to colour frame buffer device 128x48
vesafb: framebuffer at 0xf4000000, mapped to 0xf8880000, using 6144k, total 32768k
fb0: VESA VGA frame buffer device
ACPI: AC Adapter [ADP1] (on-line)
ACPI: Battery Slot [BAT1] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID0]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Thermal Zone [THRM] (55 C)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ACPI: PCI Interrupt 0000:00:14.6[b] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI interrupt for device 0000:00:14.6 disabled
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Using IPI No-Shortcut mode
Suspend2 Core.
Suspend2 Compression Driver loading.
Suspend2 Encryption Driver loading.
Suspend2 Swap Writer loading.
Suspend2 FileWriter loading.
ACPI wakeup devices:
POP2  RTL USB1 USB2 EUSB AC97 MC97
ACPI: (supports S0 S1 S3 S4 S5)
Freeing unused kernel memory: 196k freed
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ATIIXP: IDE controller at PCI slot 0000:00:14.1
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 19
ATIIXP: chipset revision 0
ATIIXP: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: TOSHIBA MK6025GAS, ATA DISK drive
input: AT Translated Set 2 keyboard as /class/input/input0
logips2pp: Detected unknown logitech mouse model 99
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
input: ImPS/2 Logitech Wheel Mouse as /class/input/input1
logips2pp: Detected unknown logitech mouse model 99
input: ImPS/2 Logitech Wheel Mouse as /class/input/input2
hdc: Slimtype DVDRW SDW-431S, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 117210240 sectors (60011 MB), CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
 hda: hda1 hda2 hda3
JFS: nTxBlock = 7824, nTxLock = 62592
Suspend2 2.2: Swapwriter: Signature found.
Suspend2 2.2: Suspending enabled.
Linux agpgart interface v0.101 (c) Dave Jones
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 896 MBytes.
ACPI: PCI Interrupt 0000:01:05.0[A] -> GSI 17 (level, low) -> IRQ 18
[fglrx] module loaded - fglrx 8.23.7 [Mar  6 2006] on minor 0
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ndiswrapper version 1.10 loaded (preempt=yes,smp=yes)
ndiswrapper: driver neti2220 (LanExpress,03/29/2004,2.10.03.2004) loaded
ACPI: PCI Interrupt 0000:02:09.0[A] -> GSI 22 (level, low) -> IRQ 20
ndiswrapper: using irq 20
wlan0: vendor: 'INPROCOMM IPN2220 Wireless LAN Adapter'
wlan0: ndiswrapper ethernet device 00:11:09:16:cd:97 using driver neti2220, 17FE:2220.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.50.4)
powernow-k8:    0 : fid 0x8 (1600 MHz), vid 0xa (1300 mV)
powernow-k8:    1 : fid 0x0 (800 MHz), vid 0x14 (1050 mV)
cpu_init done, current fid 0x8, vid 0x8
powernow-k8: ph2 null fid transition 0x8
ACPI: PCI Interrupt 0000:00:14.6[b] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:14.5[b] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 16
ehci_hcd 0000:00:13.2: EHCI Host Controller
ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:13.2: irq 16, io mem 0xfbdff000
ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 16
ohci_hcd 0000:00:13.0: OHCI Host Controller
ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:13.0: irq 16, io mem 0xfbdfd000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 16
ohci_hcd 0000:00:13.1: OHCI Host Controller
ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:13.1: irq 16, io mem 0xfbdfe000
usb 1-2: new high speed USB device using ehci_hcd and address 2
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 4 ports detected
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
usb 1-2.3: new low speed USB device using ehci_hcd and address 3
Real Time Clock Driver v1.12
usbcore: registered new driver hiddev
input: USB Mouse as /class/input/input3
input: USB HID v1.00 Mouse [USB Mouse] on usb-0000:00:13.2-2.3
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt 0000:02:03.0[A] -> GSI 18 (level, low) -> IRQ 22
eth0: RealTek RTL8139 at 0xf8856c00, 00:0c:76:f9:35:a8, IRQ 22
eth0:  Identified 8139 chip type 'RTL-8101'
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
Adding 2097136k swap on /dev/hda2.  Priority:-1 extents:1 across:2097136k
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.6
wlan0: no IPv6 routers present
[fglrx] Maximum main memory to use for locked dma buffers: 896 MBytes.
[fglrx] free  PCIe = 54804480
[fglrx] max   PCIe = 54804480
[fglrx] free  LFB = 19099648
[fglrx] max   LFB = 19099648
[fglrx] free  Inv = 0
[fglrx] max   Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total PCIe = 16384
[fglrx] Flat panel plugged in
drivers/usb/input/hid-core.c: input irq status -71 received
usb 1-3: new high speed USB device using ehci_hcd and address 4
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor:           Model: USB FLASH DRIVE   Rev: 1.01
  Type:   Direct-Access                      ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 507904 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 507904 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
APIC error on CPU0: 00(40)
usb 1-3: USB disconnect, address 4
usb 1-3: new high speed USB device using ehci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
usb 1-3: USB disconnect, address 5

lsmod:

$ lsmod
Module                  Size  Used by
nls_cp437               6272  0
vfat                    9984  0
fat                    40348  1 vfat
sd_mod                 13696  0
usb_storage            62272  0
rfcomm                 31124  0
hidp                   12928  2
l2cap                  20224  10 rfcomm,hidp
bluetooth              37860  5 rfcomm,hidp,l2cap
snd_seq_oss            27264  0
snd_seq_midi_event      6272  1 snd_seq_oss
snd_seq                43408  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          7052  2 snd_seq_oss,snd_seq
snd_pcm_oss            41760  0
snd_mixer_oss          15104  1 snd_pcm_oss
ide_cd                 33284  0
cdrom                  31520  1 ide_cd
8139cp                 17024  0
8139too                22528  0
mii                     4992  2 8139cp,8139too
joydev                  8000  0
usbhid                 40064  0
rtc                    10164  0
shpchp                 36832  0
pci_hotplug            22852  1 shpchp
ati_agp                 7052  0
ohci_hcd               17028  0
ehci_hcd               27144  0
snd_atiixp             14988  3
snd_atiixp_modem       12296  0
snd_ac97_codec         80032  2 snd_atiixp,snd_atiixp_modem
snd_ac97_bus            2688  1 snd_ac97_codec
snd_pcm                69252  5 snd_pcm_oss,snd_atiixp,snd_atiixp_modem,snd_ac97_codec
snd_timer              19076  3 snd_seq,snd_pcm
snd                    41956  14 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_atiixp,snd_atiixp_modem,snd_ac97_codec,snd_pcm,snd_timer
soundcore               7776  1 snd
snd_page_alloc          8200  3 snd_atiixp,snd_atiixp_modem,snd_pcm
cpufreq_ondemand        6440  1
powernow_k8            11040  1
freq_table              4256  1 powernow_k8
ndiswrapper           157772  0
usbcore               100484  6 usb_storage,usbhid,ohci_hcd,ehci_hcd,ndiswrapperfglrx                 438412  7
agpgart                26064  2 ati_agp,fglrx
jfs                   152828  2
ide_disk               13568  4
atiixp                  5264  0 [permanent]
generic                 4868  0 [permanent]
ide_core              102864  5 usb_storage,ide_cd,ide_disk,atiixp,generic

Some relevant facts:
Laptop, cardreader and the 2 sticks are usb2.0
I use gnome-volume-manager to automount the stick

Some notable changes from the reinstall:
gnome 2.12 to 2.14

Help please. How do I go about troubleshooting this?
Thanks.

Offline

#13 2006-04-10 18:30:02

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 802

Re: USB stick very slow

Perhaps

lsusb -v

might give a clue

Offline

#14 2006-04-10 21:42:48

kryo
Member
Registered: 2004-04-13
Posts: 40

Re: USB stick very slow

lsusb -v:

$ lsusb -v

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            2.06
  iManufacturer           3
  iProduct                2
  iSerial                 1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval              12
can't get hub descriptor: Operation not permitted
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted

Bus 001 Device 003: ID 1267:0201 Logic3 / SpectraVideo plc A4Tech SWOP-3 Mouse
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1267 Logic3 / SpectraVideo plc
  idProduct          0x0201 A4Tech SWOP-3 Mouse
  bcdDevice            2.30
  iManufacturer           0
  iProduct                1
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      Remote Wakeup
    MaxPower               48mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      52
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval               8

Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x05e3 Genesys Logic, Inc.
  idProduct          0x0606
  bcdDevice            7.02
  iManufacturer           0
  iProduct                1
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
can't get hub descriptor: Operation not permitted
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted

Bus 003 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            2.06
  iManufacturer           3
  iProduct                2
  iSerial                 1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
can't get hub descriptor: Operation not permitted

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            2.06
  iManufacturer           3
  iProduct                2
  iSerial                 1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
can't get hub descriptor: Operation not permitted

Offline

#15 2006-04-11 05:43:42

kryo
Member
Registered: 2004-04-13
Posts: 40

Re: USB stick very slow

It seems that gnome-volume-manager/pmount is mounting the usb sticks sync and not async, causing slow speeds.

Offline

#16 2006-04-19 10:06:24

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 652
Website

Re: USB stick very slow

It's not clear yet wether one should simply remove "sync" (ftom fstab, pmount, udev) when mouting usb stick / flash memory ?
Or should one specify "async" ?

$ man mount | grep sync
      async  All I/O to the file system should be done asynchronously.
      sync   All I/O to the file system should be done  synchronously.


Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) & 2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#17 2006-04-19 12:13:58

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: USB stick very slow

I used to use sync. This brought my stick's speed to a crawl though: 5 KB/s. Now I'm using async and it's at full speed again.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#18 2006-04-20 17:43:35

nggalai
Member
From: Switzerland
Registered: 2004-08-01
Posts: 215
Website

Re: USB stick very slow

kryo wrote:

It seems that gnome-volume-manager/pmount is mounting the usb sticks sync and not async, causing slow speeds.

How can I change that, using gnome-volume-manager? My stick has been slow as molasses too, since the update to GNOME 2.14.

Offline

#19 2006-04-20 20:25:14

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: USB stick very slow

nggalai wrote:
kryo wrote:

It seems that gnome-volume-manager/pmount is mounting the usb sticks sync and not async, causing slow speeds.

How can I change that, using gnome-volume-manager? My stick has been slow as molasses too, since the update to GNOME 2.14.

add your usb stick to fstab with the async option

Offline

#20 2006-04-21 16:40:50

nggalai
Member
From: Switzerland
Registered: 2004-08-01
Posts: 215
Website

Re: USB stick very slow

pressh wrote:
nggalai wrote:
kryo wrote:

It seems that gnome-volume-manager/pmount is mounting the usb sticks sync and not async, causing slow speeds.

How can I change that, using gnome-volume-manager? My stick has been slow as molasses too, since the update to GNOME 2.14.

add your usb stick to fstab with the async option

That did it. Thanks! smile

Question: why does this behaviour show up now? I never had an fstab entry for my USB stick before, and it worked just well prior to the last "big" update. Has anything changed with pmount or gnome-volume-manager?

Offline

#21 2006-04-22 20:16:13

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: USB stick very slow

I believe gnome-volume manager is suppose to mount small usb devices sync, and normal size usb devices async. Somehow it does not work that way atm, so you should blame gnome-volume-manager

Offline

#22 2006-05-11 19:42:59

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,771

Re: USB stick very slow

I would like to know if I should use sync as its sooooooo slllllooowww atm with it

Is async the way to go with newer kernels ????


Mr Green

Offline

#23 2006-05-11 20:28:32

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: USB stick very slow

yup, async is definately much faster

Offline

#24 2006-05-11 22:23:48

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: USB stick very slow

I like the idea presented by FUBAR in another thread to no use sync and setup autofs to automatically unmount the device after a sane timeout. This will ensure that if you forget and pull the device it will most likely not cause data loss.

Offline

#25 2006-05-12 07:48:19

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: USB stick very slow

iBertus wrote:

I like the idea presented by FUBAR in another thread to no use sync and setup autofs to automatically unmount the device after a sane timeout. This will ensure that if you forget and pull the device it will most likely not cause data loss.

The --timeout idea is copied from the AutoFS wiki. wink But thanks for the credit!

It doesn't work that well though: when you copy a lot of stuff to the stick, it goes pretty fast. Once the timeout has been reached, it's synced so it could take a while. All this time you can't pull out the stick. It's not a problem for me: I put the stick in a USB port on my frontpanel and wait for the LED of the stick to stop flashing before pulling it out.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

Board footer

Powered by FluxBB