View previous topic :: View next topic |
Author |
Message |
Ginta Apprentice
Joined: 17 Feb 2006 Posts: 153 Location: Spain
|
Posted: Fri Apr 21, 2006 2:55 am Post subject: Disk transfers too slow |
|
|
I have two hard disks, one is 160 GB Seagate IDE (hda), and another is 300 GB SATA Seagate (sda), and when I run hdparm (and when I do any disk transfer) I have a slow transfer (comparing with other OSes) (with DMA active).
This is hdparm info:
Code: |
/dev/hda:
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 = 19457/255/63, sectors = 312581808, start = 0
|
Code: |
/dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 36481/255/63, sectors = 586072368, start = 0
|
Speed tests are:
Code: |
/dev/hda:
Timing cached reads: 2720 MB in 2.00 seconds = 1357.20 MB/sec
Timing buffered disk reads: 136 MB in 3.02 seconds = 45.03 MB/sec
|
Code: |
/dev/sda:
Timing cached reads: 2588 MB in 2.00 seconds = 1293.92 MB/sec
Timing buffered disk reads: 180 MB in 3.00 seconds = 59.92 MB/sec
|
Can someone tell me why is this so slow? And, if possible, tell me his values of hdparm -Tt ?
Thank you! _________________ Some people should use emerge brain on theirselves... |
|
Back to top |
|
|
brims Guru
Joined: 19 Apr 2004 Posts: 492 Location: Arizona
|
|
Back to top |
|
|
JeliJami Veteran
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
Posted: Fri Apr 21, 2006 7:37 am Post subject: |
|
|
that seems OK, or at least comparable to mine:
Code: | # hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 2596 MB in 2.00 seconds = 1295.61 MB/sec
Timing buffered disk reads: 186 MB in 3.01 seconds = 61.72 MB/sec
# hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 2324 MB in 2.00 seconds = 1161.02 MB/sec
Timing buffered disk reads: 84 MB in 3.05 seconds = 27.53 MB/sec |
_________________ Unanswered Post Initiative | Search | FAQ
Former username: davjel |
|
Back to top |
|
|
brims Guru
Joined: 19 Apr 2004 Posts: 492 Location: Arizona
|
|
Back to top |
|
|
JeliJami Veteran
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
Posted: Fri Apr 21, 2006 9:42 am Post subject: |
|
|
hi brims,
i just posted my numbers to show Ginta that those hdparm test results of his/her are fine
i agree on your comment
brims wrote: | I just don't see how a gigabyte a second is slow |
_________________ Unanswered Post Initiative | Search | FAQ
Former username: davjel |
|
Back to top |
|
|
Kabuto l33t
Joined: 01 Aug 2002 Posts: 701
|
Posted: Fri Apr 21, 2006 3:22 pm Post subject: |
|
|
Looks fine. The top number is speed for the interface. The second is the ~average speed of the drive. In actuallity depeneding on where the data is it could be slightly faster or slower than that number. I have seen some Windows benchmarks that can scan the full platter but don't know of any off hand for Linux. |
|
Back to top |
|
|
Ginta Apprentice
Joined: 17 Feb 2006 Posts: 153 Location: Spain
|
Posted: Fri Apr 21, 2006 5:31 pm Post subject: |
|
|
I wanted to say that if I copy data from one disk to the other, it seems slow comparing with windows for example (I didn't want to compare, but this is what I believed). If this is acceptable I was wrong (I didn't know what is the average in gentoo for hdparm or transfers).
Anyway, thank you all _________________ Some people should use emerge brain on theirselves... |
|
Back to top |
|
|
brims Guru
Joined: 19 Apr 2004 Posts: 492 Location: Arizona
|
Posted: Fri Apr 21, 2006 6:48 pm Post subject: |
|
|
davjel wrote: | hi brims,
i just posted my numbers to show Ginta that those hdparm test results of his/her are fine
i agree on your comment
brims wrote: | I just don't see how a gigabyte a second is slow |
|
Don't get me wrong I wasn't disagreeing with you, I saw your numbers being about the same as the original posters and that both were higher than mine, and that the speeds Ginta was getting were by no means slow. _________________ Adopt an Unanswered Post
Report violations, duplicates, misplaced, etc |
|
Back to top |
|
|
whoracle n00b
Joined: 23 Dec 2004 Posts: 33
|
Posted: Fri Apr 21, 2006 8:28 pm Post subject: |
|
|
/dev/hda:
Timing cached reads: 2520 MB in 2.00 seconds = 1259.51 MB/sec
Timing buffered disk reads: 10 MB in 3.23 seconds = 3.10 MB/sec
I believe someone forgot to enable dma last kernelupgrade |
|
Back to top |
|
|
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Sun May 28, 2006 5:13 pm Post subject: |
|
|
I have DMA enabled and here's my timings:
Code: |
/dev/hdb:
Timing cached reads: 584 MB in 2.01 seconds = 290.63 MB/sec
Timing buffered disk reads: 16 MB in 3.27 seconds = 4.89 MB/sec
|
I would be really happy if I have half the speed of your hard drive >_<
Maybe time to upgrade my harddrive. _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
OlegVekhov n00b
Joined: 09 Jun 2006 Posts: 12
|
Posted: Fri Jun 16, 2006 9:27 am Post subject: |
|
|
So i have DMA 66 hdd succesfully tweaked with hdparm... and timed reads 150 MB, but buffered reads only 2 MB!!
I have some queschions: one is how to enable write caching (after executing hdparm - W1, hdparm -i shows that WC disabled).
second - where to read about linux HDD caching architecture, how to alter read/write buffer and so on...
Thanks |
|
Back to top |
|
|
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Sun Jun 18, 2006 1:29 am Post subject: |
|
|
OlegVekhov wrote: | So i have DMA 66 hdd succesfully tweaked with hdparm... and timed reads 150 MB, but buffered reads only 2 MB!!
I have some queschions: one is how to enable write caching (after executing hdparm - W1, hdparm -i shows that WC disabled).
second - where to read about linux HDD caching architecture, how to alter read/write buffer and so on...
Thanks |
If you don't mind data corruption, you can enable write caching from the kernal configuration. _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
|