Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...?
Date: Sun, 27 Dec 2009 20:01:28
Message-Id: 58965d8a0912271146r56f864dx4fda252aef8bf8cf@mail.gmail.com
In Reply to: Re: [gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...? by Paul Hartman
1 On Sun, Dec 27, 2009 at 12:10 PM, Paul Hartman
2 <paul.hartman+gentoo@×××××.com> wrote:
3 > On Sun, Dec 27, 2009 at 12:01 AM, Michael Holmes
4 > <holmesmich@××××××××××.com> wrote:
5 >> 2009/12/27 Paul Hartman <paul.hartman+gentoo@×××××.com>:
6 >>> On Sat, Dec 26, 2009 at 7:00 PM, Hung Dang <hungptit@×××××.com> wrote:
7 >>>> On 12/26/09 15:54, Paul Hartman wrote:
8 >>>>> Hi,
9 >>>>>
10 >>>>> I got a Nokia N900 linux internet tablet/phone a few days ago, and
11 >>>>> when I connect it in USB Mass Storage mode to a Windows Vista computer
12 >>>>> I can write at 17MB/sec, but when I connect it to my Gentoo box my
13 >>>>> writes are really slow, between 500-900kb/sec depending on if I mount
14 >>>>> in "sync" mode or not. As far as I know it should be just a totally
15 >>>>> standard/generic mass storage device. (there were no drivers or
16 >>>>> software install needed in windows, it just worked)
17 >>>>>
18 >>>>> Other USB devices plugged into the same port go full speed, and AFAIK
19 >>>>> everything appears as if it should be high speed USB 2.0. Has anyone
20 >>>>> seen something like this before? I'm not sure what the deal is. It
21 >>>>> takes 20 minutes to copy 1 gigabyte from Linux and takes just under 1
22 >>>>> minute to do the same in Windows.
23 >>>>>
24 >>>>> I'm not sure about debugging USB or what the options are. Everything
25 >>>>> I've used previously has worked without any hassle.
26 >>>> Have you received a lot of debugging messages at the output of dmesg
27 >>>> when copying files?
28 >>>>
29 >>>> Hung
30 >>>
31 >>> No errors, no strange messages at all, it seems normal (only slow). I
32 >>> have other USB devices like SD card reader, external HDD, and they
33 >>> perform at full speed when plugged into the same port, so it's weird
34 >>> to me.
35 >>>
36 >>> Thanks
37 >>> Paul
38 >>>
39 >>>
40 >>
41 >> This isn't that helpful, but in Windows I get good thoroughputs in
42 >> mass storage mode, but compartively weak ones in sync mode. But this
43 >> shouldn't be the problem because as far as I know, there are no
44 >> ync-mode drivers for good old Linux (which is ironic if you consider
45 >> it).
46 >
47 > When I said "sync" mode I mean mounting the device in mass storage
48 > mode with with "-o sync" (as opposed to the default cached/async
49 > mode), which I believe is the default in Windows Vista & Win7 (because
50 > most windows users cannot be bothered to unmount before pulling the
51 > plug).
52 >
53 > Thanks
54
55 Well, after a bit more plugging/unplugging of all my USB devices into
56 various ports in different orders, it seems to be going fast now. I
57 hate USB :)
58
59 Thanks for the help

Replies

Subject Author
Re: [gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...? Paul Hartman <paul.hartman+gentoo@×××××.com>