You are not logged in.

#1 2011-06-16 10:15:05

techmagyor
Member
Registered: 2010-08-25
Posts: 31

USB Transfers very slow

hi,
my usb transfers, both usb2 and usb3, are very slow and it seems that the transfers are not constant (from gnome gui transfer i can see changes on target USB every 20-30 seconds about)..so, there's something wrong!
I recompiled my own kernel, use laptop-mode (not enabled on AC) and some tweak in sysctl.conf and fstab running on 2.6.39.1 from kernel.org(and gnome3):

That's my .config (maybe just check that USB essentials are there!): http://pastebin.com/Kzd3k2mJ

more on .config: grep USB: http://pastebin.com/c4AYBPCb

modprobe.conf:

blacklist pcspkr
blacklist usblp
options usbcore autosuspend=1
options snd-hda-intel model=auto
alias net-pf-10 off

sysctl.conf:

vm.swappiness=15
vm.vfs_cache_pressure=50
fs.inotify.max_user_watches = 524288
vm.dirty_writeback_centisecs=3000
vm.laptop_mode=5

mtab:

/dev/root / ext4 rw,noatime,commit=120,commit=0 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=498192,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/sda1 /boot ext2 rw,noatime 0 0
/dev/sda5 /var reiserfs rw,noatime,notail 0 0
/dev/sda6 /home ext4 rw,noatime,commit=120,data=writeback,commit=0 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime,mode=1777 0 0
gvfs-fuse-daemon /home/umberto/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=umberto 0 0
/dev/sdb1 /media/375A-3A94 vfat rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,showexec,flush 0 0

dmesg regarding usb:

scsi7 : usb-storage 1-2:1.0
xhci_hcd 0000:06:00.0: WARN: short transfer on control ep
scsi 7:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  8.02 PQ: 0 ANSI: 0 CCS
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
xhci_hcd 0000:06:00.0: WARN: short transfer on control ep
sd 7:0:0:0: [sdb] 15753215 512-byte logical blocks: (8.06 GB/7.51 GiB)
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] Assuming drive cache: write through

I have this problem only on 2.6.39 and 2.6.39.1 kernel (but i cannot find usb-transfers-related bugs). Started from 25 mb/s about and at around first minuti it slows slowly to 3 mb/s till finish (transferring 5gb from /home to usb)
Thanks in advance

1st edit: i'm putting back arch stock kernel to check if the problem is on tweaks i made or on kernel i compiled

2nd edit: With arch kernel i have the same behaviour (slowness) on USB transferring. So it's tweaks related. Same slowness doesn't happen with custom kernel/arch kernel on external HD. So it's USB pen drive related i assume in conjuction with the above tweaks?

Last edited by techmagyor (2011-06-16 10:37:05)

Offline

Board footer

Powered by FluxBB