LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-04-2005, 09:43 PM   #1
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Rep: Reputation: 30
inconsistent USB 2.0 performance


Greets, fellow Slackers. Got a weird issue. Slack 10, custom 2.6.12.2 kernel, Nforce2 chipset, ehci_hcd & ohci_hcd modules loaded. I plug in the Sandisk MP3 player, and here is the dmesg

usb 3-2: new high speed USB device using ehci_hcd and address 5
scsi9 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk Model: SDMX1 MP3 Player Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 497664 512-byte hdwr sectors (255 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 497664 512-byte hdwr sectors (255 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi9, channel 0, id 0, lun 0
usb-storage: device scan complete

Happy camper right? Then I mount it as /mnt/usb-mp3 with options users,rw,sync. And it mounts just fine.

Here's the weird part. When I transfer files from the MP3 player to the harddrive, I get speeds of over 7MB/s. Nice. But when I transfer files from HD to MP3 player, my speeds drop 250KB/s. What gives?! Nothing in dmesg. I've tried reloading all the modules and remounting. I removed the sync mount option, but that has it's own quirks and I don't want to do down that path.

Any suggestions?

--Akshun J
 
Old 08-04-2005, 09:50 PM   #2
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Hmmm, after reviewing /var/log/messages, I see that I've got a FATAL: Module sd_mod not found.

Who wants to bet that's my problem... Grrrrr...


--Akshun J
 
Old 08-04-2005, 11:54 PM   #3
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Well, my kernel config says

CONFIG_BLK_DEV_SD=y

This appears to be compiled in, so no wonder the module loading failed. It should be working, though. I'm really at a loss for figuring this out now...

--Akshun J

Last edited by akshunj; 08-05-2005 at 12:19 AM.
 
Old 08-05-2005, 02:05 PM   #4
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Couple of thoughts

7MB/s is faster than I've ever seen my 2.0 ports go (averages 5 with my external USB HDD), but then again, I get 5 both ways... I'm not familiar with the device in question, and even though I doubt it's the case, is it possible that the hardware on its end just isn't capable of faster writes than that? Just a thought...
Also, I do recall seeing in the kernel config help a somewhat cryptic blurb about a particular USB block device (if memory serves) driver/option that said something like 'be aware enabling this cripples the USB driver' -- what I know I've picked up by trial and error alone, so my info's shaky, but perhaps you've compiled in that option and the sluggish output is the result that they were hinting at (which if I remember how I configured mine, I included as a module and have no probs with)?
I've had odd instances of my system trying to load modules that it shouldn't be trying to find in the first place, as well; wish I could be more helpful on that, but is there any chance you missed a soft link when compiling your 2.6 kernel and Slack is still working as though you're using it's 2.4? (config files in /etc/rc.d/ dir, do a fresh "make && make modules_install" in the 2.6 kernel's src dir, update the soft links in /lib/modules and /usr/src to point to the current version incase it isn't just for user convenience, etc.)
Might try using the same config and just recompiling and copying the system.map and bzImage files to your /boot dir and checking lilo.conf as a last resort, I suppose.
Good luck figuring it out
 
Old 08-06-2005, 12:28 AM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Maybe it's the sync option that is slowing you down. Do you have the same issue if you drop the sync option?
 
Old 08-16-2005, 02:38 PM   #6
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
I tried dropping the sync option, and it helps, but creates other issues. I copy something, it completes, and then when I unmount the device it takes a couple of minutes while it syncs the data. Not a viable option. Thanks, though.

--Akshun J
 
Old 08-16-2005, 10:49 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
I think that's just the nature of the beast. The sync option makes transfers happen one at a time. Dropping the sync option just does everything at once, not waiting for the last action to complete. You may have to wait a few moments after unmounting, but I have found that the wait is NOWHERE NEAR as long as the waitng around for file transfers with the sync option.
 
Old 08-17-2005, 06:54 AM   #8
nnsg
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
Re: Couple of thoughts

Quote:
Originally posted by NoeticRapture
I do recall seeing in the kernel config help a somewhat cryptic blurb about a particular USB block device (if memory serves) driver/option that said something like 'be aware enabling this cripples the USB driver' -- what I know I've picked up by trial and error alone, so my info's shaky, but perhaps you've compiled in that option and the sluggish output is the result that they were hinting at (which if I remember how I configured mine, I included as a module and have no probs with)?
It's the "Low Performance USB Block driver", I also encountered USB problem because of this module.

So akshunj you can try to remove this module and see if it resovle your USB problem.
 
Old 10-16-2005, 08:26 PM   #9
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
2 months later...

It was not the low performance USB driver. I NEVER compile that thing in. It's useless...

I have since upgraded to 2.6.13.2, but I haven't tested this function yet. I'll update the thread when I do...

--Akshun J
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb 2.0 external hdd bad performance - filesystem issue ? rtspitz Linux - Hardware 0 05-10-2005 11:28 AM
external usb 2.0 hard drive performance experiences ad572 Linux - Hardware 7 10-15-2004 04:50 PM
Improved performance with USB 2.0 tornado419 Linux - Hardware 2 08-30-2004 01:18 AM
inconsistent logons giri2 Mandriva 0 08-17-2004 05:50 PM
inconsistent X server? rgiggs Mandriva 3 05-11-2004 10:32 PM


All times are GMT -5. The time now is 04:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration