Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disk transfers too slow
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
Ginta
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 153
Location: Spain

PostPosted: Fri Apr 21, 2006 2:55 am    Post subject: Disk transfers too slow Reply with quote

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
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Fri Apr 21, 2006 4:50 am    Post subject: Reply with quote

That's slow?
Code:
hdparm -Tt /dev/hda

/dev/hda:
 Timing cached reads:   1560 MB in  2.00 seconds = 781.51 MB/sec
 Timing buffered disk reads:   84 MB in  3.02 seconds =  27.85 MB/sec

_________________
Adopt an Unanswered Post
Report violations, duplicates, misplaced, etc
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Fri Apr 21, 2006 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Fri Apr 21, 2006 8:19 am    Post subject: Reply with quote

I just don't see how a gigabyte a second is slow. My drives run at around 700 megabytes a second with hdparm and I have no problems.
_________________
Adopt an Unanswered Post
Report violations, duplicates, misplaced, etc
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Fri Apr 21, 2006 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Fri Apr 21, 2006 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ginta
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 153
Location: Spain

PostPosted: Fri Apr 21, 2006 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Fri Apr 21, 2006 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
whoracle
n00b
n00b


Joined: 23 Dec 2004
Posts: 33

PostPosted: Fri Apr 21, 2006 8:28 pm    Post subject: Reply with quote

/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 :oops:
Back to top
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Sun May 28, 2006 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
OlegVekhov
n00b
n00b


Joined: 09 Jun 2006
Posts: 12

PostPosted: Fri Jun 16, 2006 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Sun Jun 18, 2006 1:29 am    Post subject: Reply with quote

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
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