Reply
Thread Tools
Posts: 999 | Thanked: 1,117 times | Joined on Dec 2009 @ earth?
#11
The first time I copied something (about 100 mp3 files) it took ages to copy everthing to my n900 - it was much slower than a normal usb stick.

I think it might be the tracker aspect of the software that indexes the files?

A few days later I copied some pdfs, a 700mb avi movie and compressed files. They copied over much quicker than the mp3s I did earlier.

Then the n900 was "laggy" for a short while (about an 1 hour?) and everything seemed to work fine after that.

Maybe something to with indexing?
__________________
I like cake.
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#12
Originally Posted by Jack6428 View Post
20 minutes ? It takes just 58 seconds with my N900....definately a problem at your end mate! I guess you don't have USB 2.0 ?
I'm jealous... are you using linux or windows?

from the lsusb output it looks USB 2.0, and here's my dmesg (on PC) when I plug it in, which also shows ehci_hcd (USB 2.0):

Code:
[2833529.341012] usb 1-4: new high speed USB device using ehci_hcd and address 30
[2833529.456306] usb 1-4: New USB device found, idVendor=0421, idProduct=01c7
[2833529.456309] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2833529.456311] usb 1-4: Product: N900 (Storage Mode)
[2833529.456312] usb 1-4: Manufacturer: Nokia
[2833529.456313] usb 1-4: SerialNumber: (censored)
[2833529.456388] usb 1-4: configuration #1 chosen from 2 choices
[2833529.459456] scsi26 : SCSI emulation for USB Mass Storage devices
[2833529.459899] usb-storage: device found at 30
[2833529.459901] usb-storage: waiting for device to settle before scanning
[2833534.461286] scsi 26:0:0:0: Direct-Access     Nokia    N900              031 PQ: 0 ANSI: 2
[2833534.461421] sd 26:0:0:0: Attached scsi generic sg7 type 0
[2833534.468657] sd 26:0:0:0: [sdg] 56631296 512-byte logical blocks: (28.9 GB/27.0 GiB)
[2833534.469091] usb-storage: device scan complete
[2833534.469372] sd 26:0:0:0: [sdg] Write Protect is off
[2833534.469374] sd 26:0:0:0: [sdg] Mode Sense: 0f 00 00 00
[2833534.469376] sd 26:0:0:0: [sdg] Assuming drive cache: write through
[2833534.471829] sd 26:0:0:0: [sdg] Assuming drive cache: write through
[2833534.471837]  sdg:
[2833534.474927] sd 26:0:0:0: [sdg] Assuming drive cache: write through
[2833534.474931] sd 26:0:0:0: [sdg] Attached SCSI removable disk
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#13
Okay, I just hooked it up to a Windows Vista computer and copied about 1.5 gigs in 90 seconds or so, around 17 MB/sec. So at least it seems my N900 is okay and it's just some settings problem on my linux computer. Whew Thanks for the help. I'll update if I figure out exactly what's going on...
 
Jack6428's Avatar
Posts: 635 | Thanked: 282 times | Joined on Sep 2009 @ Black Mesa Research Facility
#14
good to know you sorted it out.... im using Windows XP SP3 32bit and Windows 7 Ultimate 64bit
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#15
Didn't sort it out, just know that the N900 is at least capable of faster speeds. I tried every USB port on my Linux PC and it's slow on all of them, while other USB devices perform at full speed. I found a few other references to this same problem by googling but no solutions...
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#16
After various plugging/unplugging of all my USB devices into different ports in different orders, it is going fast now. I hate USB!

Thanks for your help.
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#17
I spoke too soon, but I think I've isoltated the cause (though not the solution).

It seems something in linux i/o flushing technique is bad when combined with the N900. If I copy 1 file and sync the speed is 17MB/sec, exactly the same as I get from MS Windows. However, if I copy more than one file, the speed drops to below 2MB/sec or even below 500kb/sec depending on which kernel I'm using. It seems linux might be doing multiple write streams and N900 simply can't cope with that.

In my test case I have about 4 gigs of files, 350 gigs each. If I copy/sync/copy/sync/copy/sync etc the speed is 17MB/sec but if I copy all, then sync, speed is horrible.
 

The Following 2 Users Say Thank You to stlpaul For This Useful Post:
Posts: 999 | Thanked: 1,117 times | Joined on Dec 2009 @ earth?
#18
I just tried copying a 550mb avi file and the estimated time was 6 minutes!!! that's approx 1mb a second (according to gnome nautilus).

I cancelled the copy and tried this: disconnect N900 from cable, switched N900 on first then plugged the cable in.
The file copy literally took a few seconds!

The first time I plugged in N900 (it was switched off) - I connected it to my laptop then switched it on. Got errors in dmesg.

dmesg output..........
usb 2-2: new full speed USB device using ohci_hcd and address 2
usb 2-2: device descriptor read/64, error -62
usb 2-2: device descriptor read/64, error -62
usb 2-2: new full speed USB device using ohci_hcd and address 3
usb 2-2: not running at top speed; connect to a high speed hub
usb 2-2: configuration #1 chosen from 2 choices
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: Direct-Access Nokia N900 031 PQ: 0 ANSI: 2
sd 3:0:0:0: [sdb] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
sd 3:0:0:0: [sdb] 56631296 512-byte hardware sectors (28995 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] 56631296 512-byte hardware sectors (28995 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
------------------

When I connected the N900 (ensured it was switched on) to my laptop dmesg produced this:

dmesg output...........
usb 1-3: new high speed USB device using ehci_hcd and address 4
usb 1-3: configuration #1 chosen from 2 choices
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 4:0:0:0: Direct-Access Nokia N900 031 PQ: 0 ANSI: 2
sd 4:0:0:0: [sdb] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
sd 4:0:0:0: [sdb] 56631296 512-byte hardware sectors (28995 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] 56631296 512-byte hardware sectors (28995 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through

The file copy just took a few seconds.
__________________
I like cake.
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#19
Hmm, it's strange. I don't get those errors but I have found other ppl who experience the same thing... I'll keep investigating
 
Posts: 150 | Thanked: 93 times | Joined on Oct 2009 @ Pennsylvania, US
#20
I'm seeing this too... slow IO over USB and 95% N900 cpu time = IO. Still in the process of copying 1.7gb over (cp complete, waiting for the eject triggered sync to finish), and it's been going for about 1.5 hours. Here is the output of my dmesg regarding the N900...

Code:
[864207.663613] usb 2-3: new high speed USB device using ehci_hcd and address 2
[864207.788109] usb 2-3: configuration #1 chosen from 2 choices
[864207.788721] scsi7 : SCSI emulation for USB Mass Storage devices
[864207.788835] usb-storage: device found at 2
[864207.788836] usb-storage: waiting for device to settle before scanning
[864212.795341] scsi 7:0:0:0: Direct-Access     Nokia    N900              031 PQ: 0 ANSI: 2
[864212.795544] sd 7:0:0:0: Attached scsi generic sg7 type 0
[864212.799734] scsi 7:0:0:1: Direct-Access     Nokia    N900              031 PQ: 0 ANSI: 2
[864212.799903] sd 7:0:0:1: Attached scsi generic sg8 type 0
[864212.805161] sd 7:0:0:1: [sdg] Attached SCSI removable disk
[864212.805779] sd 7:0:0:0: [sdf] Attached SCSI removable disk
[864212.805882] usb-storage: device scan complete
[864213.026531] sd 7:0:0:0: [sdf] 56631296 512-byte logical blocks: (28.9 GB/27.0 GiB)
[864213.026899] sd 7:0:0:0: [sdf] Assuming drive cache: write through
[864213.028404] sd 7:0:0:0: [sdf] Assuming drive cache: write through
[864213.028410]  sdf:
I'm going to try a different 2.0 port when it's done, and hope things go better for the 25gb of music I'm copying next. If things don't look good, I guess I'll revert to scp. Just hoping I can find a way to get 25gb over in the next 5 hours before my *** is on the way to the airport.

Edit: (more info)
Code:
# iostat /dev/sdf -kx
Linux 2.6.31-gentoo-r6 (null)   12/28/09        _x86_64_        (2 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          14.67    2.35    3.23    2.47    0.00   77.27

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
sdf               0.00     0.51    0.12    0.09     2.97     3.61    63.04     1.04 4980.37  36.21   0.76
await = 4980.37, so the average wait time for I/O requests to be served is just under 5 seconds. That combined with the high IO utilization on the N900 points at a bug on that end.

Last edited by rewt; 2009-12-29 at 02:45.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:44.