Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
*Terrible* Hard Drive transfer speeds
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Jim6
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 102

PostPosted: Sat Apr 01, 2006 10:59 pm    Post subject: *Terrible* Hard Drive transfer speeds Reply with quote

I'm having major trouble here with copy speeds to, but not from the two hard-disks I have on my second IDE channel.

(Using scp, since it has a nice speed-meter - this applies to any file transfers though.)
To / From hda : ~4.6 MB/s {This is great - it's over 100Mbit after all}
To hdc or hdd : ~500 KB/s {Here's my problem... }
From hdc or hdd: ~4.6MB/s {Again, this is fine}

(As an aside - is there another tool I could use to get a better idea of speed other than "hdparm -tT" ?)

My IDE controller: (From lspci)
00:1f.1 IDE interface: Intel Corporation 82801AA IDE (rev 02)
(In case it's helpful, the datasheet)

hdparm info:
Quote:
/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 0 (off)
geometry = 13328/15/63, sectors = 12594960, start = 0
Quote:
/dev/hda:

Model=WDC AC26400B, FwRev=32.02S32, SerialNo=WD-WT6090086186
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=13328/15/63, TrkSize=57600, SectSize=600, ECCbytes=22
BuffType=DualPortCache, BuffSize=512kB, MaxMultSect=16, MultSect=16
CurCHS=13328/15/63, CurSects=12594960, LBA=yes, LBAsects=12594960
IORDY=on/off, tPIO={min:160,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4

* signifies the current active mode
Quote:
hdparm -tT /dev/hda:
/dev/hda:
Timing cached reads: 344 MB in 2.01 seconds = 171.30 MB/sec
Timing buffered disk reads: 2 MB in 6.32 seconds = 323.83 kB/sec
Quote:
/dev/hdc:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 24321/255/63, sectors = 390721968, start = 0
Quote:
/dev/hdc:

Model=SAMSUNG SP2014N, FwRev=VC100-30, SerialNo=S088J10Y407980
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7

* signifies the current active mode

Quote:
hdparm -tT /dev/hdc

/dev/hdc:
Timing cached reads: 308 MB in 2.02 seconds = 152.47 MB/sec
Timing buffered disk reads: 48 MB in 3.06 seconds = 15.66 MB/sec

Quote:
/dev/hdd:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 24321/255/63, sectors = 390721968, start = 0

Quote:
/dev/hdd:

Model=WDC WD2000JB-00GVA0, FwRev=08.02D08, SerialNo=WD-WCALL1111610
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6

* signifies the current active mode

Quote:
hdparm -tT /dev/hdd
/dev/hdd:
Timing cached reads: 300 MB in 2.00 seconds = 149.99 MB/sec
Timing buffered disk reads: 56 MB in 3.25 seconds = 17.22 MB/sec


There is no slave device on IDE0.

Now, I know that the immediate thing to spring to mind is that the 2 poorly functioning drives are both miles bigger than hda. I've tried removing one of them, but the problem remains. I've been messing with hdparm today trying to sort this out, but to no avail.

Does anyone have any suggestions?

Also: I've just noticed this in dmesg:
Quote:
ide1: Speed warnings UDMA 3/4/5 is not functional.
ide1: Speed warnings UDMA 3/4/5 is not functional.

UDMA 3(+) should not be in use! Is this an indication of some other failure?

Finally, my kernel config. I'm using linux-2.6.15-gentoo-r1.

Any help would really be appreciated!

Thanks,

Jim


EDIT: Following a stint on the chatroom, NeddySeagoon suggested that I should invest in an 80-wire cable for my secondary ide channel. I have one for the primary, so that could well be the problem.
Didn't work :(


If you have any other suggestions, they're all welcome!


Last edited by Jim6 on Sat Apr 08, 2006 2:40 pm; edited 4 times in total
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Apr 02, 2006 12:44 pm    Post subject: Re: *Terrible* Hard Drive transfer speeds Reply with quote

Jim6 wrote:
EDIT: Following a stint on the chatroom, NeddySeagoon suggested that I should invest in an 80-wire cable for my secondary ide channel. I have one for the primary, so that could well be the problem. If you have any other suggestions, they're all welcome!

Listen to the man. :)
Without the 80 pin conductor cable you won't be able to set the higher udma modes for those drives.

As to drive /dev/hda, I did notice this in the man page of hdparm regarding multiple sector mode:
Quote:
When this feature is enabled, it typically reduces operating
system overhead for disk I/O by 30-50%. On many systems, it also provides increased data throughput of anywhere from 5%
to 50%. Some drives, however (most notably the WD Caviar series), seem to run slower with multiple mode enabled.
.
.
.
Western Digital recommends lower settings of 4 to 8 on many of their drives, due tiny (32kB) drive buffers and non-optimized buffering algorithms.

You appear to have a Western Digital Cavalier at hda, but I don't know if specific series.


Last edited by Headrush on Sun Apr 02, 2006 1:28 pm; edited 2 times in total
Back to top
View user's profile Send private message
PaveQ
Apprentice
Apprentice


Joined: 11 Feb 2005
Posts: 225
Location: Finland

PostPosted: Sun Apr 02, 2006 12:59 pm    Post subject: Reply with quote

I get around 20MB/s without 80 cables. The old motherboard doesn't support them. :roll: But not bad actually.
Back to top
View user's profile Send private message
Jim6
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 102

PostPosted: Sun Apr 02, 2006 5:40 pm    Post subject: Reply with quote

Well, I was following the Gentoo wiki on hdparm when putting these settings together (trying to fix this problem) - it says

Quote:
(About MultSect) Note that this is only relevant for PIO modes, and not for DMA modes, where high numbers of sectors are always used, up to 256 on older drives, and up to 65535 on newer drives. The vast majority of drives in use today will be set by the kernel to use a (U)DMA mode by default, making this option irrelevant.


so, since I'm using UDMA, it should be alright. The max UDMA setting for the M/board is UDMA2, so I'm not going any higher! NeddySeagoon mentioned that the IDE controller could be using some other transfer mose, despite the drives being being set to use UDMA2 - how can I tell if this is happening? (For info, a cp onto hdc uses ~0/7% of my 733MHz processor; I don't thinsk that this is indicative of PIO {or is it?})

As for the comment about hda, I should have mentioned earlier; it's working fine! (The 4.6MB/s mentioned above is the max transfer speed I can expect using scp over 100Mbit networking). It's hdc and hdd that I'm having the problems with! (I'll edit the above post to mention this)

-> With this in mind, I have two WDC disks in the machine; hda (6.4GB, works fine) and hdd (200GB, slow writes, grand reads). Since this problem is shared by hdc (Samsung) and hdd (WDC) it seems unlikely that this is thae cause.


I haven't managed to get an 80-wire today {Stupid Sunday early closing times!} so I think I'll switch the one I have around and see what that does.
Back to top
View user's profile Send private message
Jim6
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 102

PostPosted: Sat Apr 08, 2006 2:36 pm    Post subject: Reply with quote

The 80-wire IDE cable hasn't improved the situation.


It strikes me that my hdparm test results are quite good - why is my actual performance so poor?
Back to top
View user's profile Send private message
Jim6
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 102

PostPosted: Sat May 20, 2006 3:43 pm    Post subject: Reply with quote

Unfortunately, this situation remains unresolved.


Can anyone think of any other possible reasons why I'm experiencing such poor behaviour? I have been unable to spend much time working to solve this, but it's been driving me up the wall
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum